Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update lc problems #3149

Merged
merged 1 commit into from
Jun 22, 2024
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
2 changes: 1 addition & 1 deletion solution/0000-0099/0092.Reverse Linked List II/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tags:

<!-- description:start -->

给你单链表的头指针 <code>head</code> 和两个整数  <code>left</code> 和 <code>right</code> ,其中  <code>left <= right</code> 。请你反转从位置 <code>left</code> 到位置 <code>right</code> 的链表节点,返回 <strong>反转后的链表</strong> 。
给你单链表的头指针 <code>head</code> 和两个整数 <code>left</code> 和 <code>right</code> ,其中 <code>left <= right</code> 。请你反转从位置 <code>left</code> 到位置 <code>right</code> 的链表节点,返回 <strong>反转后的链表</strong> 。

<p> </p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ tags:
<pre>
<strong>输入:</strong>prices = [7,1,5,3,6,4]
<strong>输出:</strong>7
<strong>解释:</strong>在第 2 天(股票价格 = 1)的时候买入,在第 3 天(股票价格 = 5)的时候卖出, 这笔交易所能获得利润 = 5 - 1 = 4
&nbsp; 随后,在第 4 天(股票价格 = 3)的时候买入,在第 5 天(股票价格 = 6)的时候卖出, 这笔交易所能获得利润 = 6 - 3 = 3
总利润为 4 + 3 = 7 。</pre>
<strong>解释:</strong>在第 2 天(股票价格 = 1)的时候买入,在第 3 天(股票价格 = 5)的时候卖出, 这笔交易所能获得利润 = 5 - 1 = 4。
随后,在第 4 天(股票价格 = 3)的时候买入,在第 5 天(股票价格 = 6)的时候卖出, 这笔交易所能获得利润 = 6 - 3 = 3。
最大总利润为 4 + 3 = 7 。</pre>

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

<pre>
<strong>输入:</strong>prices = [1,2,3,4,5]
<strong>输出:</strong>4
<strong>解释:</strong>在第 1 天(股票价格 = 1)的时候买入,在第 5 天 (股票价格 = 5)的时候卖出, 这笔交易所能获得利润 = 5 - 1 = 4
&nbsp; 总利润为 4 。</pre>
<strong>解释:</strong>在第 1 天(股票价格 = 1)的时候买入,在第 5 天 (股票价格 = 5)的时候卖出, 这笔交易所能获得利润 = 5 - 1 = 4。
最大总利润为 4 。</pre>

<p><strong>示例&nbsp;3:</strong></p>

<pre>
<strong>输入:</strong>prices = [7,6,4,3,1]
<strong>输出:</strong>0
<strong>解释:</strong>在这种情况下, 交易无法获得正利润,所以不参与交易可以获得最大利润,最大利润为 0 。</pre>
<strong>解释:</strong>在这种情况下, 交易无法获得正利润,所以不参与交易可以获得最大利润,最大利润为 0。</pre>

<p>&nbsp;</p>

Expand Down
2 changes: 1 addition & 1 deletion solution/0100-0199/0168.Excel Sheet Column Title/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:

<!-- problem:start -->

# [168. Excel 表列名称](https://leetcode.cn/problems/excel-sheet-column-title)
# [168. Excel表列名称](https://leetcode.cn/problems/excel-sheet-column-title)

