Ad
  • Custom User Avatar

    I still don't get it. The requirement said it's must be back to starting point, then why isValidWalk(['n','s','n','s','n','s','n','s','n','s'] return true?
    First point is n, last point is s. Isn't it suppose to be false?