An open API service indexing awesome lists of open source software.

https://github.com/againstentropy/myleetcode


https://github.com/againstentropy/myleetcode

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# myLeetCode

easy {
color: LimeGreen;
}

medium {
color: orange;
}

hard {
color: red;
}

A record of my leetcode solving in Python, Rust, C/C++, ...

## Problem Lists

### [100 List](https://github.com/itcharge/LeetCode-Py/blob/main/Contents/00.Introduction/06.Interview-100-List.md)

![100%](https://progress-bar.xyz/100)

| No. | Difficulty | Title | Solutions | | |
| ---: | :--------: | :---- | :-------- | - | - |
| 0054 | Medium | [Spiral Matrix](https://leetcode.com/problems/spiral-matrix/) | [Python](./python/54.py) | [Rust](./rust/src/bin/54.rs) | |
| 0048 | Medium | [Rotate Image](https://leetcode.com/problems/rotate-image/) | [Python](./python/48.py) | | |
| 0215 | Medium | [Kth Largest Element in an Array](https://leetcode.com/problems/kth-largest-element-in-an-array/) | [Python](./python/215.py) | | [C++](./cpp/215.cpp) |
| 0912 | Medium | [Sort an Array](https://leetcode.com/problems/kth-largest-element-in-an-array/) | [Python](./python/912.py) | | |
| 0088 | Easy | [Merge Sorted Array](https://leetcode.com/problems/sort-an-array/) | [Python](./python/88.py) | | |
| 0169 | Easy | [Majority Element](https://leetcode.com/problems/majority-element/) | [Python](./python/169.py) | | |
| 0136 | Easy | [Single Number](https://leetcode.com/problems/single-number/) | [Python](./python/136.py) | | |
| 0056 | Medium | [Merge Intervals](https://leetcode.com/problems/merge-intervals/) | [Python](./python/56.py) | | |
| 0179 | Medium | [Largest Number](https://leetcode.com/problems/largest-number/) | [Python](./python/179.py) | | |
| 0704 | Easy | [Binary Search](https://leetcode.com/problems/binary-search/) | [Python](./python/704.py) | | |
| 0034 | Medium | [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/) | [Python](./python/34.py) | | |
| 0153 | Medium | [Find Minimum in Rotated Sorted Array](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/) | [Python](./python/153.py) | | |
| 0033 | Medium | [Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/) | [Python](./python/33.py) | | |
| 0162 | Medium | [Find Minimum in Rotated Sorted Array](https://leetcode.com/problems/find-peak-element/) | [Python](./python/162.py) | | |
| 0004 | Hard | [Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays/) | [Python](./python/4.py) | | |
| 0240 | Medium | [Search a 2D Matrix II](https://leetcode.com/problems/search-a-2d-matrix-ii/) | [Python](./python/240.py) | | |
| 0069 | Easy | [Sqrt(x)](https://leetcode.com/problems/sqrtx/) | [Python](./python/69.py) | | |
| 0015 | Medium | [3Sum](https://leetcode.com/problems/3sum/) | [Python](./python/15.py) | | [C++](./cpp/15.cpp) |
| 0283 | Easy | [Move Zeroes](https://leetcode.com/problems/move-zeroes/) | [Python](./python/283.py) | | |
| 0415 | Easy | [Add Strings](https://leetcode.com/problems/add-strings/) | [Python](./python/415.py) | | |
| 0239 | Hard | [Sliding Window Maximum](https://leetcode.com/problems/sliding-window-maximum/) | [Python](./python/239.py) | | [C++](./cpp/239.cpp) |
| 0003 | Medium | [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/) | [Python](./python/3.py) | [Rust](./rust/src/bin/3.rs) | |
| 0076 | Hard | [Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring/) | [Python](./python/76.py) | | |
| 0718 | Medium | [Maximum Length of Repeated Subarray](https://leetcode.com/problems/maximum-length-of-repeated-subarray/) | [Python](./python/718.py) | | |
| 0083 | Easy | [Remove Duplicates from Sorted List](https://leetcode.com/problems/remove-duplicates-from-sorted-list/) | [Python](./python/83.py) | | |
| 0082 | Medium | [Remove Duplicates from Sorted List II](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/) | [Python](./python/82.py) | | |
| 0206 | Easy | [Reverse Linked List](https://leetcode.com/problems/reverse-linked-list/) | [Python](./python/206.py) | [Rust](./rust/src/bin/206.rs) | [C++](./cpp/206.cpp) |
| 0092 | Medium | [Reverse Linked List II](https://leetcode.com/problems/reverse-linked-list-ii/) | [Python](./python/92.py) | [Rust](./rust/src/bin/92.rs) | |
| 0025 | Hard | [Reverse Nodes in k-Group](https://leetcode.com/problems/reverse-nodes-in-k-group/) | [Python](./python/25.py) | | |
| 0234 | Easy | [Palindrome Linked List](https://leetcode.com/problems/palindrome-linked-list/) | [Python](./python/234.py) | | |
| 0148 | Medium | [Sort List](https://leetcode.com/problems/sort-list/) | [Python](./python/148.py) | [Rust](./rust/src/bin/148.rs) | [C++](./cpp/148.cpp) |
| 0021 | Easy | [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/) | [Python](./python/21.py) | [Rust](./rust/src/bin/21.rs) | |
| 0023 | Hard | [Merge k Sorted Lists](https://leetcode.com/problems/merge-k-sorted-lists/) | [Python](./python/23.py) | | [C++](./cpp/23.cpp) |
| 0141 | Easy | [Linked List Cycle](https://leetcode.com/problems/linked-list-cycle/) | [Python](./python/141.py) | | [C++](./cpp/141.cpp) |
| 0142 | Medium | [Linked List Cycle II](https://leetcode.com/problems/linked-list-cycle-ii/) | [Python](./python/142.py) | | |
| 0160 | Easy | [Intersection of Two Linked Lists](https://leetcode.com/problems/intersection-of-two-linked-lists/) | [Python](./python/160.py) | | |
| 0019 | Medium | [Remove Nth Node From End of List](https://leetcode.com/problems/remove-nth-node-from-end-of-list/) | [Python](./python/19.py) | | |
| LCR 140 | Medium | [LCR 140. 训练计划 II](https://leetcode.cn/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof/description/) | [Python](./python/LCR140.py) | | |
| 0143 | Medium | [Reorder List](https://leetcode.com/problems/reorder-list/) | [Python](./python/143.py) | | |
| 0002 | Medium | [Add Two Numbers](https://leetcode.com/problems/add-two-numbers/) | [Python](./python/2.py) | | |
| 0155 | Medium | [Min Stack](https://leetcode.com/problems/min-stack/) | [Python](./python/155.py) | | |
| 0020 | Easy | [Valid Parentheses](https://leetcode.com/problems/valid-parentheses/) | [Python](./python/20.py) | | |
| 0227 | Medium | [Basic Calculator II](https://leetcode.com/problems/basic-calculator-ii/) | [Python](./python/227.py) | | |
| 0232 | Easy | [Implement Queue using Stacks](https://leetcode.com/problems/implement-queue-using-stacks/) | [Python](./python/232.py) | | |
| 0394 | Medium | [Decode String](https://leetcode.com/problems/decode-string/) | [Python](./python/394.py) | | |
| 0032 | Hard | [Longest Valid Parentheses](https://leetcode.com/problems/longest-valid-parentheses/) | [Python](./python/32.py) | | |
| 0042 | Hard | [Trapping Rain Water](https://leetcode.com/problems/trapping-rain-water/) | [Python](./python/42.py) | | |
| 0225 | Easy | [Implement Stack using Queues](https://leetcode.com/problems/implement-stack-using-queues/) | [Python](./python/225.py) | | |
| 0001 | Easy | [Two Sum](https://leetcode.com/problems/two-sum/) | [Python](./python/1.py) | | [C++](./cpp/1.cpp) |
| 0041 | Hard | [First Missing Positive](https://leetcode.com/problems/first-missing-positive/) | [Python](./python/41.py) | [Rust](./rust/src/bin/41.rs) | |
| 0128 | Medium | [Longest Consecutive Sequence](https://leetcode.com/problems/longest-consecutive-sequence/) | [Python](./python/128.py) | | [C++](./cpp/128.cpp) |
| 0005 | Medium | [Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring/) | [Python](./python/5.py) | | |
| 0151 | Medium | [Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string/) | [Python](./python/151.py) | | |
| 0043 | Medium | [Multiply Strings](https://leetcode.com/problems/multiply-strings/) | [Python](./python/43.py) | | |
| 0014 | Easy | [Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix/) | [Python](./python/14.py) | | |
| 0144 | Easy | [Binary Tree Preorder Traversal](https://leetcode.com/problems/binary-tree-preorder-traversal/) | [Python](./python/144.py) | [Rust](./rust/src/bin/144.rs) | [C++](./cpp/144.cpp) |
| 0094 | Easy | [Binary Tree Inorder Traversal](https://leetcode.com/problems/binary-tree-inorder-traversal/) | [Python](./python/94.py) | [Rust](./rust/src/bin/94.rs) | [C++](./cpp/94.cpp) |
| 0102 | Medium | [Binary Tree Level Order Traversal](https://leetcode.com/problems/binary-tree-level-order-traversal/) | [Python](./python/102.py) | [Rust](./rust/src/bin/102.rs) | [C++](./cpp/102.cpp) |
| 0103 | Medium | [Binary Tree Zigzag Level Order Traversal](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/) | [Python](./python/103.py) | | |
| 0236 | Medium | [Lowest Common Ancestor of a Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/) | [Python](./python/236.py) | | |
| 0104 | Easy | [Maximum Depth of Binary Tree](https://leetcode.com/problems/maximum-depth-of-binary-tree/) | [Python](./python/104.py) | | |
| 0112 | Easy | [Path Sum](https://leetcode.com/problems/path-sum/) | [Python](./python/112.py) | | |
| 0113 | Medium | [Path Sum II](https://leetcode.com/problems/path-sum-ii/) | [Python](./python/113.py) | | |
| 0101 | Easy | [Symmetric Tree](https://leetcode.com/problems/symmetric-tree/) | [Python](./python/101.py) | | |
| 0124 | Hard | [Binary Tree Maximum Path Sum](https://leetcode.com/problems/binary-tree-maximum-path-sum/) | [Python](./python/124.py) | | |
| 0199 | Medium | [Binary Tree Right Side View](https://leetcode.com/problems/binary-tree-right-side-view/) | [Python](./python/199.py) | | |
| 0226 | Easy | [Invert Binary Tree](https://leetcode.com/problems/invert-binary-tree/) | [Python](./python/226.py) | | |
| 0105 | Medium | [Construct Binary Tree from Preorder and Inorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) | [Python](./python/105.py) | | |
| 0098 | Medium | [Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree/) | [Python](./python/98.py) | | |
| 0110 | Easy | [Balanced Binary Tree](https://leetcode.com/problems/balanced-binary-tree/) | [Python](./python/110.py) | | |
| 0200 | Medium | [Number of Islands](https://leetcode.com/problems/number-of-islands/) | [Python](./python/200.py) | [Rust](./rust/src/bin/200.rs) | [C++](./cpp/200.cpp) |
| 0695 | Medium | [Max Area of Island](https://leetcode.com/problems/max-area-of-island/) | [Python](./python/695.py) | | |
| 0129 | Medium | [Sum Root to Leaf Numbers](https://leetcode.com/problems/sum-root-to-leaf-numbers/) | [Python](./python/129.py) | | |
| 0543 | Easy | [Diameter of Binary Tree](https://leetcode.com/problems/diameter-of-binary-tree/) | [Python](./python/543.py) | | |
| 0662 | Medium | [Maximum Width of Binary Tree](https://leetcode.com/problems/maximum-width-of-binary-tree/) | [Python](./python/662.py) | | |
| 0322 | Medium | [Coin Change](https://leetcode.com/problems/coin-change/) | [Python](./python/322.py) | [Rust](./rust/src/bin/322.rs) | [C++](./cpp/322.cpp) |
| 0070 | Easy | [Climbing Stairs](https://leetcode.com/problems/climbing-stairs/) | [Python](./python/70.py) | | |
| 0121 | Easy | [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/) | [Python](./python/121.py) | | |
| 0300 | Medium | [Longest Increasing Subsequence](https://leetcode.com/problems/longest-increasing-subsequence/) | [Python](./python/300.py) | | |
| 1143 | Medium | [Longest Common Subsequence](https://leetcode.com/problems/longest-common-subsequence/) | [Python](./python/1143.py) | | |
| 0064 | Medium | [Minimum Path Sum](https://leetcode.com/problems/minimum-path-sum/) | [Python](./python/64.py) | | |
| 0072 | Medium | [Edit Distance](https://leetcode.com/problems/edit-distance/) | [Python](./python/72.py) | | |
| 0221 | Medium | [Maximal Square](https://leetcode.com/problems/maximal-square/) | [Python](./python/221.py) | | |
| 0062 | Medium | [Unique Paths](https://leetcode.com/problems/unique-paths/) | [Python](./python/62.py) | | |
| 0152 | Medium | [Maximum Product Subarray](https://leetcode.com/problems/maximum-product-subarray/) | [Python](./python/152.py) | | |
| 0198 | Medium | [House Robber](https://leetcode.com/problems/house-robber/) | [Python](./python/198.py) | | |
| 0078 | Medium | [Subsets](https://leetcode.com/problems/subsets/) | [Python](./python/78.py) | | |
| 0024 | Medium | [Swap Nodes in Pairs](https://leetcode.com/problems/swap-nodes-in-pairs/) | [Python](./python/24.py) | | |
| 0053 | Medium | [Maximum Subarray](https://leetcode.com/problems/maximum-subarray/) | [Python](./python/53.py) | | |
| 0046 | Medium | [Permutations](https://leetcode.com/problems/permutations/) | [Python](./python/46.py) | | |
| 0022 | Medium | [Generate Parentheses](https://leetcode.com/problems/generate-parentheses/) | [Python](./python/22.py) | | |
| 0039 | Medium | [Combination Sum](https://leetcode.com/problems/combination-sum/) | [Python](./python/39.py) | | |
| 0093 | Medium | [Restore IP Addresses](https://leetcode.com/problems/restore-ip-addresses/) | [Python](./python/93.py) | | |
| 0122 | Medium | [Best Time to Buy and Sell Stock II](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/) | [Python](./python/122.py) | | |
| 0146 | Medium | [LRU Cache](https://leetcode.com/problems/lru-cache/) | [Python](./python/146.py) | | |
| 0008 | Medium | [String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi/) | [Python](./python/8.py) | | |
| 0165 | Medium | [Compare Version Numbers](https://leetcode.com/problems/compare-version-numbers/) | [Python](./python/165.py) | | |
| 0468 | Medium | [Validate IP Address](https://leetcode.com/problems/validate-ip-address/) | [Python](./python/468.py) | | |
| 0031 | Medium | [Next Permutation](https://leetcode.com/problems/next-permutation/) | [Python](./python/31.py) | | |
| 0470 | Medium | [Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) | [Python](./python/470.py) | | |

## Leetcode Daily Questions

| Date | No. | Difficulty | Title | Solutions |
| :---: | :---: | :--------: | :---- | :-------- |
| 2024-11-11 | 2601 | Medium | [Prime Subtraction Operation](https://leetcode.com/problems/prime-subtraction-operation/) | [Python](./python/2601.py) |
| 2024-11-12 | 2070 | Medium | [Most Beautiful Item for Each Query](https://leetcode.com/problems/most-beautiful-item-for-each-query/) | [Python](./python/2070.py) |
| 2024-11-14 | 2064 | Medium | [Minimized Maximum of Products Distributed to Any Store](https://leetcode.com/problems/minimized-maximum-of-products-distributed-to-any-store/) | [Python](./python/2064.py) |
| 2024-11-15 | 1574 | Medium | [Shortest Subarray to be Removed to Make Array Sorted](https://leetcode.com/problems/shortest-subarray-to-be-removed-to-make-array-sorted/) | [Python](./python/1574.py) |
| 2024-11-16 | 3254 | Medium | [Find the Power of K-Size Subarrays I](https://leetcode.com/problems/find-the-power-of-k-size-subarrays-i/) | [Python](./python/3254.py) |
| 2024-11-19 | 2461 | Medium | [Maximum Sum of Distinct Subarrays With Length K](https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k/description/?envType=daily-question&envId=2024-11-19) | [Python](./python/2461.py) |
| 2024-11-20 | 2516 | Medium | [Take K of Each Character From Left and Right](https://leetcode.com/problems/take-k-of-each-character-from-left-and-right/description/?envType=daily-question&envId=2024-11-20) | [Python](./python/2516.py) |
| 2024-11-21 | 2257 | Medium | [Count Unguarded Cells in the Grid](https://leetcode.com/problems/count-unguarded-cells-in-the-grid/description/?envType=daily-question&envId=2024-11-21) | [Python](./python/2517.py) |
| 2024-11-23 | 1861 | Medium | [Rotating the Box](https://leetcode.com/problems/rotating-the-box/description/?envType=daily-question&envId=2024-11-23) | [Python](./python/1861.py) |

## Others

| No. | Difficulty | Title | Solutions | | |
| :--- | :--------: | :---- | :-------- | - | - |
| 0167 | Medium | [Two Sum II - Input Array Is Sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/) | [Python](./python/167.py) | | |
| 0516 | Medium | [Longest Palindromic Subsequence](https://leetcode.com/problems/longest-palindromic-subsequence/) | [Python](./python/516.py) | [Rust](./rust/src/bin/516.rs) | |
| 0767 | Medium | [Reorganize String](https://leetcode.com/problems/reorganize-string/) | [Python](./python/767.py) | | |