leetcode 题解目录 Top Interview Questions 参考题解

LeetCode 题解分类目录。

Index Problem ID Title and Link Difficulty
1 1 Two Sum Easy
2 2 Add Two Numbers Medium
3 3 Longest Substring Without Repeating Characters Medium
4 15 3Sum Medium
5 18 4Sum Medium
6 19 Remove Nth Node From End of List Medium
7 26 Remove Duplicates from Sorted Array Easy
8 27 Remove Element Easy
9 43 Multiply Strings Medium
10 48 Rotate Image Medium
11 53 Maximum Subarray Easy
12 54 Spiral Matrix Medium
13 70 Climbing Stairs Easy
14 75 Sort Colors Medium
15 76 Minimum Window Substring Hard
16 80 Remove Duplicates from Sorted Array II Medium
17 88 Merge Sorted Array Easy
18 101 Symmetric Tree Easy
19 104 Maximum Depth of Binary Tree Easy
20 121 Best Time to Buy and Sell Stock Easy
21 125 Valid Palindrome Easy
22 136 Single Number Easy
23 137 Single Number II Medium
24 141 Linked List Cycle Easy
25 153 Find Minimum in Rotated Sorted Array Medium
26 154 Find Minimum in Rotated Sorted Array II Hard
27 155 Min Stack Easy
28 167 Two Sum II - Input array is sorted Easy
29 198 House Robber Easy
30 202 Happy Number Easy
31 205 Isomorphic Strings Easy
32 206 Reverse Linked List Easy
33 209 Minimum Size Subarray Sum Medium
34 215 Kth Largest Element in an Array Medium
35 225 Implement Stack using Queues Easy
36 232 Implement Queue using Stacks Easy
37 234 Palindrome Linked List Easy
38 240 Search a 2D Matrix II Medium
39 242 Valid Anagram Easy
40 260 Single Number III Medium
41 283 Move Zeroes Easy
42 290 Word Pattern Easy
43 344 Reverse String Easy
44 349 Intersection of Two Arrays Easy
45 350 Intersection of Two Arrays II Easy
46 438 Find All Anagrams in a String Easy
47 451 Sort Characters By Frequency Medium
48 766 Toeplitz Matrix Easy
49 905 Sort Array By Parity Easy
50 994 Rotting Oranges Easy

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

参考题解

  1. MisterBooo/LeetCodeAnimation【49K Stars,大部分是 C++】
  2. azl397985856/leetcode - Github【26.2K Stars,大部分是 JavaScript 和 Python 解法】
  3. haoel/leetcode【12.8K Stars,大部分是 C++ 解法】
  4. soulmachine/leetcode【8.3K Stars,有 Java 和 C++ 两种解法】,直接访问这里:Java 版
  5. grandyang/leetcode - Github【2.7K Stars,大部分是 C++ 解法】
  6. gouthampradhan/leetcode【2.4K Stars,纯 Java 题解】