Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tags:

<p>整数数组 <code>nums</code> 按升序排列,数组中的值 <strong>互不相同</strong> 。</p>

<p>在传递给函数之前,<code>nums</code> 在预先未知的某个下标 <code>k</code>(<code>0 &lt;= k &lt; nums.length</code>)上进行了 <strong>旋转</strong>,使数组变为 <code>[nums[k], nums[k+1], ..., nums[n-1], nums[0], nums[1], ..., nums[k-1]]</code>(下标 <strong>从 0 开始</strong> 计数)。例如, <code>[0,1,2,4,5,6,7]</code> 向左旋转&nbsp;<code>3</code>&nbsp;次后可能变为&nbsp;<code>[4,5,6,7,0,1,2]</code> 。</p>
<p>在传递给函数之前,<code>nums</code> 在预先未知的某个下标 <code>k</code>(<code>0 &lt;= k &lt; nums.length</code>)上进行了 <strong>向左旋转</strong>,使数组变为 <code>[nums[k], nums[k+1], ..., nums[n-1], nums[0], nums[1], ..., nums[k-1]]</code>(下标 <strong>从 0 开始</strong> 计数)。例如, <code>[0,1,2,4,5,6,7]</code> 下标&nbsp;<code>3</code>&nbsp;上向左旋转后可能变为&nbsp;<code>[4,5,6,7,0,1,2]</code> 。</p>

<p>给你 <strong>旋转后</strong> 的数组 <code>nums</code> 和一个整数 <code>target</code> ,如果 <code>nums</code> 中存在这个目标值 <code>target</code> ,则返回它的下标,否则返回&nbsp;<code>-1</code>&nbsp;。</p>

Expand Down
18 changes: 9 additions & 9 deletions solution/0000-0099/0079.Word Search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,46 @@ tags:

<!-- description:start -->

<p>给定一个 <code>m x n</code> 二维字符网格 <code>board</code> 和一个字符串单词 <code>word</code> 。如果 <code>word</code> 存在于网格中,返回 <code>true</code> ;否则,返回 <code>false</code> 。</p>
<p>给定一个&nbsp;<code>m x n</code> 二维字符网格&nbsp;<code>board</code> 和一个字符串单词&nbsp;<code>word</code> 。如果&nbsp;<code>word</code> 存在于网格中,返回 <code>true</code> ;否则,返回 <code>false</code> 。</p>

<p>单词必须按照字母顺序,通过相邻的单元格内的字母构成,其中“相邻”单元格是那些水平相邻或垂直相邻的单元格。同一个单元格内的字母不允许被重复使用。</p>

<p> </p>
<p>&nbsp;</p>

<p><strong>示例 1:</strong></p>
<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0000-0099/0079.Word%20Search/images/word2.jpg" style="width: 322px; height: 242px;" />
<pre>
<strong>输入:</strong>board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCCED"
<strong>输入:</strong>board = [['A','B','C','E'],['S','F','C','S'],['A','D','E','E']], word = "ABCCED"
<strong>输出:</strong>true
</pre>

<p><strong>示例 2:</strong></p>
<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0000-0099/0079.Word%20Search/images/word-1.jpg" style="width: 322px; height: 242px;" />
<pre>
<strong>输入:</strong>board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "SEE"
<strong>输入:</strong>board = [['A','B','C','E'],['S','F','C','S'],['A','D','E','E']], word = "SEE"
<strong>输出:</strong>true
</pre>

<p><strong>示例 3:</strong></p>
<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0000-0099/0079.Word%20Search/images/word3.jpg" style="width: 322px; height: 242px;" />
<pre>
<strong>输入:</strong>board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCB"
<strong>输入:</strong>board = [['A','B','C','E'],['S','F','C','S'],['A','D','E','E']], word = "ABCB"
<strong>输出:</strong>false
</pre>

<p> </p>
<p>&nbsp;</p>

<p><strong>提示:</strong></p>

