Update 算法 - 符号表.md

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
CyC2018
2026-10-23 04:39:45 +08:00
co-authored by Claude Fable 5
parent 97ed6381d7
commit 3986b77ef4
+3 -1
View File
@@ -127,8 +127,10 @@ public class ListUnorderedST<Key, Value> implements UnorderedST<Key, Value> {
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)) {