Ad
  • Custom User Avatar

    The step list will not necessarily be a palindrome. For instance, if I walk [n, w, w, s, e, s, e, n] , I have returned to my starting location. Your solution will check if [n, w, w, s, e, s, e, n] == [n, e, s, e, s, w, w, n] , which will return False.

  • Custom User Avatar

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