Skip to content

Commit 7ac499f

Browse files
committed
deploy: d3e53ba
1 parent 1375ece commit 7ac499f

File tree

7 files changed

+224
-206
lines changed

7 files changed

+224
-206
lines changed

en/lc/3235/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77937,17 +77937,17 @@ <h1 id="3235-check-if-the-rectangle-corner-is-reachable"><a href="https://leetco
7793777937
<h2 id="description">Description</h2>
7793877938
<!-- description:start -->
7793977939

77940-
<p>You are given two positive integers <code>X</code> and <code>Y</code>, and a 2D array <code>circles</code>, where <code>circles[i] = [x<sub>i</sub>, y<sub>i</sub>, r<sub>i</sub>]</code> denotes a circle with center at <code>(x<sub>i</sub>, y<sub>i</sub>)</code> and radius <code>r<sub>i</sub></code>.</p>
77940+
<p>You are given two positive integers <code>xCorner</code> and <code>yCorner</code>, and a 2D array <code>circles</code>, where <code>circles[i] = [x<sub>i</sub>, y<sub>i</sub>, r<sub>i</sub>]</code> denotes a circle with center at <code>(x<sub>i</sub>, y<sub>i</sub>)</code> and radius <code>r<sub>i</sub></code>.</p>
7794177941

77942-
<p>There is a rectangle in the coordinate plane with its bottom left corner at the origin and top right corner at the coordinate <code>(X, Y)</code>. You need to check whether there is a path from the bottom left corner to the top right corner such that the <strong>entire path</strong> lies inside the rectangle, <strong>does not</strong> touch or lie inside <strong>any</strong> circle, and touches the rectangle <strong>only</strong> at the two corners.</p>
77942+
<p>There is a rectangle in the coordinate plane with its bottom left corner at the origin and top right corner at the coordinate <code>(xCorner, yCorner)</code>. You need to check whether there is a path from the bottom left corner to the top right corner such that the <strong>entire path</strong> lies inside the rectangle, <strong>does not</strong> touch or lie inside <strong>any</strong> circle, and touches the rectangle <strong>only</strong> at the two corners.</p>
7794377943

7794477944
<p>Return <code>true</code> if such a path exists, and <code>false</code> otherwise.</p>
7794577945

7794677946
<p>&nbsp;</p>
7794777947
<p><strong class="example">Example 1:</strong></p>
7794877948

7794977949
<div class="example-block">
77950-
<p><strong>Input:</strong> <span class="example-io">X = 3, Y = 4, circles = [[2,1,1]]</span></p>
77950+
<p><strong>Input:</strong> <span class="example-io">xCorner = 3, yCorner = 4, circles = [[2,1,1]]</span></p>
7795177951

7795277952
<p><strong>Output:</strong> <span class="example-io">true</span></p>
7795377953

@@ -77961,7 +77961,7 @@ <h2 id="description">Description</h2>
7796177961
<p><strong class="example">Example 2:</strong></p>
7796277962

7796377963
<div class="example-block">
77964-
<p><strong>Input:</strong> <span class="example-io">X = 3, Y = 3, circles = [[1,1,2]]</span></p>
77964+
<p><strong>Input:</strong> <span class="example-io">xCorner = 3, yCorner = 3, circles = [[1,1,2]]</span></p>
7796577965

7796677966
<p><strong>Output:</strong> <span class="example-io">false</span></p>
7796777967

@@ -77975,7 +77975,7 @@ <h2 id="description">Description</h2>
7797577975
<p><strong class="example">Example 3:</strong></p>
7797677976

7797777977
<div class="example-block">
77978-
<p><strong>Input:</strong> <span class="example-io">X = 3, Y = 3, circles = [[2,1,1],[1,2,1]]</span></p>
77978+
<p><strong>Input:</strong> <span class="example-io">xCorner = 3, yCorner = 3, circles = [[2,1,1],[1,2,1]]</span></p>
7797977979

7798077980
<p><strong>Output:</strong> <span class="example-io">false</span></p>
7798177981

