We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0838851 commit a8a43d3Copy full SHA for a8a43d3
src/main/java/com/fishercoder/solutions/_706.java
@@ -75,7 +75,8 @@ int idx(int key) {
75
}
76
77
ListNode find(ListNode bucket, int key) {
78
- ListNode node = bucket, prev = null;
+ ListNode node = bucket;
79
+ ListNode prev = null;
80
while (node != null && node.key != key) {
81
prev = node;
82
node = node.next;
@@ -84,7 +85,8 @@ ListNode find(ListNode bucket, int key) {
84
85
86
87
class ListNode {
- int key, val;
88
+ int key;
89
+ int val;
90
ListNode next;
91
92
ListNode(int key, int val) {
0 commit comments