From 3986b77ef40596c9dc41d3f51bf4af84df442fb2 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Fri, 23 Oct 2026 04:39:45 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E7=AE=97=E6=B3=95=20-=20=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7=E8=A1=A8.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- notes/算法 - 符号表.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/notes/算法 - 符号表.md b/notes/算法 - 符号表.md index bae9ad51..79fc8bb6 100644 --- a/notes/算法 - 符号表.md +++ b/notes/算法 - 符号表.md @@ -127,8 +127,10 @@ public class ListUnorderedST implements UnorderedST { public void delete(Key key) { if (first == null) return; - if (first.key.equals(key)) + if (first.key.equals(key)) { first = first.next; + return; + } Node pre = first, cur = first.next; while (cur != null) { if (cur.key.equals(key)) {