Ad
  • Custom User Avatar

    why n, e, n, e, n, e, n, e, n, e - should return false (my code returns false its ok)
    but n, s, n, s, n, s, n, s, n, s - should return true? (my code returns false - and test say that it's incorrect, but idk why)

    1st test is from "should return false if walk does not bring you back to start"
    2nd test is from "should return true for a valid walk"

  • Custom User Avatar

    ok, i give up, my code working but idk how to do this in one line :/