<ul>
<li><code>m == board.length</code></li>
<li><code>n = board[i].length</code></li>
<li><code>1 <= m, n <= 6</code></li>
<li><code>1 <= word.length <= 15</code></li>
<li><code>1 &lt;= m, n &lt;= 6</code></li>
<li><code>1 &lt;= word.length &lt;= 15</code></li>
<li><code>board</code> 和 <code>word</code> 仅由大小写英文字母组成</li>
</ul>

<p> </p>
<p>&nbsp;</p>

<p><strong>进阶:</strong>你可以使用搜索剪枝的技术来优化解决方案,使其在 <code>board</code> 更大的情况下可以更快解决问题?</p>

Expand Down
7 changes: 0 additions & 7 deletions solution/0100-0199/0190.Reverse Bits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ tags:

<p>颠倒给定的 32 位无符号整数的二进制位。</p>

<p><strong>提示:</strong></p>

<ul>
<li>请注意,在某些语言(如 Java)中,没有无符号整数类型。在这种情况下,输入和输出都将被指定为有符号整数类型,并且不应影响您的实现,因为无论整数是有符号的还是无符号的,其内部的二进制表示形式都是相同的。</li>
<li>在 Java 中,编译器使用<a href="https://baike.baidu.com/item/二进制补码/5295284" target="_blank">二进制补码</a>记法来表示有符号整数。</li>
</ul>

<p>&nbsp;</p>

<p><strong class="example">示例 1:</strong></p>
Expand Down
9 changes: 1 addition & 8 deletions solution/0100-0199/0190.Reverse Bits/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,7 @@ tags:

<!-- description:start -->

<p>Reverse bits of a given 32 bits unsigned integer.</p>

<p><strong>Note:</strong></p>

<ul>
<li>Note that in some languages, such as Java, there is no unsigned integer type. In this case, both input and output will be given as a signed integer type. They should not affect your implementation, as the integer&#39;s internal binary representation is the same, whether it is signed or unsigned.</li>
<li>In Java, the compiler represents the signed integers using <a href="https://en.wikipedia.org/wiki/Two%27s_complement" target="_blank">2&#39;s complement notation</a>.</li>
</ul>
<p>Reverse bits of a given 32 bits signed integer.</p>

<p>&nbsp;</p>
<p><strong class="example">Example 1:</strong></p>
Expand Down
1 change: 1 addition & 0 deletions solution/0200-0299/0294.Flip Game II/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ tags:
<ul>
<li><code>1 &lt;= currentState.length &lt;= 60</code></li>
<li><code>currentState[i]</code> 不是 <code>'+'</code> 就是 <code>'-'</code></li>
<li>不能有超过 20 个连续的&nbsp;<code>'+'</code>。</li>
</ul>

<p>&nbsp;</p>
Expand Down
1 change: 1 addition & 0 deletions solution/0200-0299/0294.Flip Game II/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ tags:
<ul>
<li><code>1 &lt;= currentState.length &lt;= 60</code></li>
<li><code>currentState[i]</code> is either <code>&#39;+&#39;</code> or <code>&#39;-&#39;</code>.</li>
<li>There cannot be more than 20 consecutive <code>&#39;+&#39;</code>.</li>
</ul>

<p>&nbsp;</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tags:

<ul>
<li>
<p><code>MedianFinder() </code>初始化 <code>MedianFinder</code>&nbsp;对象。</p>
<p><code>MedianFinder()</code> 初始化 <code>MedianFinder</code>&nbsp;对象。</p>
</li>
<li>
<p><code>void addNum(int num)</code> 将数据流中的整数 <code>num</code> 添加到数据结构中。</p>
Expand Down
29 changes: 23 additions & 6 deletions solution/0300-0399/0347.Top K Frequent Elements/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,29 @@ tags:

<p>&nbsp;</p>
<p><strong class="example">Example 1:</strong></p>
<pre><strong>Input:</strong> nums = [1,1,1,2,2,3], k = 2
<strong>Output:</strong> [1,2]
</pre><p><strong class="example">Example 2:</strong></p>
<pre><strong>Input:</strong> nums = [1], k = 1
<strong>Output:</strong> [1]
</pre>