@@ -77989,7 +77989,7 @@ <h2 id="description">Description</h2>
7798977989
<p><strong class="example">Example 4:</strong></p>
7799077990

7799177991
<div class="example-block">
77992-
<p><strong>Input:</strong> <span class="example-io">X = 4, Y = 4, circles = [[5,5,1]]</span></p>
77992+
<p><strong>Input:</strong> <span class="example-io">xCorner = 4, yCorner = 4, circles = [[5,5,1]]</span></p>
7799377993

7799477994
<p><strong>Output:</strong> <span class="example-io">true</span></p>
7799577995

@@ -78002,7 +78002,7 @@ <h2 id="description">Description</h2>
7800278002
<p><strong>Constraints:</strong></p>
7800378003

7800478004
<ul>
78005-
<li><code>3 &lt;= X, Y &lt;= 10<sup>9</sup></code></li>
78005+
<li><code>3 &lt;= xCorner, yCorner &lt;= 10<sup>9</sup></code></li>
7800678006
<li><code>1 &lt;= circles.length &lt;= 1000</code></li>
7800778007
<li><code>circles[i].length == 3</code></li>
7800878008
<li><code>1 &lt;= x<sub>i</sub>, y<sub>i</sub>, r<sub>i</sub> &lt;= 10<sup>9</sup></code></li>

en/lc/3242/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77933,10 +77933,10 @@ <h2 id="description">Description</h2>
7793377933

7793477934
<p>You are given a <code>n x n</code> 2D array <code>grid</code> containing <strong>distinct</strong> elements in the range <code>[0, n<sup>2</sup> - 1]</code>.</p>
7793577935

77936-
<p>Implement the <code>neighborSum</code> class:</p>
77936+
<p>Implement the <code>NeighborSum</code> class:</p>
7793777937

7793877938
<ul>
77939-
<li><code>neighborSum(int [][]grid)</code> initializes the object.</li>
77939+
<li><code>NeighborSum(int [][]grid)</code> initializes the object.</li>
7794077940
<li><code>int adjacentSum(int value)</code> returns the <strong>sum</strong> of elements which are adjacent neighbors of <code>value</code>, that is either to the top, left, right, or bottom of <code>value</code> in <code>grid</code>.</li>
7794177941
<li><code>int diagonalSum(int value)</code> returns the <strong>sum</strong> of elements which are diagonal neighbors of <code>value</code>, that is either to the top-left, top-right, bottom-left, or bottom-right of <code>value</code> in <code>grid</code>.</li>
7794277942
</ul>
@@ -77949,7 +77949,7 @@ <h2 id="description">Description</h2>
7794977949
<div class="example-block">
7795077950
<p><strong>Input:</strong></p>
7795177951

77952-
<p>[&quot;neighborSum&quot;, &quot;adjacentSum&quot;, &quot;adjacentSum&quot;, &quot;diagonalSum&quot;, &quot;diagonalSum&quot;]</p>
77952+
<p>[&quot;NeighborSum&quot;, &quot;adjacentSum&quot;, &quot;adjacentSum&quot;, &quot;diagonalSum&quot;, &quot;diagonalSum&quot;]</p>
7795377953

7795477954
<p>[[[[0, 1, 2], [3, 4, 5], [6, 7, 8]]], [1], [4], [4], [8]]</p>
7795577955

@@ -77972,7 +77972,7 @@ <h2 id="description">Description</h2>
7797277972
<div class="example-block">
7797377973
<p><strong>Input:</strong></p>
7797477974

77975-
<p>[&quot;neighborSum&quot;, &quot;adjacentSum&quot;, &quot;diagonalSum&quot;]</p>
77975+
<p>[&quot;NeighborSum&quot;, &quot;adjacentSum&quot;, &quot;diagonalSum&quot;]</p>
7797677976

7797777977
<p>[[[[1, 2, 0, 3], [4, 7, 15, 6], [8, 9, 10, 11], [12, 13, 14, 5]]], [15], [9]]</p>
7797877978

0 commit comments

Comments
 (0)