Ad
  • Custom User Avatar

    Test.assertSimilar(dirReduc(["NORTH", "WEST", "SOUTH", "EAST"]), ["NORTH", "WEST", "SOUTH", "EAST"])

    Test expects four directions to be returned, whereas in this case you just made a full turn and returned to your initial place, you might as well not moved at all // an empty array should be the correct answer in this case.

    Also final order of directions inside the final array shouldn't matter

  • Default User Avatar

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