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.
define a 'cache' decorator or just import from functools
Cool, but slow
This comment is hidden because it contains spoiler information about the solution
I could not do it recursively so I try another approach :)
My First attempt, I already got my solution accepted :) nice kata
Okay i will try my best, I am kinda new to this algo :) ty for your reply though, it means I am in the right direction
Yeah, that's the case.
it's supposed to be 32 points, yes. Maybe you ranked up at the same time? reaching 2 kyu gives you 150 extra points
It's way more than enough to solve that kata. If it's too slow, that means you didn't implement it correctly (using inappropriate constructs that make grow the time complexity (or at best it's constant factor) too much)
This comment is hidden because it contains spoiler information about the solution
Very Fun kata :)
Thanks got the answer.
What's the 3rd case? (or language) Test cases can be in different order between languages.
The observed pin is 369. The first digit of the actual pin is therefore one of 2, 3 or 6 (i.e. 3 itself, or the number to the left, or the number below) - so 963 can't possibly be the actual pin (as the actual combination can't start with 9).
Why there is no 963 in 3rd test case
Loading more items...