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.
quick question: why does the solution box (for Ruby) have the following line in it by default?
throw NotImplementedError.new "TODO: remove_smallest"
This comment is hidden because it contains spoiler information about the solution
I'm pretty sure this is meant for two-digit numbers. Otherwise, the rules have to be changed drastially.
I forked it, with the changes made by the Ruby translation, here https://www.codewars.com/kumite/60285974641c7600095725bf?sel=603d12f14acee90022f645f4
"Description cannot be approved, recent changes from the related record must be merged first"
There should be at least one fixed test including 100. My solution passed the random tests (and was therefore successfully submitted) when the random tests did not include 100, but my solution fails whenever the random test includes 100. Therefore, my solution is not correct and should not have been submitted - including 100 in the fixed tests would prevent this.
came back to this after several months and got it in five minutes having spent ages on it before - once you know the pattern to look for in the test cases (and recognise the clue in the kata title), you'll get it!