mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
|
||||
<p>At the end of the game, there is <strong>at most one</strong> stone left.</p>
|
||||
|
||||
<p>Return <em>the smallest possible weight of the left stone</em>. If there are no stones left, return <code>0</code>.</p>
|
||||
<p>Return <em>the weight of the last remaining stone</em>. If there are no stones left, return <code>0</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> stones = [2,7,4,1,8,1]
|
||||
@@ -24,7 +24,7 @@ we combine 2 and 1 to get 1 so the array converts to [1,1,1] then,
|
||||
we combine 1 and 1 to get 0 so the array converts to [1] then that's the value of the last stone.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> stones = [1]
|
||||
|
Reference in New Issue
Block a user