mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -5,13 +5,13 @@
|
||||
<p>Given two axis-aligned rectangles <code>rec1</code> and <code>rec2</code>, return <code>true</code><em> if they overlap, otherwise return </em><code>false</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
<pre><strong>Input:</strong> rec1 = [0,0,2,2], rec2 = [1,1,3,3]
|
||||
<strong>Output:</strong> true
|
||||
</pre><p><strong>Example 2:</strong></p>
|
||||
</pre><p><strong class="example">Example 2:</strong></p>
|
||||
<pre><strong>Input:</strong> rec1 = [0,0,1,1], rec2 = [1,0,2,1]
|
||||
<strong>Output:</strong> false
|
||||
</pre><p><strong>Example 3:</strong></p>
|
||||
</pre><p><strong class="example">Example 3:</strong></p>
|
||||
<pre><strong>Input:</strong> rec1 = [0,0,1,1], rec2 = [2,2,3,3]
|
||||
<strong>Output:</strong> false
|
||||
</pre>
|
||||
@@ -19,8 +19,8 @@
|
||||
<p><strong>Constraints:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>rect1.length == 4</code></li>
|
||||
<li><code>rect2.length == 4</code></li>
|
||||
<li><code>rec1.length == 4</code></li>
|
||||
<li><code>rec2.length == 4</code></li>
|
||||
<li><code>-10<sup>9</sup> <= rec1[i], rec2[i] <= 10<sup>9</sup></code></li>
|
||||
<li><code>rec1</code> and <code>rec2</code> represent a valid rectangle with a non-zero area.</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user