mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 08:21:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<p>Return <em>the minimum cost</em> needed to move all the chips to the same position.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2020/08/15/chips_e1.jpg" style="width: 750px; height: 217px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> position = [1,2,3]
|
||||
@@ -20,7 +20,7 @@ Second step: Move the chip at position 2 to position 1 with cost = 1.
|
||||
Total cost is 1.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2020/08/15/chip_e2.jpg" style="width: 750px; height: 306px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> position = [2,2,2,3,3]
|
||||
@@ -28,7 +28,7 @@ Total cost is 1.
|
||||
<strong>Explanation:</strong> We can move the two chips at position 3 to position 2. Each move has cost = 1. The total cost = 2.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> position = [1,1000000000]
|
||||
|
Reference in New Issue
Block a user