1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-12 02:41:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

批量更新数据

This commit is contained in:
2025-01-09 20:29:41 +08:00
parent 04ecea043d
commit 48cdd06c2b
5053 changed files with 156164 additions and 135322 deletions

View File

@@ -11,28 +11,28 @@
<pre>
<strong>输入:</strong>asteroids = [5,10,-5]
<strong>输出:</strong>[5,10]
<b>解释:</b>10 和 -5 碰撞后只剩下 10 。 5 和 10 永远不会发生碰撞。</pre>
<strong>解释:</strong>10 和 -5 碰撞后只剩下 10 。 5 和 10 永远不会发生碰撞。</pre>
<p><strong>示例 2</strong></p>
<pre>
<strong>输入:</strong>asteroids = [8,-8]
<strong>输出:</strong>[]
<b>解释:</b>8 和 -8 碰撞后,两者都发生爆炸。</pre>
<strong>解释:</strong>8 和 -8 碰撞后,两者都发生爆炸。</pre>
<p><strong>示例 3</strong></p>
<pre>
<strong>输入:</strong>asteroids = [10,2,-5]
<strong>输出:</strong>[10]
<b>解释:</b>2 和 -5 发生碰撞后剩下 -5 。10 和 -5 发生碰撞后剩下 10 。</pre>
<strong>解释:</strong>2 和 -5 发生碰撞后剩下 -5 。10 和 -5 发生碰撞后剩下 10 。</pre>
<p><strong>示例 4</strong></p>
<pre>
<strong>输入:</strong>asteroids = [-2,-1,1,2]
<strong>输出:</strong>[-2,-1,1,2]
<b>解释</b><strong></strong>-2 和 -1 向左移动,而 1 和 2 向右移动。 由于移动方向相同的行星不会发生碰撞,所以最终没有行星发生碰撞。 </pre>
<strong>解释</strong>-2 和 -1 向左移动,而 1 和 2 向右移动。 由于移动方向相同的行星不会发生碰撞,所以最终没有行星发生碰撞。 </pre>
<p>&nbsp;</p>