Skip to content

Commit 97357b8

Browse files
refactor 237
1 parent 104c54a commit 97357b8

File tree

1 file changed

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

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
*/
1111
public class _237 {
1212

13-
public void deleteNode(ListNode node) {
14-
node.val = node.next.val;
15-
node.next = node.next.next;
13+
public static class Solution1 {
14+
public void deleteNode(ListNode node) {
15+
node.val = node.next.val;
16+
node.next = node.next.next;
17+
}
1618
}
17-
1819
}

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