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.
n and m values are reversed in examples
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
JS: Most test cases in the random test expect
"No result"
JS: Node v12 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
JS: Node v12 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
Python translation
Ruby translation
Haskell translation
Please review and approve.
There're already approved katas asking to find the most frequent value in the input.
This comment is hidden because it contains spoiler information about the solution
Please use
Test.assertEquals
instead ofTest.assertSimilar
. The quoting and escaping is driving me crazy.Returning inconsistent datatypes is not a best practice. Consider requesting
-1
as a return value, or anError
be thrown.Please specify that "the interval from
a
tob
" is inclusive.You should specify that the division is only between tens and units (tens / units, and only in that way).
Explaining some of the example results would make it clearer imho.
However, the tests apparently ask for the letter that occurs earliest in the input string.
If it has to be the alphabet, please specify whether
A
comes before or aftera
(should they appear with the same frequency). And fix the tests.Otherwise, please update the description.
Too many 'No result' in random tests.
Can you make it appear less? ;-)