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.
#11bfs_42y
very nice . esoteric and elegant .
you are trying to encode the string again, decode it
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
omg bro you alright?
Thanks!
power
2 ** 2 = 4
4 ** 2 = 16
25 ** 2 = 625
Can anyone explain what the ** in 0 <= width <= 10 ** 32 means?
great kata
A latin square is an n × n array filled with the integers 1 to n, each occurring once in each row and column.
You can make it as random as you want as long as it's a Latin Square
Is the output meant to be a random square of size nxn? This is actually a complex mathematical problem, and then add to that the computational problem of finding a algorithm efficient enough so that it won't time out at high values of n; the ranking of this problem as 7kyu feels way too low. Unless we're just meant to submit a non-random square. If that's the case please clarify.
Approved by author
Approved by author
CoffeeScript translation
Loading more items...