Ad
  • Custom User Avatar

    Mutating the input should have no effects now

  • Custom User Avatar

    Just tried ruby. Works fine.
    The problem is most likely that you are modifying the input array.
    If you are not, just post your code here (mark it as a spoiler) and i will look at it.

  • Custom User Avatar

    The test is definitely broken. I had the exact error.
    Luckily, the broken inputs only showed up randomly. So I just kept pressing Submit until no broken input was passed. (It took me about 10 tries.)

  • Custom User Avatar

    Play with the equation to get b in terms of a so you don't have to brute-force it. (Remember you can factor!)

  • Custom User Avatar

    "Testing for Daley Wong" gives me It should work for random inputs too - Expected: "Daley Wong likes this likes this", instead got: "Daley Wong likes this"

    Also, "Testing for Largo" gives me It should work for random inputs too - Expected: "Largo likes this likes this", instead got: "Largo likes this"

    If I test my code with [Largo likes this] I do get Largo likes this likes this. So why isn't is passing? Is this test broken or am I interpreting it wrong? (Ruby)