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.
Blind4Basics, actually the only tiresome comment is yours. Here is one of MANY kata's where the one liner has been upvoted to be the best but actually performs extremely poorly: https://www.codewars.com/kata/54b42f9314d9229fd6000d9c
It has nothing to do with training harder, it has to do with dismissive and poisonous attitudes like yours.
Good point mate, definitely didn't think of that.
Good point mate, definitely didn't think of that.
Correct me if I'm wrong, but I believe in Python objects have their length stored as an attribute, so len() does not calculate anything when called, it just accesses the lenth attrubute of an object.
https://stackoverflow.com/questions/29057153/does-the-len-built-in-function-iterates-through-the-collection-to-calculate-it
Correct me if I'm wrong, but I believe in Python objects have their length stored as an attribute, so len() does not calculate anything when called, it just accesses the lenth attrubute of an object.
https://stackoverflow.com/questions/29057153/does-the-len-built-in-function-iterates-through-the-collection-to-calculate-it
Correct me if I'm wrong, but I believe in Python objects have their length stored as an attribute, so len() does not calculate anything when called, it just accesses the lenth attrubute of an object.
https://stackoverflow.com/questions/29057153/does-the-len-built-in-function-iterates-through-the-collection-to-calculate-it
Correct me if I'm wrong, but I believe in Python objects have their length stored as an attribute, so len() does not calculate anything when called, it just accesses the lenth attrubute of an object.
https://stackoverflow.com/questions/29057153/does-the-len-built-in-function-iterates-through-the-collection-to-calculate-it
I agree and fail on empty strings
Sorry guys, but these kind of comments tend to be a bit boring...
Less code, better access to the information, better efficiency for the same algorithm (especially in interpreted languages). Some oneliner may be a pita to understand, yes, but if you're not able to understand a so much short one, just train harder...
Agreed. Most of these one-liner solutions w/o comments whould get bounced in a code review.
This comment is hidden because it contains spoiler information about the solution