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.
Definitely the top solution here!
You could always just add a comment that explains what the code does. It's just a regular expression, you don't really need to understand what's going on, and you won't anyway unless you know RegEx.
This comment is hidden because it contains spoiler information about the solution
Why not just return the values inside the loop instead of breaking out? Why assign them to other vars? Why sort them?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Problem description doesn't mention a time constraint nor does it say the program should be "efficient". There's a simple task, and this is the most hassle-free, readable, and Pythonic way of attaining it. If you care so much about performance, you should stop programming in Python altogether.
Love this! I've seen a similar version it in another kata, but totally forgot about it. Definitely doing this next time!
Please tidy up the description -- half the information given is irrelevant to the solution of the problem.
The image link in the description is down (as of 24-Dec-19).
This is the textbook definition of what a 8 kyu kata should be. Thanks!
Can you please clear up the description? It's a mess.
You should either add the formula explicitly or provide people with a page that they can refer to find the formula. Or at least you could explain the process so that people could derive it. I don't understand how this kata even survived beta.
The second I hit the "Submit Solution" button I knew that I was going to see some crazy one-liner lol
Thanks for this!
My bad, thanks~
Loading more items...