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.
You stole my solution! :)
@delucas done
it looks like it needs a line above all tests...
require "set"
in order to enable the
.to_set
call. Otherwise, it fails for all tests...could you please update ruby version for that? Thank you very much!
/cc @dinglemouse @Blind4Basics
I work in productive environments with clients who seem specialized in breaking code, with cases that always come out of what one would expect, that is why my solution is broader in terms of lines but sure that it will always give the correct result, in case of values outside what is contemplated, it will continue to give the same result expected according to the rules. In the case of this solution it seems simple but in its simplicity it is vulnerable to a change or a different value
Simple straightforward kata, but very tricky. Thanks!
Great kata. Thanks!
both approved. thanks.
approved thanks!
prolog done. other todo
approved thanks!
You win! ;-)
Nasm translation, Prolog translation
fair point
I'm glad you liked it. thanks for the praise! cheers. DM
Hope you don't mind me marking these comments as spoilers, but I personally felt that the way this edge case is handled in the description was one of the most satisfying features of this Kata. I felt that figuring out that this edge case exists adds an extra challenge to this Kata, but that the description is pretty clear about how it should be handled when you discover it, as long as you read carefully.
Loading more items...