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.
If you only use one try you will skip potential returns and miss potential solutions!
Yikes! You're skipping certain solutions when encountering a divide by zero.
Log prints "--------20 Random Test--------" when it's actually performing 500. Correcting this would help users know how far off the mark they are.
If you meet the time limit but fail a test you get the "Congratulations, You pass the test!" message
Can anyone think of a way to get rid of the try/excepts without making a division function which gives an incorrect answer when dividing by zero?
Can someone explain to me why the 5th traversal isn't necessary here?
It would look like x(a,y(z(c,d),b))
You don't remember correctly. Python lists are mutable. Mutable objects are pass by reference.
If you make changes to a list which was passed in as a parameter you WILL mutate the list for the caller.
If this weren't a 9 line, self-contained function maintainability might be more of a concern than efficiency.
But that would beg the question "Why isn't that its own function?"
I would certainly include comments with this code, but I stick by it!
A solution with O(n^2) runtime, inconsistent iteration, and poor spacing/readability is voted best practice?
Check my solution here for a readable solution which takes O(n).
@KathrynN I was actually asking about requirements for other abilities, such as resolving issues on beta kata, etc. The honor requirements have actually been revised since this blog posting.
Currently abilities and their honor requirements are listed on priviliges tab on the airtable from this medium post.
Description lacks spaces between name and banjo string and is horribly formatted.
bool
is a type name in python. It's bad practice to use it as a parameter name.@kromatic You don't have to sort anything if you're careful. Look at my solution.
I forked the python translation that was causing all the problems, if someone's able to approve it (or provide feedback on it) that would be great!
Nope! Code grouping is done by an algorithm.
Loading more items...