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.
cool kata
approved
Crystal translation
.
added in JavaScript, Python
The tests cases are fine; the problem is that your code is incorrect. it has to work for any number, not just the ones you see in the sample tests
Yeah! It's JS.
I think there is porblem with value, 'cause i used another solutions for this kata.
But all of the give the same error
please specify the language you're using when you ask for help. i'm guessing this is JavaScript.
the logs mean that your code is correct for 13 ('d' in hexadecimal), but not for 2 (10 in binary)
Got a value issues:
Error :
Expected: '10', instead got: '100'
Test Passed: Value == 'd'
No matter which solution I use.
Let me know if someone can explain or correct the value in task. Thanks
The edge case
n = 0
should be included as fixed test in all languages, since some approaches may fail with it. Currently COBOL and C do, Python doesn't (and random tests have a low probability to generate this value), other languages should be checked.it seems so, description updated
I didn't check all languages expected lowercase chars for hex, but if they do, sure you can, imo.
can i update the description to mention this then ? i didnt do it earlier because the kata was locked for me
Approved :)
You're right (I've included this information in solution set up for COBOL). And I would add: 0 should be tested for all languages, because some approaches may not work with this edge case. Currently, COBOL and C include it, Python doesn't, other languages should be checked.
Loading more items...