Skip to content

Commit 4ef208b

Browse files
edit 146
1 parent aeebda0 commit 4ef208b

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+2
-1
lines changed

src/main/java/com/fishercoder/solutions/_146.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ public void set(int key, int value) {
142142
}
143143

144144
private void remove(DoublyLinkedListPlusHashMapSolution.Node node) {
145-
DoublyLinkedListPlusHashMapSolution.Node next = node.next, prev = node.prev;
145+
DoublyLinkedListPlusHashMapSolution.Node next = node.next;
146+
DoublyLinkedListPlusHashMapSolution.Node prev = node.prev;
146147
prev.next = next;
147148
next.prev = prev;
148149
}

0 commit comments

Comments
 (0)