mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<p>You may return the answer in <strong>any order</strong>. The answer is <strong>guaranteed</strong> to be <strong>unique</strong> (except for the order that it is in).</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/03/03/closestplane1.jpg" style="width: 400px; height: 400px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> points = [[1,3],[-2,2]], k = 1
|
||||
@@ -17,7 +17,7 @@ Since sqrt(8) < sqrt(10), (-2, 2) is closer to the origin.
|
||||
We only want the closest k = 1 points from the origin, so the answer is just [[-2,2]].
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> points = [[3,3],[5,-1],[-2,4]], k = 2
|
||||
@@ -30,5 +30,5 @@ We only want the closest k = 1 points from the origin, so the answer is just [[-
|
||||
|
||||
<ul>
|
||||
<li><code>1 <= k <= points.length <= 10<sup>4</sup></code></li>
|
||||
<li><code>-10<sup>4</sup> < x<sub>i</sub>, y<sub>i</sub> < 10<sup>4</sup></code></li>
|
||||
<li><code>-10<sup>4</sup> <= x<sub>i</sub>, y<sub>i</sub> <= 10<sup>4</sup></code></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user