Skip to content

Commit 43bf374

Browse files
committed
deploy: 9d3e84e
1 parent e8deefc commit 43bf374

File tree

26 files changed

+155
-131
lines changed

26 files changed

+155
-131
lines changed

en/lc/1683/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80677,6 +80677,7 @@ <h2 id="description">Description</h2>
8067780677
| content | varchar |
8067880678
+----------------+---------+
8067980679
tweet_id is the primary key (column with unique values) for this table.
80680+
content consists of characters on an American Keyboard, and no other special characters.
8068080681
This table contains all the tweets in a social media app.
8068180682
</pre>
8068280683

en/lc/1861/index.html

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -80679,102 +80679,69 @@ <h1 id="1861-rotating-the-box"><a href="https://leetcode.com/problems/rotating-t
8067980679
<h2 id="description">Description</h2>
8068080680
<!-- description:start -->
8068180681

80682-
<p>You are given an <code>m x n</code> matrix of characters <code>box</code> representing a side-view of a box. Each cell of the box is one of the following:</p>
80682+
<p>You are given an <code>m x n</code> matrix of characters <code>boxGrid</code> representing a side-view of a box. Each cell of the box is one of the following:</p>
8068380683

8068480684
<ul>
80685-
8068680685
<li>A stone <code>&#39;#&#39;</code></li>
80687-
8068880686
<li>A stationary obstacle <code>&#39;*&#39;</code></li>
80689-
8069080687
<li>Empty <code>&#39;.&#39;</code></li>
80691-
8069280688
</ul>
8069380689

8069480690
<p>The box is rotated <strong>90 degrees clockwise</strong>, causing some of the stones to fall due to gravity. Each stone falls down until it lands on an obstacle, another stone, or the bottom of the box. Gravity <strong>does not</strong> affect the obstacles&#39; positions, and the inertia from the box&#39;s rotation <strong>does not </strong>affect the stones&#39; horizontal positions.</p>
8069580691

80696-
<p>It is <strong>guaranteed</strong> that each stone in <code>box</code> rests on an obstacle, another stone, or the bottom of the box.</p>
80692+
<p>It is <strong>guaranteed</strong> that each stone in <code>boxGrid</code> rests on an obstacle, another stone, or the bottom of the box.</p>
8069780693

8069880694
<p>Return <em>an </em><code>n x m</code><em> matrix representing the box after the rotation described above</em>.</p>
8069980695

8070080696
<p>&nbsp;</p>
80701-
8070280697
<p><strong class="example">Example 1:</strong></p>
8070380698

8070480699
<p><a class="glightbox" href="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcodewithstones.png" data-type="image" data-width="auto" data-height="auto" data-desc-position="bottom"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcodewithstones.png" style="width: 300px; height: 150px;" /></a></p>
8070580700

