Content-Length: 324643 | pFad | http://github.com/hajin-kim/algorithm-leetcode/commit/2bc146fb5fc0560d2ff7f286ade8c68c7c9d0f0e

DE Create README - LeetHub · hajin-kim/algorithm-leetcode@2bc146f · GitHub
Skip to content

Commit 2bc146f

Browse files
committed
Create README - LeetHub
1 parent 4e5da21 commit 2bc146f

File tree

1 file changed

+36
-0
lines changed
  • 0019-remove-nth-node-from-end-of-list

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<h2><a href="https://leetcode.com/problems/remove-nth-node-from-end-of-list/">19. Remove Nth Node From End of List</a></h2><h3>Medium</h3><hr><p>Given the <code>head</code> of a linked list, remove the <code>n<sup>th</sup></code> node from the end of the list and return its head.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="example">Example 1:</strong></p>
5+
<img alt="" src="https://assets.leetcode.com/uploads/2020/10/03/remove_ex1.jpg" style="width: 542px; height: 222px;" />
6+
<pre>
7+
<strong>Input:</strong> head = [1,2,3,4,5], n = 2
8+
<strong>Output:</strong> [1,2,3,5]
9+
</pre>
10+
11+
<p><strong class="example">Example 2:</strong></p>
12+
13+
<pre>
14+
<strong>Input:</strong> head = [1], n = 1
15+
<strong>Output:</strong> []
16+
</pre>
17+
18+
<p><strong class="example">Example 3:</strong></p>
19+
20+
<pre>
21+
<strong>Input:</strong> head = [1,2], n = 1
22+
<strong>Output:</strong> [1]
23+
</pre>
24+
25+
<p>&nbsp;</p>
26+
<p><strong>Constraints:</strong></p>
27+
28+
<ul>
29+
<li>The number of nodes in the list is <code>sz</code>.</li>
30+
<li><code>1 &lt;= sz &lt;= 30</code></li>
31+
<li><code>0 &lt;= Node.val &lt;= 100</code></li>
32+
<li><code>1 &lt;= n &lt;= sz</code></li>
33+
</ul>
34+
35+
<p>&nbsp;</p>
36+
<p><strong>Follow up:</strong> Could you do this in one pass?</p>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/hajin-kim/algorithm-leetcode/commit/2bc146fb5fc0560d2ff7f286ade8c68c7c9d0f0e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy