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.
it's really cool I liked the one-line solution but I have a question why did you substract 96? It's the first time a see the function "ord" so I don't really know about it. But I really like this code.
Please make it possible to do in c++.
🤔
Add an edge case
clock_degree("1:60") -> "Check your time !"
Nice and simple, but using magic numbers in code is bad practice - as mentioned elsewhere.
Very nice kyu
Version should be updated. Sorted doesnt work properly.
What language are you using? Perhaps the kata uses a different version of your language where certain algorithms work differently, such as the sort function on js
Test cases should be upgraded to require total accuracy. My code is usually off by a few decimals from the actual answer, which I 'solved' using the round function, test cases with floating point outputs should be added
Okay. And thanks for the heads up on sorting.
Keep your posts in the same thread, please. Your problem can be related to using different Node versions. Javascript's
sort
wasn't always stable.This comment is hidden because it contains spoiler information about the solution
//Language: JavaScript
//Testing for '4d13 z44279 93y8 z792 1b54 5b34 2316b8 5290c7 8x84 76z60 b120 414c3'
// Output on my computer: 359669281
//ERROR MESSAGE: It should work for random inputs too - Expected: 359669281, instead got: 733591213
What is Expected is the same as the
output on my computer. This error message is
confusing me, how can my output
be what is expected, yet still be wrong?
I will post my code next.
can agree only becous of node version 8.1 used in this kata otherwize 6 kuy its more then enough.
completely agree
Node v18 should be enabled.
Loading more items...