Ad
  • Custom User Avatar

    Ou, now I got that part of the task right :) Then it's easier than I expected. Thanks!

  • Custom User Avatar

    "Write a function dirReduc which will take an array of strings and returns an array of strings with the needless directions removed"

  • Custom User Avatar

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

  • Custom User Avatar

    Hey, my code doesn't pass the tests because, sometimes, my commands aren't ordered as in the solution: instead of ["NORTH", "EAST"] my output is ["EAST", "NORTH"]. That shouldn't make any difference though, right?