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.
C# the solution is in the sample tests area and the sample tests are in the solution area
C#: titles of tests are really poor.
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
Loading more items...