Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Tests in Ruby translation do not supply an expected value when failed.

  • Custom User Avatar

    Try it with a single for loop. Right now, you're looping through each character in input twice, effectively making the function take n^2 steps to resolve, where n is the length of input. e.g. If you do this with a string of 10,000 letters, it will take 100,000,000 steps to resolve.

  • Custom User Avatar
  • Custom User Avatar

    Hello! Can someone approve my Ruby translation or give advice on what needs changing? I think my tests might be a bit too lenient, but I'm not certain.

  • Custom User Avatar

    Alright, thanks much clearer!

  • Custom User Avatar

    Please explain [NORTH SOUTH SOUTH EAST WEST NORTH] => [] but [NORTH WEST SOUTH EAST] => [NORTH WEST SOUTH EAST]

  • Custom User Avatar

    Ruby tests are broken

    Case:
    Expected: ["NORTH", "WEST", "SOUTH", "EAST"], instead got: []

    Since N > W > S > E essentially take you in a circle if you travel the same distance each way, you'd end up at the exact same location.

  • Custom User Avatar

    Impossible to complete because of the combination of 'big tests' and subsequent multitude of 50001 item performance tests that take more than the 12 seconds allowed by the site for the tests to pass.