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 like your take on this solution
the order of the solution does not change the factors. Great.
I don't think thats the point of codewars lmao
exactly what i did
Very handful, indeed
It's the default value when the key is not found in the dict.
What does this 0 indicate in the second parameter here?
nice! can someone explain the use of the decrement operator here?
Nice! I had the same solution, does anyone have a better solution than this?
Oh my bad, I haven't noticed the "each piece has a unique uppercase letter ID". That makes this problem much easier 🤦♂️
Doesn't work for n = 0 or 1
try and catch also works fine with this kata :D
Very easy to read.
Jeezz I've been on this problem for hours and to see this is depressingly inspiring... weird.
Ah, crap. I tried a similar solution, but screwed up the order of operands for
%
, didn't catch my mistake, and abandoned that train of thought...Loading more items...