1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-12-20 19:03:47 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2025-09-29 14:43:44 +08:00
parent 2862a227c4
commit 13f2098086
4409 changed files with 168933 additions and 166256 deletions

View File

@@ -7,22 +7,22 @@
<p><strong>示例 1</strong></p>
<pre>
<strong>输入: </strong>letters = ["c", "f", "j"]target = "a"
<strong>输出:</strong> "c"
<strong>输入: </strong>letters = ['c', 'f', 'j']target = 'a'
<strong>输出:</strong> 'c'
<strong>解释:</strong>letters 中字典上比 'a' 大的最小字符是 'c'。</pre>
<p><strong>示例 2:</strong></p>
<pre>
<strong>输入:</strong> letters = ["c","f","j"], target = "c"
<strong>输出:</strong> "f"
<strong>输入:</strong> letters = ['c','f','j'], target = 'c'
<strong>输出:</strong> 'f'
<strong>解释:</strong>letters 中字典顺序上大于 'c' 的最小字符是 'f'。</pre>
<p><strong>示例 3:</strong></p>
<pre>
<strong>输入:</strong> letters = ["x","x","y","y"], target = "z"
<strong>输出:</strong> "x"
<strong>输入:</strong> letters = ['x','x','y','y'], target = 'z'
<strong>输出:</strong> 'x'
<strong>解释:</strong>letters 中没有一个字符在字典上大于 'z',所以我们返回 letters[0]。</pre>
<p>&nbsp;</p>