<div class="example-block">
<p><strong>Input:</strong> <span class="example-io">nums = [1,1,1,2,2,3], k = 2</span></p>

<p><strong>Output:</strong> <span class="example-io">[1,2]</span></p>
</div>

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

<div class="example-block">
<p><strong>Input:</strong> <span class="example-io">nums = [1], k = 1</span></p>

<p><strong>Output:</strong> <span class="example-io">[1]</span></p>
</div>

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

<div class="example-block">
<p><strong>Input:</strong> <span class="example-io">nums = [1,2,1,2,1,2,3,1,3,2], k = 2</span></p>

<p><strong>Output:</strong> <span class="example-io">[-1]</span></p>
</div>

<p>&nbsp;</p>
<p><strong>Constraints:</strong></p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tags:

<p>我们正在玩猜数字游戏。猜数字游戏的规则如下:</p>

<p>我会从&nbsp;<code>1</code>&nbsp;到&nbsp;<code>n</code> 随机选择一个数字。 请你猜选出的是哪个数字。</p>
<p>我会从&nbsp;<code>1</code>&nbsp;到&nbsp;<code>n</code> 随机选择一个数字。 请你猜选出的是哪个数字。(我选的数字在整个游戏中保持不变)。</p>

<p>如果你猜错了,我会告诉你,我选出的数字比你猜测的数字大了还是小了。</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tags:

<p>We are playing the Guess Game. The game is as follows:</p>

<p>I pick a number from <code>1</code> to <code>n</code>. You have to guess which number I picked.</p>
<p>I pick a number from <code>1</code> to <code>n</code>. You have to guess which number I picked (the number I picked stays the same throughout the game).</p>

<p>Every time you guess wrong, I will tell you whether the number I picked is higher or lower than your guess.</p>

Expand Down
2 changes: 2 additions & 0 deletions solution/0400-0499/0443.String Compression/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ tags:

<p>你必须设计并实现一个只使用常量额外空间的算法来解决此问题。</p>

<p><strong>注意:</strong>数组中超出返回长度的字符无关紧要,应予忽略。</p>

<p>&nbsp;</p>

<p><strong>示例 1:</strong></p>
Expand Down
2 changes: 2 additions & 0 deletions solution/0400-0499/0443.String Compression/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ tags:

<p>You must write an algorithm that uses only constant extra space.</p>

<p><strong>Note: </strong>The characters in the array beyond the returned length do not matter and should be ignored.</p>

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

Expand Down
2 changes: 1 addition & 1 deletion solution/0500-0599/0577.Employee Bonus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tags:
| salary | int |
+-------------+---------+
empId 是该表中具有唯一值的列。
该表的每一行都表示员工的姓名和 id,以及他们的工资和经理的 id。
该表的每一行都表示员工的 id 和姓名,以及他们经理的 id 和他们的工资
</pre>

<p>&nbsp;</p>
Expand Down
2 changes: 1 addition & 1 deletion solution/0600-0699/0692.Top K Frequent Words/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ tags:

<ul>
<li><code>1 &lt;= words.length &lt;= 500</code></li>
<li><code>1 &lt;= words[i] &lt;= 10</code></li>
<li><code>1 &lt;= words[i].length &lt;= 10</code></li>
<li><code>words[i]</code>&nbsp;由小写英文字母组成。</li>
<li><code>k</code> 的取值范围是&nbsp;<code>[1, <strong>不同</strong> words[i] 的数量]</code></li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ tags:
<p><strong>示例 1:</strong></p>

<pre>
<strong>输入: </strong>letters = ["c", "f", "j"],target = "a"
<strong>输出:</strong> "c"
<strong>输入: </strong>letters = ['c', 'f', 'j'],target = 'a'
<strong>输出:</strong> 'c'
<strong>解释:</strong>letters 中字典上比 'a' 大的最小字符是 'c'。</pre>

