Skip to content

Commit fd64548

Browse files
committed
Create README - LeetHub
1 parent 43f1071 commit fd64548

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<h2><a href="https://leetcode.com/problems/remove-duplicate-letters">316. Remove Duplicate Letters</a></h2><h3>Medium</h3><hr><p>Given a string <code>s</code>, remove duplicate letters so that every letter appears once and only once. You must make sure your result is <span data-keyword="lexicographically-smaller-string"><strong>the smallest in lexicographical order</strong></span> among all possible results.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="example">Example 1:</strong></p>
5+
6+
<pre>
7+
<strong>Input:</strong> s = &quot;bcabc&quot;
8+
<strong>Output:</strong> &quot;abc&quot;
9+
</pre>
10+
11+
<p><strong class="example">Example 2:</strong></p>
12+
13+
<pre>
14+
<strong>Input:</strong> s = &quot;cbacdcbc&quot;
15+
<strong>Output:</strong> &quot;acdb&quot;
16+
</pre>
17+
18+
<p>&nbsp;</p>
19+
<p><strong>Constraints:</strong></p>
20+
21+
<ul>
22+
<li><code>1 &lt;= s.length &lt;= 10<sup>4</sup></code></li>
23+
<li><code>s</code> consists of lowercase English letters.</li>
24+
</ul>
25+
26+
<p>&nbsp;</p>
27+
<p><strong>Note:</strong> This question is the same as 1081: <a href="https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/" target="_blank">https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/</a></p>

0 commit comments

Comments
 (0)