LeetCode 题解目录
LeetCode 题解分类目录。
全部题解目录
Top Interview Questions
ranking | Problem ID | Title and Link | Difficulty |
---|---|---|---|
1 | 344 | Reverse String | Easy |
2 | 104 | Maximum Depth of Binary Tree | Easy |
3 | 136 | Single Number | Easy |
5 | 206 | Reverse Linked List | Easy |
6 | 283 | Move Zeroes | Easy |
10 | 242 | Valid Anagram | Easy |
18 | 350 | Intersection of Two Arrays II | Easy |
19 | 121 | Best Time to Buy and Sell Stock | Easy |
22 | 202 | Happy Number | Easy |
23 | 70 | Climbing Stairs | Easy |
24 | 1 | Two Sum | Easy |
25 | 53 | Maximum Subarray | Easy |
26 | 101 | Symmetric Tree | Easy |
30 | 198 | House Robber | Easy |
31 | 26 | Remove Duplicates from Sorted Array | Easy |
34 | 155 | Min Stack | Easy |
35 | 141 | Linked List Cycle | Easy |
37 | 234 | Palindrome Linked List | Easy |
38 | 88 | Merge Sorted Array | Easy |
44 | 125 | Valid Palindrome | Easy |
62 | 48 | Rotate Image | Medium |
64 | 215 | Kth Largest Element in an Array | Medium |
73 | 75 | Sort Colors | Medium |
80 | 240 | Search a 2D Matrix II | Medium |
96 | 19 | Remove Nth Node From End of List | Medium |
104 | 2 | Add Two Numbers | Medium |
105 | 54 | Spiral Matrix | Medium |
108 | 3 | Longest Substring Without Repeating Characters | Medium |
115 | 15 | 3Sum | Medium |
136 | 76 | Minimum Window Substring | Hard |
参考题解
- MisterBooo/LeetCodeAnimation【49K Stars,大部分是 C++】
- azl397985856/leetcode - Github【26.2K Stars,大部分是 JavaScript 和 Python 解法】
- haoel/leetcode【12.8K Stars,大部分是 C++ 解法】
- soulmachine/leetcode【8.3K Stars,有 Java 和 C++ 两种解法】,直接访问这里:Java 版
- grandyang/leetcode - Github【2.7K Stars,大部分是 C++ 解法】
- gouthampradhan/leetcode【2.4K Stars,纯 Java 题解】