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.
could not figure out why my code was not passing this one test case... maybe some rounding error somewhere, but could not find it. feedback welcome
lmao
the
puts
method always returns nil. it just prints the string to the console.try removing the puts method!
Hi, Thanks for responding.
Yep, turns out i was checking for NaN incorrectly. Was getting confused why strings were not appropriate for raising an error, but I see now that the kata description says "non-numbers - Strings that evaluate to numbers should be converted to numbers. NaN values must throw an error. "
Thanks for the tip about the tests - that got me unstuck.
The NaN test is not working. The sample NaN test is successful, but the main NaN test does not respond successfully with the same code.
I am throwing an error like this:
throw "this is an error message"
Please fix. Thanks!
@Unnamed Thanks for the feedback. I just made this fork which resolves the issues above. Hopefully you can approve it now :) https://www.codewars.com/kumite/5f790b13be51af001a580e53?sel=5f84d2e100f3180023b97f9f
Ruby Translation added!
Hi, Thanks for the feedback
Ruby Translation created! Please check here
@morteify Ruby Translation has been completed. please approve!
@julesnuggy I just made a ruby translation :)
(JS) My code passes all cases tests. But I get this one error:
STDERR:
Max Buffer reached: Too much information has been written to stdout.
SIGKILL
Process exited prematurely with a SIGKILL signal.
Maybe need less test cases?
Thank you to all who have given feedback and submitted edits and translations!
completing the kata in ruby and coming up against this error message:
`block in decodeBits': no implicit conversion of nil into String (TypeError)
is anyone able to help? thanks
This comment is hidden because it contains spoiler information about the solution
Loading more items...