Skip to content

Commit 1892939

Browse files
Update README.md
1 parent fb6d16d commit 1892939

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,11 @@ We are playing a game with the stones. On each turn, we choose the ***heaviest t
4141

4242
At the end of the game, there is ***at most one*** stone left.<br>
4343
Return the smallest ***possible weight of the left stone***. If there are no stones left, return `0`.
44+
45+
<br>
46+
47+
## Question 1496: Path Crossing
48+
Given a string path, where `path[i] =` `N`, `S`, `E` or `W`, each representing moving one unit north, south, east, or west, respectively. You start at the origin `(0, 0)` on a 2D plane and walk on the path specified by path.
49+
<br>
50+
Return ***true*** if the path crosses itself at any point, that is, if at any time you are on a location you have previously visited. Return ***false*** otherwise.
51+

0 commit comments

Comments
 (0)