Skip to content

Commit 9e47cfe

Browse files
committed
Create README - LeetHub
1 parent 4ec94b3 commit 9e47cfe

File tree

1 file changed

+30
-0
lines changed
  • 1637-widest-vertical-area-between-two-points-containing-no-points

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<h2><a href="https://leetcode.com/problems/widest-vertical-area-between-two-points-containing-no-points/">1637. Widest Vertical Area Between Two Points Containing No Points</a></h2><h3>Medium</h3><hr><div><p>Given <code>n</code> <code>points</code> on a 2D plane where <code>points[i] = [x<sub>i</sub>, y<sub>i</sub>]</code>, Return<em>&nbsp;the <strong>widest vertical area</strong> between two points such that no points are inside the area.</em></p>
2+
3+
<p>A <strong>vertical area</strong> is an area of fixed-width extending infinitely along the y-axis (i.e., infinite height). The <strong>widest vertical area</strong> is the one with the maximum width.</p>
4+
5+
<p>Note that points <strong>on the edge</strong> of a vertical area <strong>are not</strong> considered included in the area.</p>
6+
7+
<p>&nbsp;</p>
8+
<p><strong class="example">Example 1:</strong></p>
9+
<img alt="" src="https://assets.leetcode.com/uploads/2020/09/19/points3.png" style="width: 276px; height: 371px;">​
10+
<pre><strong>Input:</strong> points = [[8,7],[9,9],[7,4],[9,7]]
11+
<strong>Output:</strong> 1
12+
<strong>Explanation:</strong> Both the red and the blue area are optimal.
13+
</pre>
14+
15+
<p><strong class="example">Example 2:</strong></p>
16+
17+
<pre><strong>Input:</strong> points = [[3,1],[9,0],[1,0],[1,4],[5,3],[8,8]]
18+
<strong>Output:</strong> 3
19+
</pre>
20+
21+
<p>&nbsp;</p>
22+
<p><strong>Constraints:</strong></p>
23+
24+
<ul>
25+
<li><code>n == points.length</code></li>
26+
<li><code>2 &lt;= n &lt;= 10<sup>5</sup></code></li>
27+
<li><code>points[i].length == 2</code></li>
28+
<li><code>0 &lt;= x<sub>i</sub>, y<sub>i</sub>&nbsp;&lt;= 10<sup>9</sup></code></li>
29+
</ul>
30+
</div>

0 commit comments

Comments
 (0)