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.
approved
approved
fork provided in above
issue
Ruby Fork
please check carefully, thanks
Deployed the fix
I broke it when I fixed something. I'll deploy the fix soon.
General bug on CW currently, same thing everywhere :/
Any idea why I can't fork this? Why I try, the
SAVE
button is shaded out; nonfunctional.approved
COBOL translation (author is inactive).
This comment is hidden because it contains spoiler information about the solution
!
I have never touched Ruby before. Still, only took about 30 seconds to write an solution. And then 30 minutes figuring out how to raise an exception without getting an error. In the end, I gave up and forfeited because everything I tried gave an error. Turns out, I wrote the exception correctly all along, I just checked the integer against 0xFFFFFF instead of 0xFFFFFFFF. FML.
You should have more test cases to at least check for max integer allowed.
Loading more items...