This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need help with code: find longest repetitive sequence of numbers in array

Hello. I need help to find longest repetitive sequence of numbers in array and put that sequence in new array.

For example, I have array[10]={0,1,1,1,1,0,0,0,1,1} so the longest sequence will be 1,1,1,1 and this numer must be in new array. array1[4]={1,1,1,1}.

Thanks for your help!

0