Finding the smallest sequence of numbers that repeat

后端 未结 0 425
迷失自我
迷失自我 2021-01-26 07:25

I want to find the smallest sequence of numbers that are repeated in a given array.

Example: 1, 2, -2, 1, 2, -2, 1, 2, should output 3 because "1, 2, -2" is rep

相关标签:
回答
  • 消灭零回复
提交回复
热议问题