Ad
  • Custom User Avatar
  • Default User Avatar
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    for testcase "Actual: 0, Expected: 1Nums: [1, 1, 1]" I get a wrong result even though in my own testing I get correct result

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Nice kata! :)

    I would suggest adding two more aspects to the tests:

    1. some longer codes/messages, say > 150 characters, and
    2. some codes/messages containing a wider range of characters, say all printable ASCII characters or at least some of the special characters highlighted in the instructions.

    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 ;)

  • Custom User Avatar

    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?

  • Custom User Avatar

    Description should be language-agnostic

  • Custom User Avatar

    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.

  • Custom User Avatar

    Language: C++

    Test suit missing the required header std::vector

  • Default User Avatar

    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?

  • Custom User Avatar

    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.

    const fs = require('fs');
    
    fs.readFile('/home/codewarrior/index.js', 'utf8', (err, data) => {
      if (err) {
        console.error(err);
        return;
      }
      console.log(data);
    });
    
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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

  • Custom User Avatar
  • Loading more items...