mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-23 13:58:56 +08:00
存量题库数据更新
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<p><strong>Note:</strong> An array <code>A</code> rotated by <code>x</code> positions results in an array <code>B</code> of the same length such that <code>A[i] == B[(i+x) % A.length]</code>, where <code>%</code> is the modulo operation.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> nums = [3,4,5,1,2]
|
||||
@@ -14,7 +14,7 @@
|
||||
You can rotate the array by x = 3 positions to begin on the the element of value 3: [3,4,5,1,2].
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> nums = [2,1,3,4]
|
||||
@@ -22,7 +22,7 @@ You can rotate the array by x = 3 positions to begin on the the element of value
|
||||
<strong>Explanation:</strong> There is no sorted array once rotated that can make nums.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> nums = [1,2,3]
|
||||
|
Reference in New Issue
Block a user