1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/判定字符是否唯一 [is-unique-lcci].html
2022-03-29 12:43:11 +08:00

20 lines
546 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>实现一个算法,确定一个字符串 <code>s</code> 的所有字符是否全都不同。</p>
<p><strong>示例 1</strong></p>
<pre><strong>输入:</strong> <code>s</code> = &quot;leetcode&quot;
<strong>输出:</strong> false
</pre>
<p><strong>示例 2</strong></p>
<pre><strong>输入:</strong> <code>s</code> = &quot;abc&quot;
<strong>输出:</strong> true
</pre>
<p><strong>限制:</strong></p>
<ul>
<li><code>0 <= len(s) <= 100 </code></li>
<li>如果你不使用额外的数据结构,会很加分。</li>
</ul>