Ad
  • Custom User Avatar

    That's not an issue.

  • Custom User Avatar

    I think you've got it a little confused. Here is an excerpt from the Kata details:

    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"].

    This seems to say that to 'reduce' two directions they must be consecutive. So your example, '['NORTH', 'WEST', 'SOUTH', 'EAST']', can't be reduced further. If it were N-S-W-E, it would reduce to [], but that's not how this Kata is set up.

  • Default User Avatar

    The test are correct, 1728 guys passed the JS kata.

  • Custom User Avatar

    I have exactly the same issue. Solved the problem, on my irb everything works perfectly fine, all the tests are passing, yet the Attempt to submit final fails.