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.
This comment is hidden because it contains spoiler information about the solution
This one is actually having lowest complexity compared to all better rated solutions!
Really clever and fast solution.
I like this!
o
stands forold
=> keep track of the string "state" before the last changesOf several tested, this was fastest.
agree
Seriously, there's no reason to be so confusing with variable naming
NICE how you solved the coding-back part by standardising the elemens to 1 character.
yeah, nice touch
This comment is hidden because it contains spoiler information about the solution
Similar to mine, but much more refined.
this is helpful thank you
This one took me like 4 minutes to understand the concept cuz i cant even put together everything: heres everything you need to know if you cant understand this:
def first_non_consecutive(a):
i = the first element in the array
for all the numbers in the array:
if the (number by actual element/index tracking)_ number in the array doesn't equal (the number counting up by 1)__:
return (the number by actual element/index tracking)
(else) add 1 to the number counting up by 1s
if the "for" cycle doesn't run cuz there isn't any elements or there isn't a solution by the time the "for" cycle is over, return None
i wrote that in the same context of the code, its probably hard to understand, but it helped me understand it ;/
U are awesome, comment for me.