Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuangjux/leetcode
My solution for leetcode and other algorithm problems.
https://github.com/kuangjux/leetcode
Last synced: 3 months ago
JSON representation
My solution for leetcode and other algorithm problems.
- Host: GitHub
- URL: https://github.com/kuangjux/leetcode
- Owner: KuangjuX
- Created: 2021-09-18T10:15:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T15:07:29.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T01:49:02.206Z (almost 2 years ago)
- Language: Rust
- Homepage:
- Size: 2.36 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# leetcode
My solution for leetcode and other algorithm problems using C++ && Rust.
## Question Lists
- [Leetcode 面试高频题分类刷题总结](https://zhuanlan.zhihu.com/p/349940945?utm_source=wechat_session&utm_medium=social&utm_oi=958084835357573120)## Questions
### Leetcode| ID | Title | Difficulty | C++ | Rust |
| --- | ------------------ | ------ | --- |----|
| 2 | Add Two Numbers |Medium|[C++](C++/2-Add-Two-Numbers.cpp)|[Rust](Rust/2-两数相加.rs) |
| 3 | Longest Substring Without Repeating Characters | Medium | no | [Rust](Rust/3-%E6%97%A0%E9%87%8D%E5%A4%8D%E5%AD%97%E7%AC%A6%E7%9A%84%E6%9C%80%E9%95%BF%E5%AD%90%E4%B8%B2.rs) |
| 4 | Median of Two Sorted Arrays | Hard | [C++](C++/4-Median-of-Two-Sorted-Arrays.cpp) | no |
| 11 | Container With Most Water | Medium | [C++](C++/11-Container-With-Most-Water.cpp) | no |
| 19 | Remove Nth Node From End of List | Medium | [C++](C++/19-Remove-Nth-Node-From-End-of-List.cpp) | [Rust](Rust/19-%E5%88%A0%E9%99%A4%E9%93%BE%E8%A1%A8%E5%80%92%E6%95%B0%E7%AC%ACn%E4%B8%AA%E8%8A%82%E7%82%B9.rs) |
| 23 | Merge k Sorted Lists | Hard | no | [Rust](Rust/23-%E5%90%88%E5%B9%B6K%E4%B8%AA%E5%8D%87%E5%BA%8F%E9%93%BE%E8%A1%A8.rs) |
| 25 | Reverse Nodes in k-Group | Hard | no | [Rust](Rust/25-K%E4%B8%AA%E4%B8%80%E7%BB%84%E7%BF%BB%E8%BD%AC%E9%93%BE%E8%A1%A8.rs) |
| 27 | Remove Element | Easy | [C++](C++/27-Remove-Elements.cpp)| no |
| 33 | Search in Rotated Sorted Array | Medium | no | [Rust](Rust/33-%E6%90%9C%E7%B4%A2%E6%97%8B%E8%BD%AC%E6%8E%92%E5%BA%8F%E6%95%B0%E7%BB%84.rs) |
| 34 | Find First and Last Position of Element in Sorted Array | Medium | [C++](C++/34-Find-First-and-Last-Position-of-Element-in-Sorted-Array.cpp) | no |
| 39 | Combination Sum | Medium | [C++](C++/39-Combination-Sum.cpp) | no |
| 41 | First Missing Positive | Hard | [C++](C++/41-First-Missing-Positive.cpp)| no |
| 42 | Trapping Rain Water | Hard | no | [Rust](Rust/42-%E6%8E%A5%E9%9B%A8%E6%B0%B4.rs) |
| 46 | Permutations | Medium | no | [Rust](Rust/46-%E5%85%A8%E6%8E%92%E5%88%97.rs) |
| 47 | Permutations II | Medium | no | [Rust](Rust/47-%E5%85%A8%E6%8E%92%E5%88%97II.rs) |
| 53 | Maximum Subarray | Medium | [C++](C++/53-Maximun-Subarray.cpp) | no |
| 54 | Spiral Matrix | Medium | no | [Rust](Rust/54-%E8%9E%BA%E6%97%8B%E7%9F%A9%E9%98%B5.rs) |
| 56 | Merge Intervals | Medium | [C++](C++/56-Merge-Intervals.cpp) | no |
| 61 | Rotate List | Medium | [C++](C++/61-Rotate-List.cpp) | no |
| 86 | Partition List | Medium | no | [Rust](Rust/86-%E5%88%86%E5%89%B2%E9%93%BE%E8%A1%A8.rs) |
| 92 | Reverse Linked List II | Medium | no | [Rust](Rust/92-%E5%8F%8D%E8%BD%AC%E9%93%BE%E8%A1%A8II.rs) |
| 93 | Restore IP Addresses | Medium | no | [Rust](Rust/93-%E5%A4%8D%E5%8E%9FIP%E5%9C%B0%E5%9D%80.rs) |
| 96 | Unique Binary Search Trees | Medium | no | [Rust](Rust/96-%E4%B8%8D%E5%90%8C%E7%9A%84%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91.rs) |
| 98 | Validate Binary Search Tree | Medium | no | [Rust](Rust/98-%E9%AA%8C%E8%AF%81%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91.rs) |
| 103 | Binary Tree Zigzag Level Order Traversal | Medium | no | [Rust](Rust/103-二叉树的锯齿形层序遍历.rs) |
| 104 | Maximum Depth of Binary Tree | Easy | no | [Rust](Rust/104-二叉树的最大深度.rs) |
| 112 | Path Sum | Easy | no | [Rust](Rust/112-路经总和.rs) |
| 113 | Path Sum II | Medium | no | [Rust](Rust/113-路经总和II.rs) |
| 143 | Reorder List | Medium | [C++](C++/143-Reorder-List.cpp)| no |
| 148 | Sort List | Medium | [C++](C++/148-Sort-List.cpp) | no |
| 155 | Min Stack | Medium | [C++](C++/155-Min-Stack.cpp) | no |
| 169 | Majority Element | Easy | [C++](C++/169-Majority-Element.cpp) | no |
| 187 | Repeated DNA Sequences | Easy | no | [Rust](Rust/187-重复的DNA序列.rs) |
| 189 | Rotate Array | Medium | [C++](C++/189-Rotate-Array.cpp) | no |
| 200 | Number of Islands | Medium | no | [Rust](Rust/200-%E5%B2%9B%E5%B1%BF%E6%95%B0%E9%87%8F.rs) |
| 207 | Course Schedule | Medium | no | [Rust](Rust/207-课程表.rs) |
| 210 | Course Schedule II | Medium | no | [Rust](Rust/210-课程表II.rs) |
|206| Reverse List | Easy | [C++](C++/206-Reverse-Linked-List.cpp) | no |
| 225 | Implement Stack using Queues | Easy | [C++](C++/225-Implement-Stack_using-Queues.cpp) | no |
| 297 | Serialize and Deserialize Binary Tree | Hard | [C++](C++/297-Serialize-and-Deserialize-Binary-Tree.cpp) | no |
| 395 | Longest Substring with At Least K Repeating Characters | Medium | [C++](C++/395-Longest-Substring-with-At-Least-K-Repeating-Characters.cpp) | no |
| 445 | Add Two Numbers II | Medium | no | [Rust](Rust/445-两数相加-II.rs) |
| 409 | Longest Palindrome | Easy | [C++](C++/409-Longest-Palindrome.cpp) | no |
| 540 | Single Element in a Sorted Array | [C++](C++/540-Single-Element-in-a-Sorted-Array.cpp) | no |
| 739 | Daily Temperatures | Medium | [C++](C++/739-20Daily-Temperatures.cpp) | no |
| 765 | Couples Holding Hands | Hard | no | [Rust](Rust/765-情侣牵手.rs) |
| 815 | Bus Routes | Hard | no | [Rust](Rust/815-公交路线.rs) |
| 876 | Middle of the Linked List | Easy | [C++](C++/876-Middle-of-the-Linked-List.cpp) | no |
| 973 | K Closest Points | Medium | [C++](C++/973-K-Closest-Points.cpp) | no |
| 1254 | Number of Closed Islands | Medium | no | [Rust](Rust/1254-统计封闭岛屿的数目.rs) |
| 1996 | The Number of Weak Characters in the Game | Medium | no | [Rust](Rust/1996-游戏中弱角色的数量.rs)### Acwing
### Array
- 4 Median of Two Sorted Arrays
- 11 Container With Most Water
- 27 Remove Element
- 33 Search in Rotated Sorted Array
- 34 Find First and Last Position of Element in Sorted Array
- 39 combination Sum
- 41 First Missing Positive
- 42 Trapping Rain Water
- 56 Merge Intervals
- 169 Majority Element
- 189 Rotate Array
- 540 Single Element in a Sorted Array### Backtrace
- 39 Combination Sum
- 93 Restore IP Addresses### Binary Search
- 34 Find First and Last Position of Element in Sorted Array
- 540 Single Element in a Sorted Array### Design
- 155 Min Stack
- 225 Implement Stack using Queues
- 297 Serialize and Deserialize Binary Tree### Divide and Conquer
- 395 Longest Substring with At Least K Repeating Characters### Graph
- 200 Number of Islands
- 207 Course Schedule
- 765 Couples Holding Hands
- 815 Bus Routes
- 1254 Number of Closed Islands### Hash Table
- 409 Longest Palindrome### Linked List
- 2 Add Two Numbers
- 19 Remove Nth Node From End of List
- 23 Merge k Sorted Lists
- 25 Reverse Nodes in k-Group
- 61 Rotate List
- 86 Partition List
- 92 Reverse Linked List II
- 143 Reorder List
- 148 Sort List
- 206 Reverse List
- 445 Add Two Numbers II
- 876 Middle of the Linked List### Matrix
- 54 Spiral Matrix### Priority Queue
- 973 K Closet Queue### Stack
- 42 Trapping Rain Water
- 155 Min Stack
- 225 Implement Stack using Queues
- 739 Daily Temperatures### String
- 3 Longest Substring Without Repeating Characters
- 93 Restore IP Addresses
- 187 Repeated DNA Sequences
- 409 Longest Palindrome### Sort
- 56 Merge Intervals
- 148 Sort List
- 1996 The Number of Weak Characters in the Game### Tree
- 96 Unique Binary Search Trees
- 98 Validate Binary Search Tree
- 103 Binary Tree Zigzag Level Order Traversal
- 104 Maximum Depth of Binary Tree
- 112 Path Sum
- 297 Serialize and Deserialize Binary Tree### Two Pointers
- 11 Container With Most Water
- 27 Remove Element
- 395 Longest Substring with At Least K Repeating Characters