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.
Lol. I did same thing
return True if cnt == 0 else False
is an anti-pattern. Should just be
return cnt == 0
Last if statement can be part of elif block --> only validate if you have subtracted
The dificulties could differ from one to the other language
I'm delighted with myself that I've finally written the same function as best practice example!
But the Kata was too easy for 5kyu. Feels like 7kyu
I'm sure, it's best practice, cause it's easy to read and it doesn't use bad practices, like an example above.
It is better to write
return False
thanbreak
.This comment is hidden because it contains spoiler information about the solution
I really like your solution supervik!
I don't know, maybe I'm biased but I think my solution is more readable... Would greatly appreciate any kind of feedback on it.
https://www.codewars.com/kata/reviews/552fd3dcac4956812b000050/groups/5f8a100656594b0001d32b71
This seems the most elegant to me, uses the joins efficiently, uses
.format
nicely. Shows a keeness in separating the problem into efficient subproblems.Wow, what a clever solution!
Niiice the first line in the condition I spent to much timle but couldn't get any closer to it hahah
The force is strong with this one. Seeing great solutions like this is what makes codewars so addictive!
Yep! Thats what I did. I do like the current top one more, but yaknow, it works.
Loading more items...