Skip to content

Commit 7f58f0e

Browse files
refactor 203
1 parent b94b4ad commit 7f58f0e

File tree

1 file changed

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

1 file changed

+1
-10
lines changed

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,12 @@
22

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

5-
/**
6-
* 203. Remove Linked List Elements
7-
*
8-
* Remove all elements from a linked list of integers that have value val.
9-
*
10-
* Example
11-
* Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6
12-
* Return: 1 --> 2 --> 3 --> 4 --> 5
13-
*/
145
public class _203 {
156
public static class Solution1 {
167
/**
178
* This is a very good question to test your understanding of pointers/memory/addresses, although it's marked as EASY.
189
* All the three nodes: dummy, curr and prev are indispensable.
19-
*
10+
* <p>
2011
* 1. Eventually, we should return dummy.next as the final result.
2112
* 2. we assign head to curr, dummy to prev
2213
* 3. and then we use prev and curr to traverse through the list and do the work

0 commit comments

Comments
 (0)