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.
Encript => Encrypt; Decript => Decrypt
how does the tester expected them to be spelled?
I don't know whether it was intentional but the "encript" and "decript" function names are not spelled correctly.
Also note that the test cases work, when run separately by hitting the "TEST" button. When I define "alphabet = []" and hit the "ATTEMPT" button, the encript and chained fixed tests fail and the decript random tests also fail. In all cases however, your kata is reporting that the decript tests are successful.
fixed in the last version
solved
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 same thing happen to me. I think the same solution but give me timeout in the large lists.
This solution is nice, I didn't know about WeakMap
Thanks
Loading more items...