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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
... this is what happens when you go off to do something else in the middle of a kata and just submit it without looking when you get back.
This comment is hidden because it contains spoiler information about the solution
flat_map
is completely superfluous here and this code would work just as well with a simplemap
, but the tests call for it specifically.This comment is hidden because it contains spoiler information about the solution
Now this is programming.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
And here I thought my solution was spiteful.
Ruby...
I realized that this will just quietly accept e.g.
Calc.new.three.three.three.four.six.plus.minus.times.three
and treat it likeCalc.new.six.times.three
, but I think I'm okay with that. Maybe I should have had it throw an error when trying to chain multiple number or multiple operator methods, though.This only works because none of the numbers encountered were greater than 9, of course.
This comment is hidden because it contains spoiler information about the solution
Loading more items...