Skip to content

Commit ac62f42

Browse files
committed
feat: add new lc problems
1 parent 6823f28 commit ac62f42

File tree

160 files changed

+3145
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+3145
-87
lines changed

solution/0100-0199/0115.Distinct Subsequences/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ tags:
1717

1818
<!-- description:start -->
1919

20-
<p>给你两个字符串 <code>s</code><strong> </strong>和 <code>t</code> ,统计并返回在 <code>s</code> 的 <strong>子序列</strong> 中 <code>t</code> 出现的个数,结果需要对&nbsp;10<sup>9</sup> + 7 取模。</p>
20+
<p>给你两个字符串 <code>s</code><strong> </strong>和 <code>t</code> ,统计并返回在 <code>s</code> 的 <strong>子序列</strong> 中 <code>t</code> 出现的个数。</p>
21+
22+
<p>测试用例保证结果在 32 位有符号整数范围内。</p>
2123

2224
<p>&nbsp;</p>
2325

solution/0100-0199/0177.Nth Highest Salary/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ tags:
2525
| id | int |
2626
| salary | int |
2727
+-------------+------+
28-
在 SQL 中,id 是该表的主键。
28+
id 是该表的主键(列中的值互不相同)
2929
该表的每一行都包含有关员工工资的信息。
3030
</pre>
3131

3232
<p>&nbsp;</p>
3333

34-
<p>查询&nbsp;<code>Employee</code> 表中第 <code>n</code> 高的工资。如果没有第 <code>n</code> 个最高工资,查询结果应该为&nbsp;<code>null</code> 。</p>
34+
<p>编写一个解决方案查询&nbsp;<code>Employee</code> 表中第 <code>n</code> 高的&nbsp;<strong>不同</strong> 工资。如果少于&nbsp;<code>n</code> 个不同工资,查询结果应该为&nbsp;<code>null</code> 。</p>
3535

3636
<p>查询结果格式如下所示。</p>
3737

solution/0100-0199/0177.Nth Highest Salary/README_EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Each row of this table contains information about the salary of an employee.
3131

3232
<p>&nbsp;</p>
3333

34-
<p>Write a solution to find the <code>n<sup>th</sup></code> highest salary from the <code>Employee</code> table. If there is no <code>n<sup>th</sup></code> highest salary, return&nbsp;<code>null</code>.</p>
34+
<p>Write a solution to find the <code>n<sup>th</sup></code> highest <strong>distinct</strong> salary from the <code>Employee</code> table. If there are less than <code>n</code> distinct salaries, return&nbsp;<code>null</code>.</p>
3535

3636
<p>The result format is in the following example.</p>
3737

solution/0200-0299/0275.H-Index II/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tags:
1717

1818
<!-- description:start -->
1919

20-
<p>给你一个整数数组 <code>citations</code> ,其中 <code>citations[i]</code> 表示研究者的第 <code>i</code> 篇论文被引用的次数,<code>citations</code> 已经按照&nbsp;<strong>升序排列&nbsp;</strong>。计算并返回该研究者的 h<strong><em>&nbsp;</em></strong>指数。</p>
20+
<p>给你一个整数数组 <code>citations</code> ,其中 <code>citations[i]</code> 表示研究者的第 <code>i</code> 篇论文被引用的次数,<code>citations</code> 已经按照&nbsp;<strong>非降序排列&nbsp;</strong>。计算并返回该研究者的 h<strong><em>&nbsp;</em></strong>指数。</p>
2121

2222
<p><a href="https://baike.baidu.com/item/h-index/3991452?fr=aladdin" target="_blank">h 指数的定义</a>:h 代表“高引用次数”(high citations),一名科研人员的 <code>h</code> 指数是指他(她)的 (<code>n</code> 篇论文中)<strong>至少&nbsp;</strong>有 <code>h</code> 篇论文分别被引用了<strong>至少</strong> <code>h</code> 次。</p>
2323

solution/0200-0299/0275.H-Index II/README_EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tags:
1717

1818
<!-- description:start -->
1919

