diff --git a/src/main/java/cn/whaifree/redo/redoAll/LeetCode82.java b/src/main/java/cn/whaifree/redo/redoAll/LeetCode82.java index 3fc1473..dc9f407 100644 --- a/src/main/java/cn/whaifree/redo/redoAll/LeetCode82.java +++ b/src/main/java/cn/whaifree/redo/redoAll/LeetCode82.java @@ -28,6 +28,7 @@ public class LeetCode82 { } preIndex.next = index.next; index = preIndex.next; + } else { preIndex = index; index = index.next;