mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-12-21 03:13:45 +08:00
update
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>number = "123", digit = "3"
|
||||
<strong>输入:</strong>number = "123", digit = '3'
|
||||
<strong>输出:</strong>"12"
|
||||
<strong>解释:</strong>"123" 中只有一个 '3' ,在移除 '3' 之后,结果为 "12" 。
|
||||
</pre>
|
||||
@@ -15,7 +15,7 @@
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>number = "1231", digit = "1"
|
||||
<strong>输入:</strong>number = "1231", digit = '1'
|
||||
<strong>输出:</strong>"231"
|
||||
<strong>解释:</strong>可以移除第一个 '1' 得到 "231" 或者移除第二个 '1' 得到 "123" 。
|
||||
由于 231 > 123 ,返回 "231" 。
|
||||
@@ -24,7 +24,7 @@
|
||||
<p><strong>示例 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>number = "551", digit = "5"
|
||||
<strong>输入:</strong>number = "551", digit = '5'
|
||||
<strong>输出:</strong>"51"
|
||||
<strong>解释:</strong>可以从 "551" 中移除第一个或者第二个 '5' 。
|
||||
两种方案的结果都是 "51" 。
|
||||
|
||||
Reference in New Issue
Block a user