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
Now the example user code is simpler.
Done
Added 2 rando mtest
Thank you for feedback. It will be rewrited.
The best practicle is not use tested function for make test content: if you function got same error it can make false negative test case.
This comment is hidden because it contains spoiler information about the solution
Good Kumite description formalization.
You may make good Kata from this solution.
I found bug when add 2 word of '???' with same text length or case with impossible solving do error "list index out of range".
Hello. So, I'm translate my other Kata to JavaScript. But no more people pass it on JS at past week. https://www.codewars.com/kata/663f897c017512f970cc6f02/javascript
Add simple range check test in "Sample Tests". It will be useful.
Of this kata had an idea translate on Python, C++. Nothing.
Other idea of new Kata: make Random generator. Now I found exist kata: https://www.codewars.com/kata/570796304f2c298736001927 https://www.codewars.com/kata/525b71926080a49789000185
Add 3 big map with x2 limit of moves. It should be stop simple random solution.
So, Random AI has cheating solution, but working solution. Random method can find exit, but very slowly. One of the first methods of machine text generation, like AI, was a Markov chain about random selection of characters.
Good question. At the first has only integer test case. But before publishing Kata a single real ( 5 / 2 = 2.5) test was added before publication.
You are right: operation % (mod) mean integer, c=2.5 mean float. Ambiguous test will be removed.
Thank you for feedback.
Current random test implementation was not good. If user will be see "Random map 2" it take easy wrote cheating predefined path.
I added visualization after success pass of test. Added 1 map and new random map generator.
This Kata was very difficult for me. If you want, you can try write more best random map generator (Fork Kata).
Please, add to instruction of this kata: "Should do more perfomance solution".
I wrote first alhorithm on JavaScript and got timeout. I do more optimization, but got timeout again at N=10. Then put to trash old code and make new faster up to 1000% alhorithm. He has also exponential time from N, but it pass all test.
Loading more items...