20-
<p>Given an array of integers <code>citations</code> where <code>citations[i]</code> is the number of citations a researcher received for their <code>i<sup>th</sup></code> paper and <code>citations</code> is sorted in <strong>ascending order</strong>, return <em>the researcher&#39;s h-index</em>.</p>
20+
<p>Given an array of integers <code>citations</code> where <code>citations[i]</code> is the number of citations a researcher received for their <code>i<sup>th</sup></code> paper and <code>citations</code> is sorted in <strong>non-descending order</strong>, return <em>the researcher&#39;s h-index</em>.</p>
2121

2222
<p>According to the <a href="https://en.wikipedia.org/wiki/H-index" target="_blank">definition of h-index on Wikipedia</a>: The h-index is defined as the maximum value of <code>h</code> such that the given researcher has published at least <code>h</code> papers that have each been cited at least <code>h</code> times.</p>
2323

solution/0300-0399/0317.Shortest Distance from All Buildings/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ tags:
3232

3333
<p><strong>总旅行距离&nbsp;</strong>是朋友们家到聚会地点的距离之和。</p>
3434

35-
<p>使用 <strong>曼哈顿距离</strong>&nbsp;计算距离,其中距离 <code>(p1, p2) = |p2.x - p1.x | + | p2.y - p1.y |</code> 。</p>
36-
3735
<p>&nbsp;</p>
3836

3937
<p><strong>示例&nbsp; 1:</strong></p>

solution/0300-0399/0317.Shortest Distance from All Buildings/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ tags:
3232

3333
<p>The <strong>total travel distance</strong> is the sum of the distances between the houses of the friends and the meeting point.</p>
3434

35-
<p>The distance is calculated using <a href="http://en.wikipedia.org/wiki/Taxicab_geometry" target="_blank">Manhattan Distance</a>, where <code>distance(p1, p2) = |p2.x - p1.x| + |p2.y - p1.y|</code>.</p>
36-
3735
<p>&nbsp;</p>
3836
<p><strong class="example">Example 1:</strong></p>
3937
<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0300-0399/0317.Shortest%20Distance%20from%20All%20Buildings/images/buildings-grid.jpg" style="width: 413px; height: 253px;" />

solution/0600-0699/0689.Maximum Sum of 3 Non-Overlapping Subarrays/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/0600-0699/0689.Ma
55
tags:
66
- 数组
77
- 动态规划
8+
- 前缀和
9+
- 滑动窗口
810
---
911

1012
<!-- problem:start -->

solution/0600-0699/0689.Maximum Sum of 3 Non-Overlapping Subarrays/README_EN.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/0600-0699/0689.Ma
55
tags:
66
- Array
77
- Dynamic Programming
8+
- Prefix Sum
9+
- Sliding Window
810
---
911

1012
<!-- problem:start -->

solution/0700-0799/0759.Employee Free Time/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/0700-0799/0759.Em
55
tags:
66
- 数组
77
- 排序
8+
- 扫描线
89
- 堆(优先队列)
910
---
1011

solution/0700-0799/0759.Employee Free Time/README_EN.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/0700-0799/0759.Em
55
tags:
66
- Array
77
- Sorting
8+
- Line Sweep
89
- Heap (Priority Queue)
910
---
1011

solution/0700-0799/0781.Rabbits in Forest/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ tags:
3131
<strong>输入:</strong>answers = [1,1,2]
3232
<strong>输出:</strong>5
3333
<strong>解释:</strong>
34-
两只回答了 "1" 的兔子可能有相同的颜色,设为红色。
34+
两只回答了 "1" 的兔子可能有相同的颜色,设为红色。
3535
之后回答了 "2" 的兔子不会是红色,否则他们的回答会相互矛盾。
36-
设回答了 "2" 的兔子为蓝色。
37-
此外,森林中还应有另外 2 只蓝色兔子的回答没有包含在数组中。
36+
设回答了 "2" 的兔子为蓝色。
37+
此外,森林中还应有另外 2 只蓝色兔子的回答没有包含在数组中。
3838
因此森林中兔子的最少数量是 5 只:3 只回答的和 2 只没有回答的。
3939
</pre>
4040

solution/0800-0899/0802.Find Eventual Safe States/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tags:
2121

2222
<p>有一个有 <code>n</code> 个节点的有向图,节点按 <code>0</code> 到 <code>n - 1</code> 编号。图由一个 <strong>索引从 0 开始</strong> 的 2D 整数数组&nbsp;<code>graph</code>表示,&nbsp;<code>graph[i]</code>是与节点 <code>i</code> 相邻的节点的整数数组,这意味着从节点 <code>i</code> 到&nbsp;<code>graph[i]</code>中的每个节点都有一条边。</p>
2323

