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.
Sample from task is working:
Letter: m | 12 * 6015 % 26 = 4 == e
Letter: e | 4 * 6015 % 26 = 10 == k
Letter: r | 17 * 6015 % 26 = 23 == x
But trying five letters from first test:
request = "1273409kuqhkoynvvknsdwljantzkpnmfgf" and answer must be "uogbucwnddunktsjfanzlurnyxmx"
Letter: k | 10 * 1273409 % 26 = 18 == s
Letter: u | 20 * 1273409 % 26 = 10 == k
Letter: q | 16 * 1273409 % 26 = 8 == i
Letter: h | 7 * 1273409 % 26 = 23 == x
Letter: k | 10 * 1273409 % 26 = 18 == s
None of the letters match. Maybe I didn't understand the task?
Thanks!
Spent an hour on this, really good one
This comment is hidden because it contains spoiler information about the solution
Try to read the error message. Base in this kata can be any vaue higher than 1. Also higher than 36 :) or lower than base-2: unary
i hate this kata
"RangeError: toString() radix argument must be between 2 and 36
at Number.toString ()
at reverseNumber (test.js:6:18)
at doTest (test.js:18:24)
at Array.forEach ()
at Context. (test.js:22:82)
at process.processImmediate (node:internal/timers:471:21)"
although in vs code it works as it should