Ad
  • Custom User Avatar

    In JavaScript, I'm failing two test cases and I'm not sure why:

    • Decode test case where alphabet is array of numbers and the encoding is null. The expected return value is the alphabet repeated 4 times. Why is that?

    • Decode test case where alphabet is very large array of numbers. First few elements of alphabet are 33,12,5,14... and first few elements of encoding are 0,2,6,8...

      • The expected return value is 33,12,5,14... but how is that correct?

    I must be going wrong somehwere, but could someone please help me find where?