We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 796990b commit 482d84bCopy full SHA for 482d84b
src/main/java/com/crossoverjie/algorithm/LinkLoop.java
@@ -28,7 +28,7 @@ public boolean isLoop(Node node){
28
Node slow = node ;
29
Node fast = node.next ;
30
31
- while (node.next != null){
+ while (slow.next != null){
32
Object dataSlow = slow.data;
33
Object dataFast = fast.data;
34
0 commit comments