Skip to content

Commit f45311d

Browse files
committed
19. Remove Nth Node From End of List
1 parent 8d32748 commit f45311d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/leetcode/_19_/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
public class Main {
77
public static void main(String[] args) {
88
ListNode node = new ListNode(1).setNext(new ListNode(2).setNext(new ListNode(3).setNext(new ListNode(4).setNext(new ListNode(5)))));
9-
// ListNode node = new ListNode(1).setNext(new ListNode(2)); // test2
9+
// ListNode node = new ListNode(1).setNext(new ListNode(2));
1010
Solution solution = new Solution();
1111
ListNode listNode = solution.removeNthFromEnd(node, 2);
1212
System.out.println(listNode.toString());

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