From f13973824879182c304c64c2601ab4ed07119e20 Mon Sep 17 00:00:00 2001 From: Deven <63876261+devenperez@users.noreply.github.com> Date: Sat, 7 May 2022 15:32:46 -0400 Subject: [PATCH] Create README - LeetHub --- 19-remove-nth-node-from-end-of-list/README.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 19-remove-nth-node-from-end-of-list/README.md diff --git a/19-remove-nth-node-from-end-of-list/README.md b/19-remove-nth-node-from-end-of-list/README.md new file mode 100644 index 0000000..8d4110a --- /dev/null +++ b/19-remove-nth-node-from-end-of-list/README.md @@ -0,0 +1,34 @@ +
Given the head of a linked list, remove the nth node from the end of the list and return its head.
+
Example 1:
+
+Input: head = [1,2,3,4,5], n = 2 +Output: [1,2,3,5] ++ +
Example 2:
+ +Input: head = [1], n = 1 +Output: [] ++ +
Example 3:
+ +Input: head = [1,2], n = 1 +Output: [1] ++ +
+
Constraints:
+ +sz.1 <= sz <= 300 <= Node.val <= 1001 <= n <= sz+
Follow up: Could you do this in one pass?
+