Ad
  • Default User Avatar

    keep getting error that num.split('') is not a function ofr javascript. I know it should be working

  • Default User Avatar

    In the examples, I don't understand how the return is influenced by 'a1'. Can someone please clarify what they are being sorted based on?

  • Default User Avatar

    I am a bit confused while trying this on ruby -- third sample test:

    Test.assert_equals(best_match([1, 2, 3, 4, 5],[0, 1, 2, 3, 4]),4)

    Shouldn't the return be 5 rather than 4? Because 1-0, 2-1, 3-2, 4-3 and 5 - 4 all = 1 , and weren't more points scored in the 5th match rather than the 4th?? What am I missing?

    That's the only test that is failing for me - others with a similar scenario come through as correct.

  • Default User Avatar

    Thanks guys, I was ablet to figure out that it wasn't quite working correctly with capital letters from your comments.

  • Default User Avatar

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

  • Default User Avatar

    Good solution from a musician.

  • Default User Avatar

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

  • Default User Avatar

    Was anybody able to do this in ruby without it timing out?

    My code seems like it is correct (although I'm sure it can be refactored) - but it times out even though the tests that it actually runs all pass. Will leave my code in comment.

  • Default User Avatar

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

  • Default User Avatar

    I passed all the sample tests, but am failing the third 'attempt' test (ruby).

    It says: Should return: '10' - Expected: 10, instead got: 0

    I can only guess from that that it's failing when there are two wilds and something else, but when I test that on my own it works. Any help figuring out what that is testing for?

  • Default User Avatar

    same for me with ruby, I'm passing all the tests but getting a sigkill error for it not passing fast enough.

  • Default User Avatar

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

  • Default User Avatar

    Can someone help lead me in the right direction on what this error means? It's in the section for "null or empty"

    "#
    sum_array' block (2 levels) in
    '"

    I'm guessing it's not working if there is no array?