|
3 | 3 |  |
4 | 4 | [](./LICENSE.md) |
5 | 5 |  |
6 | | - |
| 6 | + |
7 | 7 | [](https://saythanks.io/to/kamyu104) |
8 | 8 |  |
9 | 9 |
|
|
821 | 821 | 3394 |[Check if Grid can be Cut into Sections](https://leetcode.com/problems/check-if-grid-can-be-cut-into-sections/) |[C++](./C++/check-if-grid-can-be-cut-into-sections.cpp)[Python](./Python/check-if-grid-can-be-cut-into-sections.py) |_O(nlogn)_ |_O(1)_ | Medium | | Sort, Merge Intervals |
822 | 822 | 3431 |[Minimum Unlocked Indices to Sort Nums](https://leetcode.com/problems/minimum-unlocked-indices-to-sort-nums/) |[C++](./C++/minimum-unlocked-indices-to-sort-nums.cpp)[Python](./Python/minimum-unlocked-indices-to-sort-nums.py) |_O(n)_ |_O(1)_ | Medium | | Sort |
823 | 823 | 3551 |[Minimum Swaps to Sort by Digit Sum](https://leetcode.com/problems/minimum-swaps-to-sort-by-digit-sum/) |[C++](./C++/minimum-swaps-to-sort-by-digit-sum.cpp)[Python](./Python/minimum-swaps-to-sort-by-digit-sum.py) |_O(nlogr + nlogn)_ |_O(n)_ | Medium | | Sort |
| 824 | +3631 |[Sort Threats by Severity and Exploitability](https://leetcode.com/problems/sort-threats-by-severity-and-exploitability/) |[C++](./C++/sort-threats-by-severity-and-exploitability.cpp)[Python](./Python/sort-threats-by-severity-and-exploitability.py) |_O(nlogn)_ |_O(1)_ | Medium | 🔒 | Sort |
824 | 825 |
|
825 | 826 | <br/> |
826 | 827 | <divalign="right"> |
|
1065 | 1066 | 3535 |[Unit Conversion II](https://leetcode.com/problems/unit-conversion-ii/) |[C++](./C++/unit-conversion-ii.cpp)[Python](./Python/unit-conversion-ii.py) |_O(n + qlogm)_ |_O(n)_ | Medium | 🔒 | BFS, Fast Exponentiation |
1066 | 1067 | 3552 |[Grid Teleportation Traversal](https://leetcode.com/problems/grid-teleportation-traversal/) |[C++](./C++/grid-teleportation-traversal.cpp)[Python](./Python/grid-teleportation-traversal.py) |_O(m * n)_ |_O(m * n)_ | Medium | | 0-1 BFS, Deque |
1067 | 1068 | 3568 |[Minimum Moves to Clean the Classroom](https://leetcode.com/problems/minimum-moves-to-clean-the-classroom/) |[C++](./C++/minimum-moves-to-clean-the-classroom.cpp)[Python](./Python/minimum-moves-to-clean-the-classroom.py) |_O(m * n * 2^l)_ |_O(m * n * 2^l)_ | Medium | | BFS, Bitmasks |
| 1069 | +3629 |[Minimum Jumps to Reach End via Prime Teleportation](https://leetcode.com/problems/minimum-jumps-to-reach-end-via-prime-teleportation/) |[C++](./C++/minimum-jumps-to-reach-end-via-prime-teleportation.cpp)[Python](./Python/minimum-jumps-to-reach-end-via-prime-teleportation.py) | precompute:_O(r)_<br>runtime:_O(nlogr)_ |_O(r + nlogr)_ | Medium | | Number Theory,`Linear Sieve of Eratosthenes`, BFS |
1068 | 1070 |
|
1069 | 1071 | <br/> |
1070 | 1072 | <divalign="right"> |
|
1335 | 1337 | 3603 |[Minimum Cost Path with Alternating Directions II](https://leetcode.com/problems/minimum-cost-path-with-alternating-directions-ii/) |[C++](./C++/minimum-cost-path-with-alternating-directions-ii.cpp)[Python](./Python/minimum-cost-path-with-alternating-directions-ii.py) |_O(m * n)_ |_O(1)_ | Medium | | DP |
1336 | 1338 | 3610 |[Minimum Number of Primes to Sum to Target](https://leetcode.com/problems/minimum-number-of-primes-to-sum-to-target/) |[C++](./C++/minimum-number-of-primes-to-sum-to-target.cpp)[Python](./Python/minimum-number-of-primes-to-sum-to-target.py) |_O(nlog(log(min(m, n))) + m * n)_ |_O(n)_ | Medium | 🔒 | Number Theory, Knapsack DP |
1337 | 1339 | 3615 |[Longest Palindromic Path in Graph](https://leetcode.com/problems/longest-palindromic-path-in-graph/) |[C++](./C++/longest-palindromic-path-in-graph.cpp)[Python](./Python/longest-palindromic-path-in-graph.py) |_O(n^4 * 2^n)_ |_O(n + e)_ | Hard | | Bitmasks, DP, Freq Table |
| 1340 | +3628 |[Maximum Number of Subsequences After One Inserting](https://leetcode.com/problems/maximum-number-of-subsequences-after-one-inserting/) |[C++](./C++/maximum-number-of-subsequences-after-one-inserting.cpp)[Python](./Python/maximum-number-of-subsequences-after-one-inserting.py) |_O(n)_ |_O(1)_ | Medium | | Prefix Sum, DP |
1338 | 1341 |
|
1339 | 1342 | <br/> |
1340 | 1343 | <divalign="right"> |
|
1528 | 1531 | 3557 |[Find Maximum Number of Non Intersecting Substrings](https://leetcode.com/problems/find-maximum-number-of-non-intersecting-substrings/) |[C++](./C++/find-maximum-number-of-non-intersecting-substrings.cpp)[Python](./Python/find-maximum-number-of-non-intersecting-substrings.py) |_O(n)_ |_O(26)_ | Medium | | Greedy, Hash Table |
1529 | 1532 | 3576 |[Transform Array to All Equal Elements](https://leetcode.com/problems/transform-array-to-all-equal-elements/) |[C++](./C++/transform-array-to-all-equal-elements.cpp)[Python](./Python/transform-array-to-all-equal-elements.py) |_O(n)_ |_O(1)_ | Medium | | Greedy |
1530 | 1533 | 3587 |[Minimum Adjacent Swaps to Alternate Parity](https://leetcode.com/problems/minimum-adjacent-swaps-to-alternate-parity/) |[C++](./C++/minimum-adjacent-swaps-to-alternate-parity.cpp)[Python](./Python/minimum-adjacent-swaps-to-alternate-parity.py) |_O(n)_ |_O(1)_ | Medium | | Greedy |
| 1534 | +3627 |[Maximum Median Sum of Subsequences of Size 3](https://leetcode.com/problems/maximum-median-sum-of-subsequences-of-size-3/) |[C++](./C++/maximum-median-sum-of-subsequences-of-size-3.cpp)[Python](./Python/maximum-median-sum-of-subsequences-of-size-3.py) |_O(nlogn)_ |_O(1)_ | Medium | | Sort, Greedy |
| 1535 | +3630 |[Partition Array for Maximum XOR and AND](https://leetcode.com/problems/partition-array-for-maximum-xor-and-and/) |[C++](./C++/partition-array-for-maximum-xor-and-and.cpp)[Python](./Python/partition-array-for-maximum-xor-and-and.py) |_O(nlogr * 2^n)_ |_O(1)_ | Hard | | Bitmasks, Greedy |
1531 | 1536 |
|
1532 | 1537 | <br/> |
1533 | 1538 | <divalign="right"> |
|
1942 | 1947 | 3601 |[Find Drivers with Improved Fuel Efficiency](https://leetcode.com/problems/find-drivers-with-improved-fuel-efficiency/) |[MySQL](./MySQL/find-drivers-with-improved-fuel-efficiency.sql) |_O(nlogn)_ |_O(n)_ | Medium || | |
1943 | 1948 | 3611 |[Find Overbooked Employees](https://leetcode.com/problems/find-overbooked-employees/) |[MySQL](./MySQL/find-overbooked-employees.sql) |_O(m + nlogn)_ |_O(m + n)_ | Medium || | |
1944 | 1949 | 3617 |[Find Students with Study Spiral Pattern](https://leetcode.com/problems/find-students-with-study-spiral-pattern/) |[MySQL](./MySQL/find-students-with-study-spiral-pattern.sql) |_O(nlogn)_ |_O(n)_ | Hard || Window Function | |
| 1950 | +3626 |[Find Stores with Inventory Imbalance](https://leetcode.com/problems/find-stores-with-inventory-imbalance/) |[MySQL](./MySQL/find-stores-with-inventory-imbalance.sql) |_O(n^2 * logn)_ |_O(n^2)_ | Medium || | |
1945 | 1951 |
|
1946 | 1952 | ##PD |
1947 | 1953 | | #| Title| Solution| Time| Space| Difficulty| Tag| Note| |
|