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.
Merged.
Merged.
I will approve this fork as an update of the language version. The matter of the return value for non-alphabetic string needs to be approached on a higher level of the task definition, for all languages.
Updated to Node 18
Fixed (remember that you need to RESET the trainer to get the fixed code).
JavaScript sample tests do not import chai.
fourth time's the charm
JavaScript should be updated to Node 18 and use chai.
Updated 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.
Approved
JavaScript fork (author gone)
O(1) formulas are only approximations for this problem. I don't see why solutions with an inaccuracy as high as
0.01
should be allowed.added
approved
Seems like a floating-point error. The tests should probably be changed to allow for precision errors (e.g. using
assert.approximately
instead ofassert.strictEqual
).Loading more items...