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.
That looks totaly strange
EDIT:
I found out why your formula is ture and it is incredible how you worked this one line of code
This would be true, but look at this solution by anter69: https://www.codewars.com/kata/reviews/55a126285554cb03800000a2/groups/5e29d308a7786100014451be
Could be people copying answers they want to dissect and understand better and then clicking "Submit" to run against the attempt test cases instead of forking them.
Most people like small solutions rather than the efficient ones
because people tend to value short code over fast code, just the way it is
I think when they were unable to make it, unlocked solutions and copied to see how it works
in fact, this imports still the whole module technically speaking
did not know that, cool! thx
For example. When I was at the university, together with the teacher, we solved with the whole group.I don’t support copying solutions, then you don’t remember anything.
I find it fascinating how there's always so many people who have the exact same answer as the top solution, character-for-character, and the long tail of similar equivalent solutions if you scroll down that don't have as many votes all have exactly one match. Can't possibly be because people are copying answers on this site, why would people do that and cheat themselves of a learning experience?
list() isn't actually needed, join can iterate through a string.
Don't get rid of them like this, your if statements run faster than gratuitous dicts.
Don't feel bad about your if statement, this solution with an unnecessary dict creation is slower than your if block.
If you're in a viewer and the interviewer asks you to write a program that prints the result of an addition in binary, this is the code that they want to see you write, not the python one that uses a ready made function
That's a generous way to put having the eval do the text parsing for them. This solution only works for expressions that the python language can parse and evaluate for you, and contains no concepts that can help you when the problem deviates from the python language into more complex text parsing tasks. "5 lines" is kind of a meaningless boast
Loading more items...