mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-03 22:42:52 +08:00
存量题库数据更新
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<p>Given a string <code>board</code>, representing the row of balls on the board, and a string <code>hand</code>, representing the balls in your hand, return <em>the <strong>minimum</strong> number of balls you have to insert to clear all the balls from the board. If you cannot clear all the balls from the board using the balls in your hand, return </em><code>-1</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> board = "WRRBBW", hand = "RB"
|
||||
@@ -28,7 +28,7 @@
|
||||
- Insert 'B' so the board becomes WBB<u>B</u>W. W<u>BBB</u>W -> WW.
|
||||
There are still balls remaining on the board, and you are out of balls to insert.</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> board = "WWRRBBWW", hand = "WRBRW"
|
||||
@@ -39,7 +39,7 @@ There are still balls remaining on the board, and you are out of balls to insert
|
||||
2 balls from your hand were needed to clear the board.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> board = "G", hand = "GGGGG"
|
||||
|
Reference in New Issue
Block a user