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.
RISC-V Translation
Lua translation!
This comment is hidden because it contains spoiler information about the solution
for testcase "Actual: 0, Expected: 1Nums: [1, 1, 1]" I get a wrong result even though in my own testing I get correct result
This comment is hidden because it contains spoiler information about the solution
Nice kata! :)
I would suggest adding two more aspects to the tests:
I think it's reasonable to expect a decoder to handle both, but currently it's possible to pass the tests with some solutions that can't ;)
I figured how the encryption works, got the dictionary and the formula but I have problems with long strings as my solution includes calculating 2^(positionInMessage)... which of course eventually leads to too big numbers. Is there a math trick to optimize that?
Description should be language-agnostic
Only one of the tests is failing and I can't seem to find any difference between my answer and the expected answers. Kinda frusturating but a fun puzzle:
The quick brown fox jumped over the lazy developer.
Test Passed
Log
The quick brown fox jumped over the lazy developer.
The secrecy system has systematically denied
Test Passed
Log
The secrecy system has systematically denied
American historians access to the records of American
Test Passed
Log
American historians access to the records of American
history. Of late we find ourselves relying on archives
Test Passed
Log
history. Of late we find ourselves relying on archives
of the former Soviet Union in Moscow to resolve
Test Passed
Log
of the former Soviet Union in Moscow to resolve
questions of what was going on in Washington at
Test Passed
Log
questions of what was going on in Washington at
midcentury. The Venona intercepts contained
Doesn't make sense
Log
midcentury. The Venona intercepts contained
overwhelming proof of the activities of Soviet spy
Test Passed
Log
overwhelming proof of the activities of Soviet spy
networks in America, complete with names,
Test Passed
Log
networks in America, complete with names,
dates, places, and deeds.
Test Passed
Log
dates, places, and deeds.
Language: C++
Test suit missing the required header
std::vector
Solved by figuring out a function analagous to the encoder function and then "reversing" the input and output for each position in the overall string using dictionaries, but I saw some people were able to obtain the encoder function and I can't deduce why my encoder function also works, and also why other people's different decoder functions work? Can someone help me understand?
This kata is voulnerable to file read attack, you can simply require fs in node and then read the index file and have the kata solved for you.
I noticed cause when I'm stuck I just console.log this which shows index file is cached and fs is active.
This comment is hidden because it contains spoiler information about the solution
Why do I do this kata in IDLE and have got such answer as is right in your test, but your test system write to me that number is equal such answer as I got in IDLE?
[296, 293, 290, 287, 284, 281, 278, 275, 272, 269, 266, 263, 260, 257, 254, 251, 248, 245, 242, 239, 236, 233, 230, 227, 224, 221, 218, 215, 212, 209, 206, 203, 200, 197, 194, 191, 188, 185, 182, 179, 173, 170, 167, 164, 161, 158, 155, 152, 149, 146, 143, 140, 137, 134, 131, 128, 125, 122, 119, 116, 113, 110, 107, 104, 101, 98, 95, 92, 89, 86, 83, 80, 77, 74, 71, 68, 65, 62, 59, 56, 53, 50, 47, 44, 41, 38, 35, 32, 29, 26, 23, 20, 17, 14, 11, 8, 5, 2, -1]
But I have got answer: 176 in IDLE Shell 3.9.6
Go translation
Loading more items...