mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<p>Return <em>an array</em> <code>answer</code> <em>of length</em> <code>m</code> <em>where</em> <code>answer[i]</code> <em>is <strong>the number of instructions</strong> the robot can execute if the robot <strong>begins executing from</strong> the</em> <code>i<sup>th</sup></code> <em>instruction in</em> <code>s</code>.</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/2021/12/09/1.png" style="width: 145px; height: 142px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> n = 3, startPos = [0,1], s = "RRDDLU"
|
||||
@@ -26,7 +26,7 @@
|
||||
- 5<sup>th</sup>: "U". If moving up, it would move off the grid.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/12/09/2.png" style="width: 106px; height: 103px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> n = 2, startPos = [1,1], s = "LURD"
|
||||
@@ -38,7 +38,7 @@
|
||||
- 3<sup>rd</sup>: "D".
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/12/09/3.png" style="width: 67px; height: 64px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> n = 1, startPos = [0,0], s = "LRUD"
|
||||
|
Reference in New Issue
Block a user