24-
<p>如果一个节点没有连出的有向边,则该节点是 <strong>终端节点</strong> 。如果从该节点开始的所有可能路径都通向 <strong>终端节点</strong> ,则该节点为 <strong>安全节点</strong> 。</p>
24+
<p>如果一个节点没有连出的有向边,则该节点是 <strong>终端节点</strong> 。如果从该节点开始的所有可能路径都通向 <strong>终端节点</strong> ,则该节点为 <strong>终端节点</strong>(或另一个安全节点)。</p>
2525

2626
<p>返回一个由图中所有 <strong>安全节点</strong> 组成的数组作为答案。答案数组中的元素应当按 <strong>升序</strong> 排列。</p>
2727

solution/0900-0999/0949.Largest Time for Given Digits/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/0900-0999/0949.La
55
tags:
66
- 数组
77
- 字符串
8+
- 回溯
89
- 枚举
910
---
1011

solution/0900-0999/0949.Largest Time for Given Digits/README_EN.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/0900-0999/0949.La
55
tags:
66
- Array
77
- String
8+
- Backtracking
89
- Enumeration
910
---
1011

solution/1000-1099/1040.Moving Stones Until Consecutive II/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ source: 第 135 场周赛 Q4
77
tags:
88
- 数组
99
- 数学
10-
- 双指针
1110
- 排序
11+
- 滑动窗口
1212
---
1313

1414
<!-- problem:start -->

solution/1000-1099/1040.Moving Stones Until Consecutive II/README_EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ source: Weekly Contest 135 Q4
77
tags:
88
- Array
99
- Math
10-
- Two Pointers
1110
- Sorting
11+
- Sliding Window
1212
---
1313

1414
<!-- problem:start -->

solution/1000-1099/1070.Product Sales Analysis III/README_EN.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Each row of this table shows a sale on the product product_id in a certain year.
3434
Note that the price is per unit.
3535
</pre>
3636

37-
<p>&nbsp;</p>
37+
<p> </p>
3838

3939
<p>Table: <code>Product</code></p>
4040

@@ -49,13 +49,13 @@ product_id is the primary key (column with unique values) of this table.
4949
Each row of this table indicates the product name of each product.
5050
</pre>
5151

52-
<p>&nbsp;</p>
52+
<p> </p>
5353

54-
<p>Write a solution to select&nbsp;the <strong>product id</strong>, <strong>year</strong>, <strong>quantity</strong>, and <strong>price</strong> for the <strong>first year</strong> of every product sold.</p>
54+
<p>Write a solution to select the <strong>product id</strong>, <strong>year</strong>, <strong>quantity</strong>, and <strong>price</strong> for the <strong>first year</strong> of every product sold. If any product is bought multiple times in its first year, return all sales separately.</p>
5555

5656
<p>Return the resulting table in <strong>any order</strong>.</p>
5757

58-
<p>The&nbsp;result format is in the following example.</p>
58+
<p>The result format is in the following example.</p>
5959

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

solution/1100-1199/1148.Article Views I/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ tags:
3434

3535
<p>&nbsp;</p>
3636

37-
<p>请查询出所有浏览过自己文章的作者</p>
37+
<p>请查询出所有浏览过自己文章的作者</p>
3838

39-
<p>结果按照 <code>id</code> 升序排列。</p>
39+
<p>结果按照作者的&nbsp;<code>id</code> 升序排列。</p>
4040

4141
<p>查询结果的格式如下所示:</p>
4242

solution/1200-1299/1295.Find Numbers with Even Number of Digits/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tags:
1919

2020
<!-- description:start -->
2121

22-
<p>给你一个整数数组&nbsp;<code>nums</code>,请你返回其中位数为&nbsp;<strong>偶数</strong>&nbsp;的数字的个数。</p>
22+
<p>给你一个整数数组&nbsp;<code>nums</code>,请你返回其中包含&nbsp;<strong>偶数</strong>&nbsp;个数位的数字的个数。</p>
2323

2424
<p>&nbsp;</p>
2525

solution/1300-1399/1399.Count Largest Group/README.md

+9-17
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,37 @@ tags:
1919

