mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-10 09:51:42 +08:00
存量题库数据更新
This commit is contained in:
@@ -17,10 +17,11 @@
|
||||
<li>East means +X direction.</li>
|
||||
<li>South means -Y direction.</li>
|
||||
<li>West means -X direction.</li>
|
||||
<li>There can be obstacle in [0,0].</li>
|
||||
</ul>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> commands = [4,-1,3], obstacles = []
|
||||
@@ -32,7 +33,7 @@
|
||||
The furthest point the robot ever gets from the origin is (3, 4), which squared is 3<sup>2</sup> + 4<sup>2</sup> = 25 units away.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> commands = [4,-1,4,-2,4], obstacles = [[2,4]]
|
||||
@@ -46,7 +47,7 @@ The furthest point the robot ever gets from the origin is (3, 4), which squared
|
||||
The furthest point the robot ever gets from the origin is (1, 8), which squared is 1<sup>2</sup> + 8<sup>2</sup> = 65 units away.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> commands = [6,-1,-1,6], obstacles = []
|
||||
|
Reference in New Issue
Block a user