Skip to content

Commit 25222d4

Browse files
committed
Create README - LeetHub
1 parent 2a9ea1b commit 25222d4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<h2>83. Remove Duplicates from Sorted List</h2><h3>Easy</h3><hr><div><p>Given the <code>head</code> of a sorted linked list, <em>delete all duplicates such that each element appears only once</em>. Return <em>the linked list <strong>sorted</strong> as well</em>.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong>Example 1:</strong></p>
5+
<img alt="" src="https://assets.leetcode.com/uploads/2021/01/04/list1.jpg" style="width: 302px; height: 242px;">
6+
<pre><strong>Input:</strong> head = [1,1,2]
7+
<strong>Output:</strong> [1,2]
8+
</pre>
9+
10+
<p><strong>Example 2:</strong></p>
11+
<img alt="" src="https://assets.leetcode.com/uploads/2021/01/04/list2.jpg" style="width: 542px; height: 222px;">
12+
<pre><strong>Input:</strong> head = [1,1,2,3,3]
13+
<strong>Output:</strong> [1,2,3]
14+
</pre>
15+
16+
<p>&nbsp;</p>
17+
<p><strong>Constraints:</strong></p>
18+
19+
<ul>
20+
<li>The number of nodes in the list is in the range <code>[0, 300]</code>.</li>
21+
<li><code>-100 &lt;= Node.val &lt;= 100</code></li>
22+
<li>The list is guaranteed to be <strong>sorted</strong> in ascending order.</li>
23+
</ul>
24+
</div>

0 commit comments

Comments
 (0)