Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
My hint is why do you need O(n^2) to solve the third example?
solve([2,3,2,3,4,2,12,3]) = 1
Then print it with
Console.WriteLine
.Language? Hard to tell if you don't state the input value too. Print the input value if you don't know what it is.