2020
<!-- description:start -->
2121

22-
<p>给你一个整数 <code>n</code>&nbsp;。请你先求出从 <code>1</code>&nbsp;到 <code>n</code> 的每个整数 10 进制表示下的数位和(每一位上的数字相加),然后把数位和相等的数字放到同一个组中。</p>
22+
<p>给定一个整数 <code>n</code>&nbsp;。</p>
2323

24-
<p>请你统计每个组中的数字数目,并返回数字数目并列最多的组有多少个。</p>
24+
<p>我们需要根据数字的数位和将 <code>1</code> 到 <code>n</code> 的数字分组。例如,数字 14 和 5 属于 <strong>同一</strong>&nbsp;组,而数字 13 和 3 属于 <strong>不同</strong>&nbsp;组。</p>
25+
26+
<p>返回最大组的数字数量,即元素数量 <strong>最多</strong> 的组。</p>
2527

2628
<p>&nbsp;</p>
2729

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

30-
<pre><strong>输入:</strong>n = 13
32+
<pre>
33+
<strong>输入:</strong>n = 13
3134
<strong>输出:</strong>4
3235
<strong>解释:</strong>总共有 9 个组,将 1 到 13 按数位求和后这些组分别是:
3336
[1,10],[2,11],[3,12],[4,13],[5],[6],[7],[8],[9]。总共有 4 个组拥有的数字并列最多。
3437
</pre>
3538

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

38-
<pre><strong>输入:</strong>n = 2
41+
<pre>
42+
<strong>输入:</strong>n = 2
3943
<strong>输出:</strong>2
4044
<strong>解释:</strong>总共有 2 个大小为 1 的组 [1],[2]。
4145
</pre>
4246

43-
<p><strong>示例 3:</strong></p>
44-
45-
<pre><strong>输入:</strong>n = 15
46-
<strong>输出:</strong>6
47-
</pre>
48-
49-
<p><strong>示例 4:</strong></p>
50-
51-
<pre><strong>输入:</strong>n = 24
52-
<strong>输出:</strong>5
53-
</pre>
54-
5547
<p>&nbsp;</p>
5648

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

5951
<ul>
60-
<li><code>1 &lt;= n &lt;= 10^4</code></li>
52+
<li><code>1 &lt;= n &lt;= 10<sup>4</sup></code></li>
6153
</ul>
6254

6355
<!-- description:end -->

solution/1300-1399/1399.Count Largest Group/README_EN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ tags:
2121

2222
<p>You are given an integer <code>n</code>.</p>
2323

24-
<p>Each number from <code>1</code> to <code>n</code> is grouped according to the sum of its digits.</p>
24+
<p>We need to group the numbers from <code>1</code> to <code>n</code> according to the sum of its digits. For example, the numbers 14 and 5 belong to the <strong>same</strong> group, whereas 13 and 3 belong to <strong>different</strong> groups.</p>
2525

26-
<p>Return <em>the number of groups that have the largest size</em>.</p>
26+
<p>Return the number of groups that have the largest size, i.e. the <strong>maximum</strong> number of elements.</p>
2727

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

solution/1400-1499/1404.Number of Steps to Reduce a Number in Binary Representation to One/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ source: 第 183 场周赛 Q2
77
tags:
88
- 位运算
99
- 字符串
10+
- 模拟
1011
---
1112

1213
<!-- problem:start -->

solution/1400-1499/1404.Number of Steps to Reduce a Number in Binary Representation to One/README_EN.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ source: Weekly Contest 183 Q2
77
tags:
88
- Bit Manipulation
99
- String
10+
- Simulation
1011
---
1112

1213
<!-- problem:start -->

solution/1500-1599/1508.Range Sum of Sorted Subarray Sums/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tags:
88
- 数组
99
- 双指针
1010
- 二分查找
11+
- 前缀和
1112
- 排序
1213
---
1314

solution/1500-1599/1508.Range Sum of Sorted Subarray Sums/README_EN.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tags:
88
- Array
99
- Two Pointers
1010
- Binary Search
11+
- Prefix Sum
1112
- Sorting
1213
---
1314

solution/1700-1799/1778.Shortest Path in a Hidden Grid/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/1700-1799/1778.Sh
55
tags:
66
- 深度优先搜索
77
- 广度优先搜索
8-
-
8+
- 数组
99
- 交互
10+
- 矩阵
1011
---
1112

