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 gets timed out in JavaScript with numbers that have basesuch as 1000000001
any help?
So, in the rust version, I think I've found an issue.
In the tricky_tests, sometimes I get errors like:
The problem is that, as far as I've tested, in Rust and Python, 18283961446061854279 in base-138 is 1111111111.
I've collected a few of these. They were:
I have managed to submit my answer, because sometimes the tests don't use any number that breaks.
Ruby translation kumited -- please check and approve
The description should specify a range for
n
even in languages where all numbers are safe.This comment is hidden because it contains spoiler information about the solution
The user can modify the input.
Reimplementing sort is a duplicate to many katas.
Test.assertEquals should be used in the sample test cases as well, please, not just the solution evaluation.
This comment is hidden because it contains spoiler information about the solution
Sample tests are wrong.
Stable sort is not required by the JS specifications. In fact V8 doesn't do this at all.
Almost a duplicate:
https://www.codewars.com/kata/multiplying-numbers-as-strings
Why are we asked to multiply 2 numbers and the expected results are strings?