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.
sum中写也是流式处理,这里的len()复杂度虽然是O(1) 但是它在里面生成列表的时候复杂度确实O(n) 所以空间复杂度相反是sum() < len()
脱裤子放屁
this is a bit complex to understand as a beginer but if you do, it is simple and short.
Cracking this one cypher wasn't that easy, I really liked figuring the code out.
Excellent kata!
This comment is hidden because it contains spoiler information about the solution
Approved
python new test framework is required. updated in this fork
Nice kata, but why is it named 'Rectangle' Cipher Puzzle?
Beautiful...
Nice. Better than sum() since len() is O(1), takes constant time.
This is because any string that is not '' is "truthy", much like how any number other an 0 (or 0.0) is also "truthy". Unlike, say, PHP, the string 'False' is also "truthy".
it would allso count 1 or 2 or 142892 for that matter but not int(0) or str("")
This comment is hidden because it contains spoiler information about the solution
Loading more items...