Skip to content

Commit e01506a

Browse files
fix build
1 parent a67284e commit e01506a

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ int idx(int key) {
7575
}
7676

7777
ListNode find(ListNode bucket, int key) {
78-
ListNode node = bucket, prev = null;
78+
ListNode node = bucket;
79+
ListNode prev = null;
7980
while (node != null && node.key != key) {
8081
prev = node;
8182
node = node.next;
@@ -84,7 +85,8 @@ ListNode find(ListNode bucket, int key) {
8485
}
8586

8687
class ListNode {
87-
int key, val;
88+
int key;
89+
int val;
8890
ListNode next;
8991

9092
ListNode(int key, int val) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy