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.
i was so close to using something like this but couldn't realize to set them all to length 4, had all values in dict of cycle length, kept sticking me in the mud. great solution. taught me to think again and not give up
nice O(1) solution.
At first, I though the best practice would use regex and I tried it, but I couldn't implemented neither it was considered best practice, maybe because regex sintax is weird. Indeed, it is a clever one.
I went for similar approach, but just build pattern in function itself (e.g. just loop until you get a repeat digit). That way you avoid any hard coding of the rules.
Clever !
I have simillar idea, but you code is super tidy and clean !
This comment is hidden because it contains spoiler information about the solution
It took me too long to understand what the hell I did after this time :).
Why does anyone think this is clever, or best practice?
Could definitely win a prize at an obfuscated code competition where to goal is to write the code which takes the longest to find out what the hell is going on.
But in development we aim for the opposite.
smart :D
This comment is hidden because it contains spoiler information about the solution
I wrote almost the same code.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
How do you now there rules? What terms do a search in google to understand the laws of your rules? What is the significane of terms?
hardwork