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.
Do not tell me that it has a one line solution 🙉
Becase it has ONLY two different digits - not more, not less. 111 - not doubleton(has only 1 digit), 123 - not doubleton(has 3 different digits), 112 - doubleton(has 2 different digits - 1 and 2). That's why 10 and 12 are doubletones but 11 is not.
I understand you very well. I compare my solution to this one - an elf and Frankenstein monster
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It is the best solution because it has constant time complexity. Any cycle method will lose against it.
Yes, that description also tricked me. It makes the task even more complicated.
looks organized and readable