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.
OCaml translation
Uses regular OCaml
intbecause by the time I realised that the Python test gen was messed up I had essentially finished writing the entire thing.I can switch to mpz bigints if we really want this to be hard.
Python tests produce inputs much larger than
Number.MAX_SAFE_INTEGER.Ordinarily I wouldn't raise this but it's very clearly intended that they don't do this when you conisder that
Number.MAX_SAFE_INTEGERis inlined as a constant in said tests.Lua translation
How is this kata possible?
From what I understand neither 2 nor 0 will work for any integer base...
0: ""_1, 0_2, 0_3, 0_4, ...
2: 00_1, 10_2, 2_3, 2_4, ...
Ruby translation kumited -- please check and approve
The description should specify a range for
neven 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
Loading more items...