<p><strong>示例 2:</strong></p>

<pre>
<strong>输入:</strong> letters = ["c","f","j"], target = "c"
<strong>输出:</strong> "f"
<strong>输入:</strong> letters = ['c','f','j'], target = 'c'
<strong>输出:</strong> 'f'
<strong>解释:</strong>letters 中字典顺序上大于 'c' 的最小字符是 'f'。</pre>

<p><strong>示例 3:</strong></p>

<pre>
<strong>输入:</strong> letters = ["x","x","y","y"], target = "z"
<strong>输出:</strong> "x"
<strong>输入:</strong> letters = ['x','x','y','y'], target = 'z'
<strong>输出:</strong> 'x'
<strong>解释:</strong>letters 中没有一个字符在字典上大于 'z',所以我们返回 letters[0]。</pre>

<p>&nbsp;</p>
Expand Down
2 changes: 1 addition & 1 deletion solution/0800-0899/0853.Car Fleet/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tags:

<p>A car cannot pass another car, but it can catch up and then travel next to it at the speed of the slower car.</p>

<p>A <strong>car fleet</strong> is a car or cars driving next to each other. The speed of the car fleet is the <strong>minimum</strong> speed of any car in the fleet.</p>
<p>A <strong>car fleet</strong> is a single car or a group of cars driving next to each other. The speed of the car fleet is the <strong>minimum</strong> speed of any car in the fleet.</p>

<p>If a car catches up to a car fleet at the mile <code>target</code>, it will still be considered as part of the car fleet.</p>

Expand Down
2 changes: 1 addition & 1 deletion solution/1000-1099/1075.Project Employees I/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tags:
| employee_id | int |
+-------------+---------+
主键为 (project_id, employee_id)。
employee_id 是员工表 <code>Employee 表的外键。</code>
employee_id 是员工表 <code>Employee</code> 表的外键。
这张表的每一行表示 employee_id 的员工正在 project_id 的项目上工作。
</pre>

Expand Down
2 changes: 1 addition & 1 deletion solution/1000-1099/1094.Car Pooling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tags:

<p>车上最初有&nbsp;<code>capacity</code>&nbsp;个空座位。车&nbsp;<strong>只能&nbsp;</strong>向一个方向行驶(也就是说,<strong>不允许掉头或改变方向</strong>)</p>

<p>给定整数&nbsp;<code>capacity</code>&nbsp;和一个数组 <code>trips</code> , &nbsp;<code>trip[i] = [numPassengers<sub>i</sub>, from<sub>i</sub>, to<sub>i</sub>]</code>&nbsp;表示第 <code>i</code> 次旅行有&nbsp;<code>numPassengers<sub>i</sub></code>&nbsp;乘客,接他们和放他们的位置分别是&nbsp;<code>from<sub>i</sub></code>&nbsp;和&nbsp;<code>to<sub>i</sub></code>&nbsp;。这些位置是从汽车的初始位置向东的公里数。</p>
<p>给定整数&nbsp;<code>capacity</code>&nbsp;和一个数组 <code>trips</code> , &nbsp;<code>trips[i] = [numPassengers<sub>i</sub>, from<sub>i</sub>, to<sub>i</sub>]</code>&nbsp;表示第 <code>i</code> 次旅行有&nbsp;<code>numPassengers<sub>i</sub></code>&nbsp;乘客,接他们和放他们的位置分别是&nbsp;<code>from<sub>i</sub></code>&nbsp;和&nbsp;<code>to<sub>i</sub></code>&nbsp;。这些位置是从汽车的初始位置向东的公里数。</p>

<p>当且仅当你可以在所有给定的行程中接送所有乘客时,返回&nbsp;<code>true</code>,否则请返回 <code>false</code>。</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ tags:

