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.
Excuse me! I want to delete the first my comment (but there is no such possibility on the site). I could not determine the algorithm for determining the secret word. And it was not possible for me to learn this algorithm. My opinion is that it would be easier if there were two tests in the task definition, simple and difficult (or medium).
Why not? How do you think this kata has been solved more than 17k times and nobody complained about that test?
"mathisfun" has no repeated letters.
With the input given you can recover "mathisfun". Seriously, I don't know what you meant there.
the test for 'whatisup' and the description of the problem condition are absolutely not suitable for the secret 'mathisfun'!!!
There is no such test, and mind your language.
Please read the description again, ['c','b','a'] is not a valid triplet for the string "abc":
This comment is hidden because it contains spoiler information about the solution
try:
secret441 = "abc"
triplets441 = [
['c','b','a'],
['a','b','c']
]
Absolute dislike for such a task!!! WRITE IN THE TASK CONDITION ALLOWED RANGE n!!!
This is the wrong solution! Need a 'column addition algorithm'! example: (https://www.mathsisfun.com/numbers/addition-column.html)
There were other definitions of functions in the task condition... example: 'function zero()' not 'const zero'. Not Fair!
I haven't forgotten about js 'eval()' - so I have a little different solution :)
This comment is hidden because it contains spoiler information about the solution