Ad
  • Custom User Avatar

    Elimination of circles (not just concecutive north/south or east/west movements) is exactly the purpose of this kata.

    From other examples section in Kata's description: "In ["NORTH", "EAST", "WEST", "SOUTH", "WEST", "WEST"], "NORTH" and "SOUTH" are not directly opposite but they become directly opposite after the reduction of "EAST" and "WEST" so the whole path is reducible to ["WEST", "WEST"].

  • Default User Avatar

    Maybe I'm missing the point of this test but:
    I get that if you go north then south immediately it would cancel but if you go north, east, west, south - you aren't going north then immediately south
    So I get that going in a circle isnt the same, but the question is asking for removal of immediately going in opossite directions
    not "if" there's a "north-south" case between going east and west