<p>在一个社交圈子当中,有&nbsp;<code>n</code>&nbsp;个人。每个人都有一个从&nbsp;<code>0</code> 到&nbsp;<code>n - 1</code>&nbsp;的唯一编号。我们有一份日志列表&nbsp;<code>logs</code>,其中&nbsp;<code>logs[i] = [timestamp<sub>i</sub>, x<sub>i</sub>, y<sub>i</sub>]</code>&nbsp;表示 <code>x<sub>i</sub></code>&nbsp;和&nbsp;<code>y<sub>i</sub></code>&nbsp;将在同一时间&nbsp;<code>timestamp<sub>i</sub></code><sub>&nbsp;</sub>成为朋友。</p>

<p>友谊是 <strong>相互</strong> 的。也就是说,如果 <code>a</code> 和 <code>b</code> 是朋友,那么&nbsp;<code>b</code>&nbsp;和 <code>a</code> 也是朋友。同样,如果 <code>a</code> 和 <code>b</code> 是朋友,或者&nbsp;<code>a</code> 是 <code>b</code> 朋友的朋友 ,那么 <code>a</code> 和 <code>b</code> 是熟识友。</p>
<p>友谊是 <strong>相互</strong> 的。也就是说,如果 <code>a</code> 和 <code>b</code> 是朋友,那么&nbsp;<code>b</code>&nbsp;和 <code>a</code> 也是朋友。同样,如果 <code>a</code> 和 <code>b</code> 是朋友,或者&nbsp;<code>a</code> 是 <code>b</code> 朋友的朋友 ,那么 <code>a</code> 和 <code>b</code>&nbsp;认识。</p>

<p>返回圈子里所有人之间都熟识的最早时间。如果找不到最早时间,就返回 <code>-1</code> 。</p>
<p>返回圈子里所有人之间都认识的最早时间。如果找不到最早时间,就返回 <code>-1</code> 。</p>

<p>&nbsp;</p>

Expand Down
3 changes: 1 addition & 2 deletions solution/1100-1199/1107.New Users Daily Count/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ tags:
+---------------+---------+
该表可能有重复的行。
activity 列是 ENUM 类型,可能取 ('login', 'logout', 'jobs', 'groups', 'homepage') 几个值之一。

</pre>

<p>&nbsp;</p>

<p>编写解决方案,找出从今天起最多 90 天内,每个日期该日期首次登录的用户数。假设今天是&nbsp;<strong>2019-06-30 </strong>。</p>
<p>编写解决方案,找出从今天起最多 <code>90</code> 天内,每个日期首次登录的用户数。假设今天是&nbsp;<strong>2019-06-30 </strong>。</p>

<p>以 <strong>任意顺序</strong> 返回结果表。</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tags:
<ul>
<li>例如,如果模式是 <code>[“home”,“away”,“love”] </code>,那么分数就是用户数量 <code>x</code> , <code>x</code> 访问了 “<code>home”</code> ,然后访问了 <code>“away”</code> ,然后访问了 <code>“love” </code>。</li>
<li>同样,如果模式是 <code>["leetcode", "love", "leetcode"]</code> ,那么分数就是用户数量&nbsp;<code>x</code>&nbsp;,使得 <code>x</code> 访问了<code>"leetcode"</code>,然后访问了 <code>"love"</code> ,之后又访问了 <code>"leetcode"</code> 。</li>
<li>另外,如果模式是 <code>[“luffy”,“luffy”,“luffy”]</code>&nbsp;,那么分数就是用户数量 <code>x</code> ,这样 <code>x</code> 就可以在不同的时间戳上访问 <code>“luffy”</code> 三次。</li>
<li>另外,如果模式是 <code>[“luffy”,“luffy”,“luffy”]</code>&nbsp;,那么分数就是用户数量 <code>x</code> ,使得&nbsp;<code>x</code> 就可以在不同的时间戳上访问 <code>“luffy”</code> 三次。</li>
</ul>

<p>返回<em> <strong>得分</strong> 最大的 <strong>访问</strong><strong>模式</strong></em> 。如果有多个访问模式具有相同的最大分数,则返回字典序最小的。</p>
Expand Down
14 changes: 7 additions & 7 deletions solution/1200-1299/1294.Weather Type in Each Country/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ country_id 是这张表的主键(具有唯一值的列)。
<p>表:<code>Weather</code></p>

