Ad
  • Custom User Avatar

    Because of this:

    Write a function dirReduc which will take an array of strings and returns an array of strings with the needless directions removed (W<->E or S<->N side by side).

    While both paths take you to the same end, the paths are different and you should treat them that way too.