Code List

Star & Fork it!

Gentle reminder: Don't be fooled by the ads!

Backtracking

Code Difficulty Title Video
17 Medium Letter Combinations of a Phone Number English
37 Hard Sudoku Solver English / Chinese
39 Medium Combination Sum English / Chinese
40 Medium Combination Sum II English / Chinese
46 Medium Permutations English / Chinese
47 Medium Permutations II English / Chinese
51 Hard N Queens English / Chinese
78 Medium Subsets English / Chinese
79 Medium Word Search English / Chinese
90 Medium Subsets II English / Chinese
93 Medium Restore IP Addresses English / Chinese
131 Medium Palindrome Partitioning English / Chinese
140 Hard Word Break II English / Chinese
211 Medium Add and Search Word - Data structure design English
212 Hard Word Search II English
224 Medium Basic Calculator 1,2,3 English / Chinese
282 Hard Expression Add Operators English / Chinese
267 Medium Palindrome Permutation II English / Chinese
416 Medium Partition Equal Subset Sum English / Chinese
473 Medium Matchsticks to Square English / Chinese
638 Medium Shopping Offers English / Chinese
679 Hard 24 Game English / Chinese
736 Hard Parse Lisp Expression English / Chinese
842 Medium Split Array into Fibonacci Sequence English / Chinese
1087 Medium Brace Expansion English / Chinese
1106 Hard Parsing A Boolean Expression English / Chinese

Graph

Code Difficulty Title Video
94 Medium Binary Tree Inorder Traversal English / Chinese
124 Hard Binary Tree Maximum Path Sum English / Chinese
126 Hard Word Ladder II English / Chinese
130 Medium Surrounded Regions English / Chinese
144 Medium Binary Tree Preorder Traversal English / Chinese
145 Hard Binary Tree Postorder Traversal English / Chinese
210 Medium Course Schedule II English / Chinese
235 Easy Lowest Common Ancestor of a Binary Search Tree English / Chinese
236 Medium Lowest Common Ancestor of a Binary Tree English / Chinese
269 Hard Alien Dictionary English / Chinese
297 Hard Serialize and Deserialize Binary Tree English / Chinese
314 Medium Binary Tree Vertical Order Traversal English
317 Hard Shortest Distance from All Buildings English / Chinese
332 Medium Reconstruct Itinerary English / Chinese
365 Medium Water and Jug Problem English / Chinese
399 Hard Evaluate Division Chinese
407 Hard Trapping Rain Water II English / Chinese
417 Medium Pacific Atlantic Water Flow English / Chinese
465 Hard Optimal Account Balancing English / Chinese
684 Medium Redundant Connection English / Chinese
685 Hard Redundant Connection II English / Chinese
721 Medium Accounts Merge English
778 Hard Swim in Rising Water English / Chinese
785 Medium Is Graph Bipartite? English
787 Medium Cheapest Flights Within K Stops English / Chinese
797 Medium All Paths From Source to Target English / Chinese
834 Hard Sum of Distances in Tree English / Chinese
839 Hard Similar String Groups English / Chinese
864 Hard Shortest Path to Get All Keys English / Chinese
909 Medium Snakes and Ladders English / Chinese
924 Hard Minimize Malware Spread English / Chinese
928 Hard Minimize Malware Spread II English / Chinese
947 Medium Most Stones Removed with Same Row or Column English
959 Medium Regions Cut By Slashes English / Chinese
1036 Hard Escape a Large Maze English / Chinese
1059 Medium All Paths from Source Lead to Destination English / Chinese
1096 Hard Brace Expansion II English / Chinese
1110 Medium Delete Nodes And Return Forest English / Chinese
1129 Medium Shortest Path with Alternating Colors English / Chinese
1168 Hard Optimize Water Distribution in a Village English / Chinese
1192 Hard Critical Connections in a Network English / Chinese
1293 Hard Shortest Path in a Grid with Obstacles Elimination English / Chinese
1928 Hard Minimum Cost to Reach Destination in Time English / Chinese
2421 Hard Number of Good Paths English / Chinese

Dynamic Programming

Code Difficulty Title Video
3 Medium Longest Substring Without Repeating Characters English / Chinese
5 Medium Longest Palindromic Substring English / Chinese
10 Hard Regular Expression English / Chinese
72 Hard Edit Distance English / Chinese
115 Hard Distinct Subsequences English / Chinese
120 Medium Triangle English / Chinese
132 Hard Palindrome Partitioning II English / Chinese
139 Medium Word Break English / Chinese
174 Hard Dungeon Game English / Chinese
221 Medium Maximal Square English / Chinese
264 Medium 264. Ugly Number II English / Chinese
279 Medium Perfect Squares English
300 Medium Longest Increasing Subsequence English / Chinese
312 Hard Burst Balloons English / Chinese
322 Medium Coin Change English / Chinese
325 Medium Maximum Size Subarray Sum Equals k English
329 Hard Longest Increasing Path in a Matrix English / Chinese
361 Medium Bomb Enemy English / Chinese
403 Hard Frog Jump English / Chinese
446 Hard Arithmetic Slices II - Subsequence English / Chinese
472 Hard Concatenated Words English / Chinese
516 Medium Longest Palindromic Subsequence English / Chinese
518 Medium Coin Change 2 English / Chinese
523 Medium Continuous Subarray Sum English / Chinese
552 Hard 552. Student Attendance Record II English / Chinese
689 Hard Maximum Sum of 3 Non-Overlapping Subarrays English / Chinese
730 Hard Count Different Palindromic Subsequences English / Chinese
920 Hard Number of Music Playlists English / Chinese
943 Hard Find the Shortest Superstring English / Chinese
956 Hard Tallest Billboard English / Chinese
968 Hard Binary Tree Cameras English / Chinese
975 Hard Odd Even Jump English / Chinese
979 Medium Distribute Coins in Binary Tree English / Chinese
1027 Medium Longest Arithmetic Sequence English / Chinese
1048 Medium Longest String Chain English / Chinese
1066 Medium Campus Bikes II English / Chinese
1074 Medium Number of Submatrices That Sum to Target English / Chinese
1105 Medium Filling Bookcase Shelves English / Chinese
1155 Medium Number of Dice Rolls With Target Sum English / Chinese
1139 Medium Largest 1-Bordered Square English / Chinese
1143 Medium Longest Common Subsequence English / Chinese
1277 Medium Count Square Submatrices with All Ones English / Chinese
1335 Hard Minimum Difficulty of a Job Schedule English / Chinese
1494 Hard Parallel Courses II English / Chinese

