Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • 32236948?v=4

    "Not rely". You can though discard the solutions in JS, and then you can access the panel for the translations.
    But if you cannot read JS code at least to identify the tests, I strongly suggest you avoid to do the translation.

  • 38997596?v=4

    Can I translate this kata without completing it? I know how to do this in python but I don't know javascript.

  • 22114719?v=3

    You will be given a root note as a string,

    So perhaps the parameter to the function should be called root instead of chord

  • 18171520?v=3

    Tests could easily force an O(n) instead of O(n²) solution.

    (I was lazy myself; I was a bit disappointed it passed the tests.)

  • 9166532?v=3

    Hey Johan, I've added a message with the expected possible solutions on failed tests; check it out! I've also clarified the outer parentheses issue. Thanks!

  • 18171520?v=3

    Now that I think of it, maybe you could call "Expected" "Possible solution" on a failed test. It's not the only possible "Expected" value after all. You're doing more than just eval, and solver doesn't know that.

  • 18171520?v=3

    Very nice testing BTW!

  • 18171520?v=3

    Expected: '(4-2)*6', instead got: '((4*6)/2)'

    But the problem turned out to be the outer parentheses. Maybe mention in the solution that you can't do that? That's not entirely obvious (and I had reason to include them).

  • 9166532?v=3

    Hi Johan, the test should work for any possible parenthesis ordering as long as it evaluates correctly. Could you provide an example of the issue?

  • 18171520?v=3

    The order of arguments and of operations is free, according to the description. However, the tests apparently expect a certain order. Also, the tests sometimes expect parenthese and sometimes they expect the absence of parentheses.

    Can you clarify what ordering and what parenthesising to return?

  • 9166532?v=3

    You're absolutely right! Thank you for bringing it to my attention, it should be solved now :)

  • F6d261261425b72bba389146c4cf2d2e?d=https%3a%2f%2fidenticons.github.com%2fe4d3327424a571ee79716166d615bed3

    One of the random tests expected Ccl\'q\'ch" uyjj\'d tq\'rs" zu\' l\'he\'m\'pv\'" w\'w\'j\'u\'r\'o\'b\' r\'m\'hhh\'zf m\'eq. Idv\' we\'f\' c\'s\'f" o\'es u\'s\'h\'qg\' hbb\'wdp\'b f\'zq\'x d\'z". S\'q bssq\' cfc\'" b\'v\'a\'d\'jf\'" b\'e\'o\'b. D\'vk\'vf a\'y\'uqg v\'rb\'i\'yo\' i\'ucz\' w\'w d\'opih. But the description said Punctuation marks, except apostrophes, don’t transfer into the decoded message (so apostrophes do). Is there a bug in the tests, or am I misunderstanding something?

  • 9166532?v=3

    Hi there! Noted, I originally prescinded of random tests for this one but they have now been added.

  • 9166532?v=3

    Thank you both Unnamed & Voile for pointing it out. I've added it to the Kata's tests.

  • 14909989?v=3

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

  • Loading more items...