Ad
  • Custom User Avatar
  • Default User Avatar

    я не музыкант

  • Default User Avatar

    Okay, I read the description a hundred times. Correct me if I'm wrong. We have a string, and we need to find out if, by taking any note from the string, it is possible to create a melody that matches the pattern 2212221?

  • Default User Avatar

    Without this hint, it would be impossible to solve the kata, since the description is not enough to understand the logic of such actions. The only option left is to google, but it is very doubtful that google music theory is something exciting for people who have nothing to do with it. Moreover, even the fact that the condition is incomplete and something needs to be googled also does not follow from the condition from anywhere, it will come to mind only when the solver has already spent some time on the inevitably wrong decision.
    And at the same time, even if you understand exactly what to do, then this kata is still somewhat more complicated than the average 6kyu. All these points are mutually reinforcing and make this kata unpopular.

  • Custom User Avatar

    Hi, thank you for your suggestion! I reviewed my reply to Kirill12 which you mentioned... but in that comment, I now feel that I actually gave away too many clues and made it less fun to solve the puzzle. I understand music theory can be confusing to people but I'm trying to think of a way to communicate effectively without giving away too much... If anyone has a good idea, I'd appreciate chiming in!

  • Default User Avatar

    Сonfusing/incomplete description. The author's response to Kirill12 from the comments below should be added to the description.

  • Custom User Avatar
  • Default User Avatar

    approved

  • Default User Avatar

    solved by above

  • Default User Avatar

    thank you for the feedback, I have posted a fork of a previous translation with now completely updated code

  • Default User Avatar

    C Fork kumited

    • vastly updated test suite
    • all code removed from preloaded
    • memory allocation explicitly stated
    • updated reference solution
  • Custom User Avatar

    Doing the C-version

    I pass 128 or so, and I get a message like :

    Invalid_Input
    should_pass_all_the_tests_provided
    The expression (as strings) (major_scale(test_28)) == ("No major scale") is false: actual=`A# major scale` expected=`No major scale`.
    

    I have no clue which one it is. I can of course print all the music strings I get, but I don't know which is test_28. The attempt doesn't stop with it hits an error, so somewhere in there is the debugging info I try print out.

    Please - either display which music string is being tested or halt execution when hitting an error.

  • Custom User Avatar

    Oops, forgot to delete the line after testing... now all good :)

  • Custom User Avatar

    Please remove the line instead of commenting it out, so it wouldn't come as a false positive under grep ;-)

  • Custom User Avatar

    Fixed, thank you!

  • Loading more items...