mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 03:11:42 +08:00
批量更新数据
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
执行第一种操作,选中下标 i = 1 ,可以得到 s = "011101" ,成本为 2 。
|
||||
执行第一种操作,选中下标 i = 0 ,可以得到 s = "111101" ,成本为 1 。
|
||||
执行第二种操作,选中下标 i = 4 ,可以得到 s = "111110" ,成本为 2 。
|
||||
执行第一种操作,选中下标 i = 5 ,可以得到 s = "111111" ,成本为 1 。
|
||||
执行第二种操作,选中下标 i = 5 ,可以得到 s = "111111" ,成本为 1 。
|
||||
使所有字符相等的总成本等于 9 。可以证明 9 是使所有字符相等的最小成本。 </pre>
|
||||
|
||||
<p> </p>
|
||||
|
Reference in New Issue
Block a user