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.
This comment is hidden because it contains spoiler information about the solution
Second and third sample tests seem to be wrong :
[(-2, 5), (4, -1), (4, 11), (10, 5)]
[(260, 120), (264, 92), (264, 148), (280, 60), (280, 180), (300, 40), (300, 200), (332, 24), (332, 216), (360, 20), (360, 220), (388, 24), (388, 216), (420, 40), (420, 200), (440, 60), (440, 180), (456, 92), (456, 148), (460, 120)]
There are many ways to sort an array, you have to be explicit.
Use katex for math formulas :
Description has be rewritten to correspond to actual quality standards.
In light mode, your example is hard to see.
This one is crazily cool and rewarding. It should be translated to
Python
by a someone.Even if the two entities of
dictionary
andalphabet
are arbitrarily defined as follows:The error feedback states:
...although the expected functions temselves are strictly returning
number
andstring
values respectively, as such:Nowhere in the description does it tell the user to define these.
fixed the test suite.
I can make it work with BigIn, but as I pointed out, the point of the kata its not to be a good encription method. So if posible I'll just keep it as it is and keep testcase string short.
I think this Kata has historical reasons for it to exist. As you mention: "since the middle ages where Arabic scholars such as Al-Qalqashandi used letters and their assigned numerical values, systems such as the one described here have been used to encrypt messages". https://arxiv.org/pdf/2306.02378
Maybe a little mention to history like that could be added to the description.
ofc the point of the kata is not to be a good cryptography method, rather give a second perspective into the basic number theory and symbols. I'll fix the test cases
I am going to unpublish the kata because it is currnetly broken. The tests call functions which are not defined, and setup is not great either: the task is very impractical if it uses
Number
instead ofBigInt
. Additionally, we should really get rid of the mindset of calling juggling letters around as "encryption". It's not middle ages anymore.The other kata is now available
I tried to reduce my code for days, not understanding why my formula was wrong!
Fixed
In the sample tests
tester("11000", "01111", 4, 1)
:Isn't it :
To prevent bad understanding, maybe add in the description that indices are
1-based
in your sample tests.Either could have worked. Approved with 2D array.
Loading more items...