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)/第一个只出现一次的字符 [di-yi-ge-zhi-chu-xian-yi-ci-de-zi-fu-lcof].html
2022-03-29 12:43:11 +08:00

22 lines
403 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>在字符串 s 中找出第一个只出现一次的字符。如果没有,返回一个单空格。 s 只包含小写字母。</p>
<p><strong>示例 1:</strong></p>
<pre>
输入s = "abaccdeff"
输出:'b'
</pre>
<p><strong>示例 2:</strong></p>
<pre>
输入s = ""
输出:' '
</pre>
<p>&nbsp;</p>
<p><strong>限制:</strong></p>
<p><code>0 &lt;= s 的长度 &lt;= 50000</code></p>