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.
When does a sequence ends ? My algorithm finds max until same number is generated second time.
I pass 20 tests and then fails due my maximum is smaller than expected. Could someone please explain me when method should return maximum value :)
expected:<615043> but was:<1230086>
Test cases in Python would be better if they were factorized to avoid repetitions. It's easy to create a generic function
dotest
that does the job for all tests, fixed and random. That would lighten the tests page and would be much more readable. Something like:You should add in description that this procedure always generates a cycle.