[English Version](/solution/0100-0199/0168.Excel%20Sheet%20Column%20Title/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/0100-0199/0177.Nth Highest Salary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:

<!-- problem:start -->

# [177. 第 N 高的薪水](https://leetcode.cn/problems/nth-highest-salary)
# [177. 第N高的薪水](https://leetcode.cn/problems/nth-highest-salary)

[English Version](/solution/0100-0199/0177.Nth%20Highest%20Salary/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/0100-0199/0187.Repeated DNA Sequences/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags:

<!-- problem:start -->

# [187. 重复的 DNA 序列](https://leetcode.cn/problems/repeated-dna-sequences)
# [187. 重复的DNA序列](https://leetcode.cn/problems/repeated-dna-sequences)

[English Version](/solution/0100-0199/0187.Repeated%20DNA%20Sequences/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/0100-0199/0191.Number of 1 Bits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:

<!-- problem:start -->

# [191. 位 1 的个数](https://leetcode.cn/problems/number-of-1-bits)
# [191. 位1的个数](https://leetcode.cn/problems/number-of-1-bits)

[English Version](/solution/0100-0199/0191.Number%20of%201%20Bits/README_EN.md)

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

<!-- problem:start -->

# [215. 数组中的第 K 个最大元素](https://leetcode.cn/problems/kth-largest-element-in-an-array)
# [215. 数组中的第K个最大元素](https://leetcode.cn/problems/kth-largest-element-in-an-array)

[English Version](/solution/0200-0299/0215.Kth%20Largest%20Element%20in%20an%20Array/README_EN.md)

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

<!-- problem:start -->

# [230. 二叉搜索树中第 K 小的元素](https://leetcode.cn/problems/kth-smallest-element-in-a-bst)
# [230. 二叉搜索树中第K小的元素](https://leetcode.cn/problems/kth-smallest-element-in-a-bst)

[English Version](/solution/0200-0299/0230.Kth%20Smallest%20Element%20in%20a%20BST/README_EN.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ tags:

<!-- description:start -->

<p>给你一个整数数组&nbsp;<code>nums</code>,返回 <em>数组&nbsp;<code>answer</code>&nbsp;,其中&nbsp;<code>answer[i]</code>&nbsp;等于&nbsp;<code>nums</code>&nbsp;中除&nbsp;<code>nums[i]</code>&nbsp;之外其余各元素的乘积</em>&nbsp;。</p>
<p>给你一个整数数组&nbsp;<code>nums</code>,返回 数组&nbsp;<code>answer</code>&nbsp;,其中&nbsp;<code>answer[i]</code>&nbsp;等于&nbsp;<code>nums</code>&nbsp;中除&nbsp;<code>nums[i]</code>&nbsp;之外其余各元素的乘积&nbsp;。</p>

<p>题目数据 <strong>保证</strong> 数组&nbsp;<code>nums</code>之中任意元素的全部前缀元素和后缀的乘积都在&nbsp; <strong>32 位</strong> 整数范围内。</p>

<p>请&nbsp;<strong>不要使用除法,</strong>且在&nbsp;<code>O(<em>n</em>)</code> 时间复杂度内完成此题。</p>
<p>请&nbsp;<strong>不要使用除法,</strong>且在&nbsp;<code>O(n)</code> 时间复杂度内完成此题。</p>

<p>&nbsp;</p>

Expand Down
2 changes: 1 addition & 1 deletion solution/0200-0299/0249.Group Shifted Strings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tags:

<ul>
<li><strong>右移</strong>:将字符串中每个字母都变为其在字母表中 <strong>后续</strong> 的字母,其中用 'a' 替换 'z'。比如,<code>"abc"</code>&nbsp;能够右移为&nbsp;<code>"bcd"</code>,<code>"xyz"</code>&nbsp;能够右移为&nbsp;<code>"yza"</code>。</li>
<li><strong>左移</strong>:将字符串中每个字母都变为其在字母表中 <b>之前</b>&nbsp;的字母,其中用 'z' 替换 'a'。比如,<code>"bcd"</code>&nbsp;能够右移为&nbsp;<code>"abc"</code>,<code>"yza"</code>&nbsp;能够右移为&nbsp;<code>"xyz"</code>。</li>
<li><strong>左移</strong>:将字符串中每个字母都变为其在字母表中 <b>之前</b>&nbsp;的字母,其中用 'z' 替换 'a'。比如,<code>"bcd"</code>&nbsp;能够左移为&nbsp;<code>"abc"</code>,<code>"yza"</code>&nbsp;能够左移为&nbsp;<code>"xyz"</code>。</li>
</ul>

<p>我们可以不断地向两个方向移动字符串,形成 <strong>无限的移位序列</strong>。</p>
Expand Down
2 changes: 1 addition & 1 deletion solution/0300-0399/0342.Power of Four/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tags:

<!-- problem:start -->

# [342. 4 的幂](https://leetcode.cn/problems/power-of-four)
# [342. 4的幂](https://leetcode.cn/problems/power-of-four)

[English Version](/solution/0300-0399/0342.Power%20of%20Four/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/0300-0399/0382.Linked List Random Node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ solution.getRandom(); // 返回 3
solution.getRandom(); // 返回 2
solution.getRandom(); // 返回 2
solution.getRandom(); // 返回 3
// getRandom() 方法应随机返回 1、2、3 中的一个,每个元素被返回的概率相等。</pre>
// getRandom() 方法应随机返回 1、2、3中的一个,每个元素被返回的概率相等。</pre>

<p>&nbsp;</p>

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

<p>&nbsp;</p>
<p><strong class="example">Example 1:</strong></p>
<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0400-0499/0419.Battleships%20in%20a%20Board/images/battelship-grid.jpg" style="width: 333px; height: 333px;" />
<img height="333" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0400-0499/0419.Battleships%20in%20a%20Board/images/image.png" width="333" />
<pre>
<strong>Input:</strong> board = [[&quot;X&quot;,&quot;.&quot;,&quot;.&quot;,&quot;X&quot;],[&quot;.&quot;,&quot;.&quot;,&quot;.&quot;,&quot;X&quot;],[&quot;.&quot;,&quot;.&quot;,&quot;.&quot;,&quot;X&quot;]]
<strong>Output:</strong> 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:

<!-- problem:start -->

# [440. 字典序的第 K 小数字](https://leetcode.cn/problems/k-th-smallest-in-lexicographical-order)
# [440. 字典序的第K小数字](https://leetcode.cn/problems/k-th-smallest-in-lexicographical-order)

[English Version](/solution/0400-0499/0440.K-th%20Smallest%20in%20Lexicographical%20Order/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/0400-0499/0468.Validate IP Address/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:

<!-- problem:start -->

# [468. 验证 IP 地址](https://leetcode.cn/problems/validate-ip-address)
# [468. 验证IP地址](https://leetcode.cn/problems/validate-ip-address)

[English Version](/solution/0400-0499/0468.Validate%20IP%20Address/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/0400-0499/0487.Max Consecutive Ones II/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tags:

<!-- problem:start -->

# [487. 最大连续 1 的个数 II 🔒](https://leetcode.cn/problems/max-consecutive-ones-ii)
# [487. 最大连续1的个数 II 🔒](https://leetcode.cn/problems/max-consecutive-ones-ii)

[English Version](/solution/0400-0499/0487.Max%20Consecutive%20Ones%20II/README_EN.md)

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

<!-- problem:start -->

# [562. 矩阵中最长的连续 1 线段 🔒](https://leetcode.cn/problems/longest-line-of-consecutive-one-in-matrix)
# [562. 矩阵中最长的连续1线段 🔒](https://leetcode.cn/problems/longest-line-of-consecutive-one-in-matrix)

[English Version](/solution/0500-0599/0562.Longest%20Line%20of%20Consecutive%20One%20in%20Matrix/README_EN.md)

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

<!-- problem:start -->

# [570. 至少有 5 名直接下属的经理](https://leetcode.cn/problems/managers-with-at-least-5-direct-reports)
# [570. 至少有5名直接下属的经理](https://leetcode.cn/problems/managers-with-at-least-5-direct-reports)

[English Version](/solution/0500-0599/0570.Managers%20with%20at%20Least%205%20Direct%20Reports/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/0500-0599/0585.Investments in 2016/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:

<!-- problem:start -->

# [585. 2016 年的投资](https://leetcode.cn/problems/investments-in-2016)
# [585. 2016年的投资](https://leetcode.cn/problems/investments-in-2016)

[English Version](/solution/0500-0599/0585.Investments%20in%202016/README_EN.md)

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

<!-- problem:start -->

# [596. 超过 5 名学生的课](https://leetcode.cn/problems/classes-more-than-5-students)
# [596. 超过5名学生的课](https://leetcode.cn/problems/classes-more-than-5-students)

[English Version](/solution/0500-0599/0596.Classes%20More%20Than%205%20Students/README_EN.md)

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

<!-- problem:start -->

# [600. 不含连续 1 的非负整数](https://leetcode.cn/problems/non-negative-integers-without-consecutive-ones)
# [600. 不含连续1的非负整数](https://leetcode.cn/problems/non-negative-integers-without-consecutive-ones)

[English Version](/solution/0600-0699/0600.Non-negative%20Integers%20without%20Consecutive%20Ones/README_EN.md)

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

<!-- problem:start -->

# [668. 乘法表中第 k 小的数](https://leetcode.cn/problems/kth-smallest-number-in-multiplication-table)
# [668. 乘法表中第k小的数](https://leetcode.cn/problems/kth-smallest-number-in-multiplication-table)

[English Version](/solution/0600-0699/0668.Kth%20Smallest%20Number%20in%20Multiplication%20Table/README_EN.md)

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 @@ -14,7 +14,7 @@ tags:

<!-- problem:start -->

# [692. 前 K 个高频单词](https://leetcode.cn/problems/top-k-frequent-words)
# [692. 前K个高频单词](https://leetcode.cn/problems/top-k-frequent-words)

[English Version](/solution/0600-0699/0692.Top%20K%20Frequent%20Words/README_EN.md)

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

<!-- problem:start -->

# [698. 划分为 k 个相等的子集](https://leetcode.cn/problems/partition-to-k-equal-sum-subsets)
# [698. 划分为k个相等的子集](https://leetcode.cn/problems/partition-to-k-equal-sum-subsets)

[English Version](/solution/0600-0699/0698.Partition%20to%20K%20Equal%20Sum%20Subsets/README_EN.md)

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

<!-- problem:start -->

# [712. 两个字符串的最小 ASCII 删除和](https://leetcode.cn/problems/minimum-ascii-delete-sum-for-two-strings)
# [712. 两个字符串的最小ASCII删除和](https://leetcode.cn/problems/minimum-ascii-delete-sum-for-two-strings)

[English Version](/solution/0700-0799/0712.Minimum%20ASCII%20Delete%20Sum%20for%20Two%20Strings/README_EN.md)

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

<!-- problem:start -->

# [757. 设置交集大小至少为 2](https://leetcode.cn/problems/set-intersection-size-at-least-two)
# [757. 设置交集大小至少为2](https://leetcode.cn/problems/set-intersection-size-at-least-two)

[English Version](/solution/0700-0799/0757.Set%20Intersection%20Size%20At%20Least%20Two/README_EN.md)

Expand Down
4 changes: 2 additions & 2 deletions solution/0700-0799/0776.Split BST/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ tags:

<!-- description:start -->

<p>给你一棵二叉搜索树(BST)的根结点 <code>root</code>&nbsp;和一个整数 <code>target</code> 。请将该树按要求拆分为两个子树:其中一个子树结点的值都必须小于等于给定的目标值;另一个子树结点的值都必须大于目标值;树中并非一定要存在值为&nbsp;<code>target</code>&nbsp;的结点。</p>
<p>给你一棵二叉搜索树(BST)的根结点 <code>root</code>&nbsp;和一个整数 <code>target</code> 。请将该树按要求拆分为两个子树:其中第一个子树结点的值都必须小于等于给定的目标值;另一个子树结点的值都必须大于目标值;树中并非一定要存在值为&nbsp;<code>target</code>&nbsp;的结点。</p>

<p>除此之外,树中大部分结构都需要保留,也就是说原始树中父节点 <code>p</code> 的任意子节点 <code>c</code> ,假如拆分后它们仍在同一个子树中,那么结点 <code>p</code>&nbsp;应仍为 <code>c</code>&nbsp;的父结点。</p>

<p>返回 <em>两个子树的根结点的数组</em> 。</p>
<p>按顺序返回 <em>两个子树的根结点的数组</em> 。</p>

<p>&nbsp;</p>

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

<!-- problem:start -->

# [777. 在 LR 字符串中交换相邻字符](https://leetcode.cn/problems/swap-adjacent-in-lr-string)
# [777. 在LR字符串中交换相邻字符](https://leetcode.cn/problems/swap-adjacent-in-lr-string)

[English Version](/solution/0700-0799/0777.Swap%20Adjacent%20in%20LR%20String/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/0700-0799/0779.K-th Symbol in Grammar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tags:

<!-- problem:start -->

# [779. 第 K 个语法符号](https://leetcode.cn/problems/k-th-symbol-in-grammar)
# [779. 第K个语法符号](https://leetcode.cn/problems/k-th-symbol-in-grammar)

[English Version](/solution/0700-0799/0779.K-th%20Symbol%20in%20Grammar/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/0700-0799/0785.Is Graph Bipartite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tags:

<!-- description:start -->

存在一个 <strong>无向图</strong> ,图中有 <code>n</code> 个节点。其中每个节点都有一个介于 <code>0</code> 到 <code>n - 1</code> 之间的唯一编号。给你一个二维数组 <code>graph</code> ,其中 <code>graph[u]</code> 是一个节点数组,由节点 <code>u</code> 的邻接节点组成。形式上,对于  <code>graph[u]</code> 中的每个 <code>v</code> ,都存在一条位于节点 <code>u</code> 和节点 <code>v</code> 之间的无向边。该无向图同时具有以下属性:
存在一个 <strong>无向图</strong> ,图中有 <code>n</code> 个节点。其中每个节点都有一个介于 <code>0</code> 到 <code>n - 1</code> 之间的唯一编号。给你一个二维数组 <code>graph</code> ,其中 <code>graph[u]</code> 是一个节点数组,由节点 <code>u</code> 的邻接节点组成。形式上,对于 <code>graph[u]</code> 中的每个 <code>v</code> ,都存在一条位于节点 <code>u</code> 和节点 <code>v</code> 之间的无向边。该无向图同时具有以下属性:

<ul>
<li>不存在自环(<code>graph[u]</code> 不包含 <code>u</code>)。</li>
Expand Down
2 changes: 1 addition & 1 deletion solution/1000-1099/1004.Max Consecutive Ones III/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags:

<!-- problem:start -->

# [1004. 最大连续 1 的个数 III](https://leetcode.cn/problems/max-consecutive-ones-iii)
# [1004. 最大连续1的个数 III](https://leetcode.cn/problems/max-consecutive-ones-iii)

[English Version](/solution/1000-1099/1004.Max%20Consecutive%20Ones%20III/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/1000-1099/1076.Project Employees II/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:

<!-- problem:start -->

# [1076. 项目员工 II 🔒](https://leetcode.cn/problems/project-employees-ii)
# [1076. 项目员工II 🔒](https://leetcode.cn/problems/project-employees-ii)

[English Version](/solution/1000-1099/1076.Project%20Employees%20II/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/1000-1099/1084.Sales Analysis III/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:

<!-- problem:start -->

# [1084. 销售分析 III](https://leetcode.cn/problems/sales-analysis-iii)
# [1084. 销售分析III](https://leetcode.cn/problems/sales-analysis-iii)

[English Version](/solution/1000-1099/1084.Sales%20Analysis%20III/README_EN.md)

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

<!-- problem:start -->

# [1141. 查询近 30 天活跃用户数](https://leetcode.cn/problems/user-activity-for-the-past-30-days-i)
# [1141. 查询近30天活跃用户数](https://leetcode.cn/problems/user-activity-for-the-past-30-days-i)

[English Version](/solution/1100-1199/1141.User%20Activity%20for%20the%20Past%2030%20Days%20I/README_EN.md)

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

<!-- problem:start -->

# [1142. 过去 30 天的用户活动 II 🔒](https://leetcode.cn/problems/user-activity-for-the-past-30-days-ii)
# [1142. 过去30天的用户活动 II 🔒](https://leetcode.cn/problems/user-activity-for-the-past-30-days-ii)

[English Version](/solution/1100-1199/1142.User%20Activity%20for%20the%20Past%2030%20Days%20II/README_EN.md)

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

<!-- problem:start -->

# [1287. 有序数组中出现次数超过 25%的元素](https://leetcode.cn/problems/element-appearing-more-than-25-in-sorted-array)
# [1287. 有序数组中出现次数超过25%的元素](https://leetcode.cn/problems/element-appearing-more-than-25-in-sorted-array)

[English Version](/solution/1200-1299/1287.Element%20Appearing%20More%20Than%2025%25%20In%20Sorted%20Array/README_EN.md)

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

<!-- problem:start -->

# [1378. 使用唯一标识码替换员工 ID](https://leetcode.cn/problems/replace-employee-id-with-the-unique-identifier)
# [1378. 使用唯一标识码替换员工ID](https://leetcode.cn/problems/replace-employee-id-with-the-unique-identifier)

[English Version](/solution/1300-1399/1378.Replace%20Employee%20ID%20With%20The%20Unique%20Identifier/README_EN.md)

Expand Down
2 changes: 1 addition & 1 deletion solution/1600-1699/1613.Find the Missing IDs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:

<!-- problem:start -->

# [1613. 找到遗失的 ID 🔒](https://leetcode.cn/problems/find-the-missing-ids)
# [1613. 找到遗失的ID 🔒](https://leetcode.cn/problems/find-the-missing-ids)

[English Version](/solution/1600-1699/1613.Find%20the%20Missing%20IDs/README_EN.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ authenticationManager.<code>renew</code>("aaa", 1); // 时刻 1 时,没有验
authenticationManager.generate("aaa", 2); // 时刻 2 时,生成一个 tokenId 为 "aaa" 的新验证码。
authenticationManager.<code>countUnexpiredTokens</code>(6); // 时刻 6 时,只有 tokenId 为 "aaa" 的验证码未过期,所以返回 1 。
authenticationManager.generate("bbb", 7); // 时刻 7 时,生成一个 tokenId 为 "bbb" 的新验证码。
authenticationManager.<code>renew</code>("aaa", 8); // tokenId 为 "aaa" 的验证码在时刻 7 过期,且 8 >= 7 ,所以时刻 8 的 renew 操作被忽略,没有验证码被更新。
authenticationManager.<code>renew</code>("aaa", 8); // tokenId 为 "aaa" 的验证码在时刻 7 过期,且 8 >= 7 ,所以时刻 8 的renew 操作被忽略,没有验证码被更新。
authenticationManager.<code>renew</code>("bbb", 10); // tokenId 为 "bbb" 的验证码在时刻 10 没有过期,所以 renew 操作会执行,该 token 将在时刻 15 过期。
authenticationManager.<code>countUnexpiredTokens</code>(15); // tokenId 为 "bbb" 的验证码在时刻 15 过期,tokenId 为 "aaa" 的验证码在时刻 7 过期,所有验证码均已过期,所以返回 0 。

Expand Down
2 changes: 1 addition & 1 deletion solution/1800-1899/1890.The Latest Login in 2020/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:

<!-- problem:start -->

# [1890. 2020 年最后一次登录](https://leetcode.cn/problems/the-latest-login-in-2020)
# [1890. 2020年最后一次登录](https://leetcode.cn/problems/the-latest-login-in-2020)

[English Version](/solution/1800-1899/1890.The%20Latest%20Login%20in%202020/README_EN.md)

Expand Down
Loading
Loading