Skip to content

Commit 42808f4

Browse files
committed
feat: add solutions to lc problems: No.2409~2416
* No.2409.Count Days Spent Together * No.2410.Maximum Matching of Players With Trainers * No.2411.Smallest Subarrays With Maximum Bitwise OR * No.2412.Minimum Money Required Before Transactions * No.2413.Smallest Even Multiple * No.2414.Length of the Longest Alphabetical Continuous Substring * No.2415.Reverse Odd Levels of Binary Tree * No.2416.Sum of Prefix Scores of Strings
1 parent 0380cac commit 42808f4

File tree

72 files changed

+3627
-34
lines changed

Some content is hidden

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

72 files changed

+3627
-34
lines changed

solution/0300-0399/0336.Palindrome Pairs/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
<strong>输出:</strong>[[0,1],[1,0]]
3333
</pre>
3434

35-
36-
3735
<p><strong>提示:</strong></p>
3836

3937
<ul>

solution/0500-0599/0554.Brick Wall/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
<strong>输出:</strong>3
2929
</pre>
3030

31-
32-
3331
<p><strong>提示:</strong></p>
3432

3533
<ul>

solution/0700-0799/0775.Global and Local Inversions/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
<strong>解释:</strong>有 2 个全局倒置,和 1 个局部倒置。
4343
</pre>
4444

45-
46-
4745
<p><strong>提示:</strong></p>
4846

4947
<ul>

solution/0800-0899/0830.Positions of Large Groups/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
<strong>输出:</strong>[]
4949
</pre>
5050

51-
52-
5351
<p><strong>提示:</strong></p>
5452

5553
<ul>

solution/1400-1499/1460.Make Two Arrays Equal by Reversing Sub-arrays/README.md renamed to solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# [1460. 通过翻转子数组使两个数组相等](https://leetcode.cn/problems/make-two-arrays-equal-by-reversing-sub-arrays)
1+
# [1460. 通过翻转子数组使两个数组相等](https://leetcode.cn/problems/make-two-arrays-equal-by-reversing-subarrays)
22

3-
[English Version](/solution/1400-1499/1460.Make%20Two%20Arrays%20Equal%20by%20Reversing%20Sub-arrays/README_EN.md)
3+
[English Version](/solution/1400-1499/1460.Make%20Two%20Arrays%20Equal%20by%20Reversing%20Subarrays/README_EN.md)
44

55
## 题目描述
66

solution/1400-1499/1460.Make Two Arrays Equal by Reversing Sub-arrays/README_EN.md renamed to solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README_EN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# [1460. Make Two Arrays Equal by Reversing Sub-arrays](https://leetcode.com/problems/make-two-arrays-equal-by-reversing-sub-arrays)
1+
# [1460. Make Two Arrays Equal by Reversing Subarrays](https://leetcode.com/problems/make-two-arrays-equal-by-reversing-subarrays)
22

3-
[中文文档](/solution/1400-1499/1460.Make%20Two%20Arrays%20Equal%20by%20Reversing%20Sub-arrays/README.md)
3+
[中文文档](/solution/1400-1499/1460.Make%20Two%20Arrays%20Equal%20by%20Reversing%20Subarrays/README.md)
44

55
## Description
66

7-
<p>You are given two integer arrays of equal length <code>target</code> and <code>arr</code>. In one step, you can select any <strong>non-empty sub-array</strong> of <code>arr</code> and reverse it. You are allowed to make any number of steps.</p>
7+
<p>You are given two integer arrays of equal length <code>target</code> and <code>arr</code>. In one step, you can select any <strong>non-empty subarray</strong> of <code>arr</code> and reverse it. You are allowed to make any number of steps.</p>
88

99
<p>Return <code>true</code> <em>if you can make </em><code>arr</code><em> equal to </em><code>target</code><em>&nbsp;or </em><code>false</code><em> otherwise</em>.</p>
1010

@@ -15,9 +15,9 @@
1515
<strong>Input:</strong> target = [1,2,3,4], arr = [2,4,1,3]
1616
<strong>Output:</strong> true
1717
<strong>Explanation:</strong> You can follow the next steps to convert arr to target:
18-
1- Reverse sub-array [2,4,1], arr becomes [1,4,2,3]
19-
2- Reverse sub-array [4,2], arr becomes [1,2,4,3]
20-
3- Reverse sub-array [4,3], arr becomes [1,2,3,4]
18+
1- Reverse subarray [2,4,1], arr becomes [1,4,2,3]
19+
2- Reverse subarray [4,2], arr becomes [1,2,4,3]
20+
3- Reverse subarray [4,3], arr becomes [1,2,3,4]
2121
There are multiple ways to convert arr to target, this is not the only way to do so.
2222
</pre>
2323

0 commit comments

Comments
 (0)