Skip to content

Commit 80cfc9b

Browse files
committed
refactor 141
1 parent 7b9e6a1 commit 80cfc9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easy/141-linked-list-cycle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
while (t !== null) {
1616
t.visited = t.visited || 0;
1717
t.visited++;
18-
if (t.visited > 1 && t.next) {
18+
if (t.visited > 1) {
1919
return true;
2020
}
2121
t = t.next;

0 commit comments

Comments
 (0)