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.
Yeah but then it wouldn't be a 1 line solution. 👀 Can't be having a best practice solution on Codewars that's more than 1 line long!
This comment is hidden because it contains spoiler information about the solution
but if you gotta add two lines to import, is it really shortening?
any chance you can expand upon this? and maybe point in direction of a reference?
Dynamic Programming, not Number Theory.
Google the kata title, look on SO, read and learn. ( It looks like a gimme, but there's a twist! )
( Then realise that calculating Fibonacci by iterating
[a,b] = [b,a+b]
is Dynamic Programming, and finally get something of a handle on it. )This comment is hidden because it contains spoiler information about the solution
Yes it was. Same with filter.
https://docs.python.org/2/library/functions.html#map
https://docs.python.org/3.8/library/functions.html#map
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
wtf dude...
this site might be inspirational, but it's rarely a good idea to blindly copy code from 99% of the solutions.
Regardless of it being marked as "best practice" or whatnot.
https://xkcd.com/1691/
Thanks :)
Knowing maths and algorithms probably is not how this person reached 1 kyu.
No, none of mine is more efficient. Just trying new things. :-D
No, SHA1 cannot be reversed. This solutions tries several attempts to recover (using brute force) the word from SHA1.
Loading more items...