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.
Great, clean solution!
Use single quote.
good solution
This probably runs in O(nlog(n)) time. Faster (and much less elegant) solutions exist.
Didn't know that hashes could be manipulated that way!
I personnaly prefer map/reduce because its how I learned the concept, from big data map/reduce
It never gets added. The way join works is it just joins the elements using the given character, doesn't append after each one.
http://www.ruby-doc.org/core-2.1.2/Array.html#method-i-join
looks good, but I'm not sure I can
read where in the code, the final
comma gets chopped off. Hmmm.
Incorrectly converts THE-STEALTH-WARRIOR into THESTEALTHWARRIOR instead of into TheStealthWarrior
Good for beginners (like me) to learn this.
This comment is hidden because it contains spoiler information about the solution
As far as I can see, all these answers are incorrect. The question asks us to produce a set of numbers that as nearly as possible add up to 100.0. To y knowledge, the only way to do this is to calculate percentages for all but one number, and then to calculate the last as 100-sum(others). Otherwise minor floating point inaccuracies will accumulate across all the answers.
Dave
I meant it was unclear what
h._one = 2
should do. Does it store ash[:one]
orh["one"]
?If you do update the tests, you should probably also update the description. It's not clear what kind of key h._one = 2 should use.
As for checking the type-I believe your comment is incorrect. There is nothing to check. :)
Agreed...
Loading more items...