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.
Wow.
This comment is hidden because it contains spoiler information about the solution
You really manually made that hashmap... lol
This comment is hidden because it contains spoiler information about the solution
Nice. Very straight forward. Congrats.
This breaks at the example 10100000000 (timeout)
I thought the same, but big numbers might couse fault or exit :) Congrats.
damn your solution is 3 times faster than the most common one!
Wow
plus 9 is quite clever
LOL. I never would have thought that it would pass all tests in the prescribed time)
test case: "(abc) def-ghij"
Yeah, I did that! took some time to observe this though after first attempt(using itertools permutations) timed out on larger numbers.
that's what i thought of doing first, haha
Same here. One way thinking on my side. I think I learn all about primes ... just did not find this clever solution.
Loading more items...