Stack

Code Difficulty Title Video
42 Hard Trapping Rain Water English / Chinese
84 Hard Largest Rectangle in Histogram English / Chinese
85 Hard Maximal Rectangle English / Chinese
394 Medium Decode String English / Chinese
430 Medium Flatten a Multilevel Doubly Linked List English
496 Easy Next Greater Element I English / Chinese
1209 Medium Remove All Adjacent Duplicates in String II English / Chinese
1723 Hard Find Minimum Time to Finish All Jobs English / Chinese

Design

Code Difficulty Title Video
146 Medium LRU Cache English / Chinese
460 Hard LFU Cache English / Chinese
642 Hard Design Search Autocomplete Search English / Chinese
1146 Medium Snapshot Array English / Chinese

Others

Code Difficulty Title Video
121 Easy Best Time to Buy and Sell Stock English / Chinese
122 Medium Best Time to Buy and Sell Stock II English / Chinese
123 Hard Best Time to Buy and Sell Stock III English / Chinese
188 Hard Best Time to Buy and Sell Stock IV English / Chinese
309 Medium Best Time to Buy and Sell Stock with Cooldown English / Chinese
714 Medium Best Time to Buy and Sell Stock with Transaction Fee English / Chinese
15 Medium 3Sum English / Chinese
28 Easy Implement strStr() English / Chinese
29 Medium Divide Two Integers English / Chinese
31 Medium Next Permutation English / Chinese
33 Medium Search in Rotated Sorted Array English / Chinese
34 Medium Find First and Last Position of Element in Sorted Array English / Chinese
43 Medium Multiply String English / Chinese
50 Medium Pow(x, n) English / Chinese
56 Medium Merge Interval English
57 Hard Insert Interval English
65 Hard Valid Number English
68 Hard Text Justification English / Chinese
74 Medium Search a 2D Matrix English / Chinese
76 Hard Minimum Window Substring English
81 Medium Search in Rotated Sorted Array II English / Chinese
149 Hard Max Points on a Line English / Chinese
153 Medium Find Minimum in Rotated Sorted Array English / Chinese
154 Medium Find Minimum in Rotated Sorted Array II English / Chinese
158 Medium Read N Characters Given Read4 II - Call multiple times English
163 Medium Missing Ranges English / Chinese
149 Easy Majority Element English / Chinese
218 Hard The Skyline Problem English / Chinese
229 Medium Majority Element II English / Chinese
233 Hard Number of Digit One English / Chinese
238 Medium Product of Array Except Self English
273 Hard Integer to English Words English
278 Easy First Bad Version English / Chinese
289 Medium Game of Life English / Chinese
295 Hard Find Median from Data Stream English / Chinese
301 Hard Remove Invalid Parentheses English / Chinese
307 Medium Range Sum Query - Mutable English / Chinese
315 Hard Count of Smaller Numbers After Self English / Chinese
316 Hard Remove Duplicate Letters English / Chinese
327 Hard Count of Range Sum English / Chinese
336 Hard Palindrome Pairs English / Chinese
354 Hard Russian Doll Envelopes English
358 Hard Rearrange String k Distance Apart English / Chinese
383 Easy Ransom Note English / Chinese
398 Medium Random Pick Index English / Chinese
410 Hard Split Array Largest Sum English / Chinese
440 Hard K-th Smallest in Lexicographical Order English / Chinese
443 Medium String Compression English
476 Easy Number Complement English / Chinese
493 Hard Reverse Pairs English / Chinese
529 Medium Minesweeper English / Chinese
592 Medium Fraction Addition and Subtraction None
683 Hard K Empty Slots English / Chinese
686 Medium 686. Repeated String Match English / Chinese
708 Medium Insert into a Cyclic Sorted List English / Chinese
729 Medium My Calendar I English / Chinese
731 Medium My Calendar II English / Chinese
732 Medium My Calendar III English / Chinese
771 Easy Jewels and Stones English / Chinese
833 Medium Find And Replace in String English / Chinese
862 Hard Shortest Subarray with Sum at Least K English / Chinese
875 Medium Koko Eating Bananas English / Chinese
894 Medium All Possible Full Binary Trees English / Chinese
899 Hard Orderly Queue English / Chinese
918 Medium Maximum Sum Circular Subarray English / Chinese
963 Medium Minimum Area Rectangle II English / Chinese
984 Medium String Without AAA or BBB English / Chinese
1004 Medium Max Consecutive Ones III English / Chinese
1057 Medium Campus Bikes English / Chinese
1218 Medium Longest Arithmetic Subsequence of Given Difference English / Chinese
1224 Hard Maximum Equal Frequency English / Chinese
1268 Medium Search Suggestions System English / Chinese
1488 Medium Avoid Flood in The City English / Chinese