Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d0fe94e

Browse files
committedApr 19, 2024
Create README - LeetHub
1 parent eb53c21 commit d0fe94e

File tree

1 file changed

+25
-0
lines changed
  • 0083-remove-duplicates-from-sorted-list

1 file changed

+25
-0
lines changed
 
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<h2><a href="https://leetcode.com/problems/remove-duplicates-from-sorted-list">83. Remove Duplicates from Sorted List</a></h2><h3>Easy</h3><hr><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 class="example">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>
7+
<strong>Input:</strong> head = [1,1,2]
8+
<strong>Output:</strong> [1,2]
9+
</pre>
10+
11+
<p><strong class="example">Example 2:</strong></p>
12+
<img alt="" src="https://assets.leetcode.com/uploads/2021/01/04/list2.jpg" style="width: 542px; height: 222px;" />
13+
<pre>
14+
<strong>Input:</strong> head = [1,1,2,3,3]
15+
<strong>Output:</strong> [1,2,3]
16+
</pre>
17+
18+
<p>&nbsp;</p>
19+
<p><strong>Constraints:</strong></p>
20+
21+
<ul>
22+
<li>The number of nodes in the list is in the range <code>[0, 300]</code>.</li>
23+
<li><code>-100 &lt;= Node.val &lt;= 100</code></li>
24+
<li>The list is guaranteed to be <strong>sorted</strong> in ascending order.</li>
25+
</ul>

0 commit comments

Comments
 (0)
Please sign in to comment.