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.
Dam, im way too dum for this but that's an awesome kata!
@trashy_incel , seems not I approved it for test framework update, do chime in and make any ammendments if you wish . ^^
Enabled in this fork
Hi, look at the translation.
Translation Dart
oh yea, you're right. I should debug more. really interesting that this worked under the cpp compiler and passed all the tests. Thank you for this commend :)
please blame your own code before you blame the tests (there have been more than 3,000 completions in C as you can see at the top of the page, so such a glaring mistake is unlikely). debug your code locally. if you don't know what input causes your code to crash, add a
at the beginning of your function (flushing the standard output stream will ensure that you will see it even if the program crashes). i tried your code in a debugger and you do not allocate enough memory in
inst->num_array
. you allocate enough space for5
integers, while a 32-bit integer can have as many as10
digits.the c environment is broken. same code passes everything with c++ compiler but crashed with c compiler. please fix it :(
Enabled in this fork
Enabled in this fork
Enabled in this fork
Enabled in this fork
Not a bug. Since this Kata is still using Node v8, the sort is not stable, as this was not required at the time.
Since ECMAScript version 10 (ES2019), the specification dictates that Array.prototype.sort must be stable (preserve order). This was introduced to Node with version 12.
Modern browsers usually adhere to the newest specification, but it's good to keep in mind that programming only for the newest specification might break stuff for older browsers/systems.
Description amended.
Enabled in this fork
Enabled in this fork & used conditional block
Loading more items...