1213
<!-- problem:start -->

solution/1700-1799/1778.Shortest Path in a Hidden Grid/README_EN.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/1700-1799/1778.Sh
55
tags:
66
- Depth-First Search
77
- Breadth-First Search
8-
- Graph
8+
- Array
99
- Interactive
10+
- Matrix
1011
---
1112

1213
<!-- problem:start -->

solution/1800-1899/1810.Minimum Path Cost in a Hidden Grid/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ tags:
66
- 深度优先搜索
77
- 广度优先搜索
88
-
9+
- 数组
910
- 交互
11+
- 矩阵
12+
- 最短路
1013
- 堆(优先队列)
1114
---
1215

solution/1800-1899/1810.Minimum Path Cost in a Hidden Grid/README_EN.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ tags:
66
- Depth-First Search
77
- Breadth-First Search
88
- Graph
9+
- Array
910
- Interactive
11+
- Matrix
12+
- Shortest Path
1013
- Heap (Priority Queue)
1114
---
1215

solution/2200-2299/2215.Find the Difference of Two Arrays/README_EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ tags:
3636
<strong>Output:</strong> [[1,3],[4,6]]
3737
<strong>Explanation:
3838
</strong>For nums1, nums1[1] = 2 is present at index 0 of nums2, whereas nums1[0] = 1 and nums1[2] = 3 are not present in nums2. Therefore, answer[0] = [1,3].
39-
For nums2, nums2[0] = 2 is present at index 1 of nums1, whereas nums2[1] = 4 and nums2[2] = 6 are not present in nums2. Therefore, answer[1] = [4,6].</pre>
39+
For nums2, nums2[0] = 2 is present at index 1 of nums1, whereas nums2[1] = 4 and nums2[2] = 6 are not present in nums1. Therefore, answer[1] = [4,6].</pre>
4040

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

solution/2300-2399/2338.Count the Number of Ideal Arrays/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tags:
5353
<strong>输出:</strong>11
5454
<strong>解释:</strong>存在以下理想数组:
5555
- 以 1 开头的数组(9 个):
56-
- 不含其他不同值(1 个):[1,1,1,1,1]
56+
- 不含其他不同值(1 个):[1,1,1,1,1]
5757
- 含一个不同值 2(4 个):[1,1,1,1,2], [1,1,1,2,2], [1,1,2,2,2], [1,2,2,2,2]
5858
- 含一个不同值 3(4 个):[1,1,1,1,3], [1,1,1,3,3], [1,1,3,3,3], [1,3,3,3,3]
5959
- 以 2 开头的数组(1 个):[2,2,2,2,2]

solution/2300-2399/2338.Count the Number of Ideal Arrays/README_EN.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ There are a total of 5 + 2 + 1 + 1 + 1 = 10 distinct ideal arrays.
5353
<strong>Input:</strong> n = 5, maxValue = 3
5454
<strong>Output:</strong> 11
5555
<strong>Explanation:</strong> The following are the possible ideal arrays:
56-
- Arrays starting with the value 1 (9 arrays):
57-
- With no other distinct values (1 array): [1,1,1,1,1]
56+
- Arrays starting with the value 1 (9 arrays):
57+
- With no other distinct values (1 array): [1,1,1,1,1]
5858
- With 2<sup>nd</sup> distinct value 2 (4 arrays): [1,1,1,1,2], [1,1,1,2,2], [1,1,2,2,2], [1,2,2,2,2]
5959
- With 2<sup>nd</sup> distinct value 3 (4 arrays): [1,1,1,1,3], [1,1,1,3,3], [1,1,3,3,3], [1,3,3,3,3]
6060
- Arrays starting with the value 2 (1 array): [2,2,2,2,2]
@@ -92,8 +92,8 @@ $$
9292

9393
where $k$ represents the maximum value of the array, i.e., $\textit{maxValue}$.
9494

95-
- **Time Complexity**: $O(m \times \log^2 m)$
96-
- **Space Complexity**: $O(m \times \log m)$
95+
- **Time Complexity**: $O(m \times \log^2 m)$
96+
- **Space Complexity**: $O(m \times \log m)$
9797

9898
<!-- tabs:start -->
9999

0 commit comments

Comments
 (0)