Skip to content

Commit 68b5b17

Browse files
refactor 237
1 parent dfc61e9 commit 68b5b17

File tree

1 file changed

+0
-23
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-23
lines changed

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22

33
import com.fishercoder.common.classes.ListNode;
44

5-
/**
6-
* 237. Delete Node in a Linked List
7-
*
8-
* Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.
9-
*
10-
* Given linked list -- head = [4,5,1,9], which looks like following:
11-
*
12-
* Example 1:
13-
* Input: head = [4,5,1,9], node = 5
14-
* Output: [4,1,9]
15-
* Explanation: You are given the second node with value 5, the linked list should become 4 -> 1 -> 9 after calling your function.
16-
*
17-
* Example 2:
18-
* Input: head = [4,5,1,9], node = 1
19-
* Output: [4,5,9]
20-
* Explanation: You are given the third node with value 1, the linked list should become 4 -> 5 -> 9 after calling your function.
21-
*
22-
* Note:
23-
* The linked list will have at least two elements.
24-
* All of the nodes' values will be unique.
25-
* The given node will not be the tail and it will always be a valid node of the linked list.
26-
* Do not return anything from your function.
27-
*/
285
public class _237 {
296

307
public static class Solution1 {

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