<pre>
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| country_id | int |
| weather_state | varchar |
| day | date |
+---------------+---------+
+---------------+------+
| Column Name | Type |
+---------------+------+
| country_id | int |
| weather_state | int |
| day | date |
+---------------+------+
(country_id, day) 是该表的复合主键(具有唯一值的列)。
该表的每一行记录了某个国家某一天的天气情况。
</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ tags:

<!-- description:start -->

<p>给你一个整数数组 <code>nums</code> ,和一个表示限制的整数 <code>limit</code>,请你返回最长连续子数组的长度,该子数组中的任意两个元素之间的绝对差必须小于或者等于 <code>limit</code><em> 。</em></p>

<p>如果不存在满足条件的子数组,则返回 <code>0</code> 。</p>
<p>给你一个整数数组 <code>nums</code> ,和一个表示限制的整数 <code>limit</code>,请你返回最长连续子数组的长度,该子数组中的任意两个元素之间的绝对差必须小于或者等于 <code>limit</code><em>。</em></p>

<p>&nbsp;</p>

<p><strong>示例 1:</strong></p>

<pre><strong>输入:</strong>nums = [8,2,4,7], limit = 4
<pre>
<strong>输入:</strong>nums = [8,2,4,7], limit = 4
<strong>输出:</strong>2
<strong>解释:</strong>所有子数组如下:
[8] 最大绝对差 |8-8| = 0 &lt;= 4.
Expand All @@ -49,14 +48,16 @@ tags:

<p><strong>示例 2:</strong></p>

<pre><strong>输入:</strong>nums = [10,1,2,4,7,2], limit = 5
<pre>
<strong>输入:</strong>nums = [10,1,2,4,7,2], limit = 5
<strong>输出:</strong>4
<strong>解释:</strong>满足题意的最长子数组是 [2,4,7,2],其最大绝对差 |2-7| = 5 &lt;= 5 。
</pre>

<p><strong>示例 3:</strong></p>

<pre><strong>输入:</strong>nums = [4,2,2,2,4,4,2,2], limit = 0
<pre>
<strong>输入:</strong>nums = [4,2,2,2,4,4,2,2], limit = 0
<strong>输出:</strong>3
</pre>

Expand All @@ -65,9 +66,9 @@ tags:
<p><strong>提示:</strong></p>

<ul>
<li><code>1 &lt;= nums.length &lt;= 10^5</code></li>
<li><code>1 &lt;= nums[i] &lt;= 10^9</code></li>
<li><code>0 &lt;= limit &lt;= 10^9</code></li>
<li><code>1 &lt;= nums.length &lt;= 10<sup>5</sup></code></li>
<li><code>1 &lt;= nums[i] &lt;= 10<sup>9</sup></code></li>
<li><code>0 &lt;= limit &lt;= 10<sup>9</sup></code></li>
</ul>

<!-- description:end -->
Expand Down
4 changes: 2 additions & 2 deletions solution/1600-1699/1629.Slowest Key/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tags:

<pre>
<strong>输入:</strong>releaseTimes = [9,29,49,50], keysPressed = "cbcd"
<strong>输出:</strong>"c"
<strong>输出:'</strong>c'
<strong>解释:</strong>按键顺序和持续时间如下:
按下 'c' ,持续时间 9(时间 0 按下,时间 9 松开)
按下 'b' ,持续时间 29 - 9 = 20(松开上一个键的时间 9 按下,时间 29 松开)
Expand All @@ -49,7 +49,7 @@ tags:

<pre>
<strong>输入:</strong>releaseTimes = [12,23,36,46,62], keysPressed = "spuda"
<strong>输出:</strong>"a"
<strong>输出:'</strong>a'
<strong>解释:</strong>按键顺序和持续时间如下:
按下 's' ,持续时间 12
按下 'p' ,持续时间 23 - 12 = 11
Expand Down
Loading