8070680701
<pre>
80707-
80708-
<strong>Input:</strong> box = [[&quot;#&quot;,&quot;.&quot;,&quot;#&quot;]]
80709-
80702+
<strong>Input:</strong> boxGrid = [[&quot;#&quot;,&quot;.&quot;,&quot;#&quot;]]
8071080703
<strong>Output:</strong> [[&quot;.&quot;],
80711-
8071280704
&nbsp; [&quot;#&quot;],
80713-
8071480705
&nbsp; [&quot;#&quot;]]
80715-
8071680706
</pre>
8071780707

8071880708
<p><strong class="example">Example 2:</strong></p>
8071980709

8072080710
<p><a class="glightbox" href="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode2withstones.png" data-type="image" data-width="auto" data-height="auto" data-desc-position="bottom"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode2withstones.png" style="width: 375px; height: 195px;" /></a></p>
8072180711

8072280712
<pre>
80723-
80724-
<strong>Input:</strong> box = [[&quot;#&quot;,&quot;.&quot;,&quot;*&quot;,&quot;.&quot;],
80725-
80713+
<strong>Input:</strong> boxGrid = [[&quot;#&quot;,&quot;.&quot;,&quot;*&quot;,&quot;.&quot;],
8072680714
&nbsp; [&quot;#&quot;,&quot;#&quot;,&quot;*&quot;,&quot;.&quot;]]
80727-
8072880715
<strong>Output:</strong> [[&quot;#&quot;,&quot;.&quot;],
80729-
8073080716
&nbsp; [&quot;#&quot;,&quot;#&quot;],
80731-
8073280717
&nbsp; [&quot;*&quot;,&quot;*&quot;],
80733-
8073480718
&nbsp; [&quot;.&quot;,&quot;.&quot;]]
80735-
8073680719
</pre>
8073780720

8073880721
<p><strong class="example">Example 3:</strong></p>
8073980722

8074080723
<p><a class="glightbox" href="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode3withstone.png" data-type="image" data-width="auto" data-height="auto" data-desc-position="bottom"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode3withstone.png" style="width: 400px; height: 218px;" /></a></p>
8074180724

8074280725
<pre>
80743-
80744-
<strong>Input:</strong> box = [[&quot;#&quot;,&quot;#&quot;,&quot;*&quot;,&quot;.&quot;,&quot;*&quot;,&quot;.&quot;],
80745-
80726+
<strong>Input:</strong> boxGrid = [[&quot;#&quot;,&quot;#&quot;,&quot;*&quot;,&quot;.&quot;,&quot;*&quot;,&quot;.&quot;],
8074680727
&nbsp; [&quot;#&quot;,&quot;#&quot;,&quot;#&quot;,&quot;*&quot;,&quot;.&quot;,&quot;.&quot;],
80747-
8074880728
&nbsp; [&quot;#&quot;,&quot;#&quot;,&quot;#&quot;,&quot;.&quot;,&quot;#&quot;,&quot;.&quot;]]
80749-
8075080729
<strong>Output:</strong> [[&quot;.&quot;,&quot;#&quot;,&quot;#&quot;],
80751-
8075280730
&nbsp; [&quot;.&quot;,&quot;#&quot;,&quot;#&quot;],
80753-
8075480731
&nbsp; [&quot;#&quot;,&quot;#&quot;,&quot;*&quot;],
80755-
8075680732
&nbsp; [&quot;#&quot;,&quot;*&quot;,&quot;.&quot;],
80757-
8075880733
&nbsp; [&quot;#&quot;,&quot;.&quot;,&quot;*&quot;],
80759-
8076080734
&nbsp; [&quot;#&quot;,&quot;.&quot;,&quot;.&quot;]]
80761-
8076280735
</pre>
8076380736

8076480737
<p>&nbsp;</p>
80765-
8076680738
<p><strong>Constraints:</strong></p>
8076780739

8076880740
<ul>
80769-
80770-
<li><code>m == box.length</code></li>
80771-
80772-
<li><code>n == box[i].length</code></li>
80773-
80741+
<li><code>m == boxGrid.length</code></li>
80742+
<li><code>n == boxGrid[i].length</code></li>
8077480743
<li><code>1 &lt;= m, n &lt;= 500</code></li>
80775-
80776-
<li><code>box[i][j]</code> is either <code>&#39;#&#39;</code>, <code>&#39;*&#39;</code>, or <code>&#39;.&#39;</code>.</li>
80777-
80744+
<li><code>boxGrid[i][j]</code> is either <code>&#39;#&#39;</code>, <code>&#39;*&#39;</code>, or <code>&#39;.&#39;</code>.</li>
8077880745
</ul>
8077980746

8078080747
<!-- description:end -->

en/lc/1891/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80689,9 +80689,7 @@ <h2 id="description">Description</h2>
8068980689

8069080690
</ul>
8069180691

80692-
<p>Your goal is to obtain <code>k</code> ribbons of all the <strong>same positive integer length</strong>. You are allowed to throw away any excess ribbon as a result of cutting.</p>
80693-
80694-
<p>Return <em>the <strong>maximum</strong> possible positive integer length that you can obtain </em><code>k</code><em> ribbons of</em><em>, or </em><code>0</code><em> if you cannot obtain </em><code>k</code><em> ribbons of the same length</em>.</p>
80692+
<p>Your task is to determine the <strong>maximum</strong> length of ribbon, <code>x</code>, that allows you to cut <em>exactly</em> <code>k</code> ribbons, each of length <code>x</code>. You can discard any leftover ribbon from the cuts. If it is <strong>impossible</strong> to cut <code>k</code> ribbons of the same length, return 0.</p>
8069580693

8069680694
<p>&nbsp;</p>
8069780695
<p><strong class="example">Example 1:</strong></p>

en/lc/2064/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80636,6 +80636,12 @@
8063680636

8063780637

8063880638

80639+
<a href="../../tags/#greedy" class="md-tag">Greedy</a>
80640+
80641+
80642+
80643+
80644+
8063980645
<a href="../../tags/#array" class="md-tag">Array</a>
8064080646

8064180647

en/lc/2107/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80722,7 +80722,7 @@ <h2 id="description">Description</h2>
8072280722
<p><strong>Constraints:</strong></p>
8072380723

8072480724
<ul>
80725-
<li><code>1 &lt;= candies.length &lt;= 10<sup>5</sup></code></li>
80725+
<li><code>0 &lt;= candies.length &lt;= 10<sup>5</sup></code></li>
8072680726
<li><code>1 &lt;= candies[i] &lt;= 10<sup>5</sup></code></li>
8072780727
<li><code>0 &lt;= k &lt;= candies.length</code></li>
8072880728
</ul>

en/lc/2537/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80681,7 +80681,7 @@ <h2 id="description">Description</h2>
8068180681

8068280682
<p>Given an integer array <code>nums</code> and an integer <code>k</code>, return <em>the number of <strong>good</strong> subarrays of</em> <code>nums</code>.</p>
8068380683

80684-
<p>A subarray <code>arr</code> is <strong>good</strong> if it there are <strong>at least </strong><code>k</code> pairs of indices <code>(i, j)</code> such that <code>i &lt; j</code> and <code>arr[i] == arr[j]</code>.</p>
80684+
<p>A subarray <code>arr</code> is <strong>good</strong> if there are <strong>at least </strong><code>k</code> pairs of indices <code>(i, j)</code> such that <code>i &lt; j</code> and <code>arr[i] == arr[j]</code>.</p>
8068580685

8068680686
<p>A <strong>subarray</strong> is a contiguous <strong>non-empty</strong> sequence of elements within an array.</p>
8068780687

en/lc/2577/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80746,7 +80746,7 @@ <h2 id="description">Description</h2>
8074680746
</ul>
8074780747

8074880748
<p>&nbsp;</p>
80749-
<style type="text/css">.spoilerbutton {display:block; border:dashed; padding: 0px 0px; margin:10px 0px; font-size:150%; font-weight: bold; color:#000000; background-color:cyan; outline:0;
80749+
<style type="text/css">.spoilerbutton {display:block; border:dashed; padding: 0px 0px; margin:10px 0px; font-size:150%; font-weight: bold; color:#000000; background-color:cyan; outline:0;
8075080750
}
8075180751
.spoiler {overflow:hidden;}
8075280752
.spoiler > div {-webkit-transition: all 0s ease;-moz-transition: margin 0s ease;-o-transition: all 0s ease;transition: margin 0s ease;}
@@ -81212,14 +81212,14 @@ <h3 id="solution-1-shortest-path-priority-queue-min-heap">Solution 1: Shortest P
8121281212

8121381213
<nav>
8121481214

81215-
<a href="https://github.com/rain84" class="md-author" title="@rain84">
81215+
<a href="https://github.com/yanglbme" class="md-author" title="@yanglbme">
8121681216

81217-
<img src="https://avatars.githubusercontent.com/u/1732547?v=4&size=72" alt="rain84">
81217+
<img src="https://avatars.githubusercontent.com/u/21008209?v=4&size=72" alt="yanglbme">
8121881218
</a>
8121981219

81220-
<a href="https://github.com/yanglbme" class="md-author" title="@yanglbme">
81220+
<a href="https://github.com/rain84" class="md-author" title="@rain84">
8122181221

81222-
<img src="https://avatars.githubusercontent.com/u/21008209?v=4&size=72" alt="yanglbme">
81222+
<img src="https://avatars.githubusercontent.com/u/1732547?v=4&size=72" alt="rain84">
8122381223
</a>
8122481224

8122581225

en/lc/277/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80683,10 +80683,12 @@ <h2 id="description">Description</h2>
8068380683

8068480684
<p>Now you want to find out who the celebrity is or verify that there is not one. You are only allowed to ask questions like: &quot;Hi, A. Do you know B?&quot; to get information about whether A knows B. You need to find out the celebrity (or verify there is not one) by asking as few questions as possible (in the asymptotic sense).</p>
8068580685

80686-
<p>You are given a helper function <code>bool knows(a, b)</code> that tells you whether <code>a</code> knows <code>b</code>. Implement a function <code>int findCelebrity(n)</code>. There will be exactly one celebrity if they are at the party.</p>
80686+
<p>You are given an integer <code>n</code> and a helper function <code>bool knows(a, b)</code> that tells you whether <code>a</code> knows <code>b</code>. Implement a function <code>int findCelebrity(n)</code>. There will be exactly one celebrity if they are at the party.</p>
8068780687

8068880688
<p>Return <em>the celebrity&#39;s label if there is a celebrity at the party</em>. If there is no celebrity, return <code>-1</code>.</p>
8068980689

80690+
<p><strong>Note</strong> that the <code>n x n</code> 2D array <code>graph</code> given as input is <strong>not</strong> directly available to you, and instead <strong>only</strong> accessible through the helper function <code>knows</code>. <code>graph[i][j] == 1</code> represents person <code>i</code> knows person <code>j</code>, wherease <code>graph[i][j] == 0</code> represents person <code>j</code> does not know person <code>i</code>.</p>
80691+
8069080692
<p>&nbsp;</p>
8069180693
<p><strong class="example">Example 1:</strong></p>
8069280694
<p><a class="glightbox" href="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0200-0299/0277.Find%20the%20Celebrity/images/g1.jpg" data-type="image" data-width="auto" data-height="auto" data-desc-position="bottom"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0200-0299/0277.Find%20the%20Celebrity/images/g1.jpg" style="width: 224px; height: 145px;" /></a></p>

en/lc/364/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80713,6 +80713,7 @@ <h2 id="description">Description</h2>
8071380713
<li><code>1 &lt;= nestedList.length &lt;= 50</code></li>
8071480714
<li>The values of the integers in the nested list is in the range <code>[-100, 100]</code>.</li>
8071580715
<li>The maximum <strong>depth</strong> of any integer is less than or equal to <code>50</code>.</li>
80716+
<li>There are no empty lists.</li>
8071680717
</ul>
8071780718

8071880719
<!-- description:end -->

en/lc/773/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80651,12 +80651,30 @@
8065180651

8065280652

8065380653

80654+
<a href="../../tags/#memoization" class="md-tag">Memoization</a>
80655+
80656+
80657+
80658+
80659+
8065480660
<a href="../../tags/#array" class="md-tag">Array</a>
8065580661

8065680662

8065780663

8065880664

8065980665

80666+
<a href="../../tags/#dynamic-programming" class="md-tag">Dynamic Programming</a>
80667+
80668+
80669+
80670+
80671+
80672+
<a href="../../tags/#backtracking" class="md-tag">Backtracking</a>
80673+
80674+
80675+
80676+
80677+
8066080678
<a href="../../tags/#matrix" class="md-tag">Matrix</a>
8066180679

8066280680

0 commit comments

Comments
 (0)