Algorithms
Leetcode
-
- 0011 Container With Most Water
- 0041 First Missing Positive
- 0045 Jump Game II
- 0048 Rotate Image
- 0054 Spiral Matrix
- 0059 Spiral Matrix II
- 0066 Plus One
- 0073 Set Matrix Zeroes
- 0088 Merge Sorted Array
- 0118 Pascal’s Triangle
- 0169 Majority Element
- 0189 Rotate Array
- 0215 Kth Largest Element in an Array
- 0217 Contains Duplicate
- 0238 Product of Array Except Self
- 0289 Game of Life
- 0334 Increasing Triplet Subsequence
- 0419 Battleships in a Board
- 0448 Find All Numbers Disappeared in an Array
- 0581 Shortest Unsorted Continuous Subarray
- 0665 Non-decreasing Array
-
- 0022 Generate Parentheses
- 0031 Next Permutation
- 0039 Combination Sum
- 0040 Combination Sum II
- 0046 Permutations
- 0047 Permutations II
- 0051 N-Queens
- 0052 N-Queens II
- 0077 Combinations
- 0078 Subsets
- 0079 Word Search
- 0090 Subsets II
- 0131 Palindrome Partitioning
- 0140 Word Break II
- 0216 Combination Sum III
- 0377 Combination Sum IV
-
- 0033 Search in Rotated Sorted Array
- 0034 Find First and Last Position of Element in Sorted Array
- 0035 Search Insert Position
- 0050 Pow(x, n)
- 0069 Sqrt(x)
- 0124 Binary Tree Maximum Path Sum
- 0162 Find Peak Element
- 0278 First Bad Version
- 0349 Intersection of Two Arrays
- 0378 Kth Smallest Element in a Sorted Matrix
- 0454 4Sum II
- 0875 Koko Eating Bananas
- 1011 Capacity To Ship Packages Within D Days
-
- 0005 Longest Palindromic Substring
- 0010 Regular Expression Matching
- 0032 Longest Valid Parentheses
- 0062 Unique Paths
- 0063 Unique Paths II
- 0064 Minimum Path Sum
- 0070 Climbing Stairs
- 0072 Edit Distance
- 0082 Remove Duplicates from Sorted List II
- 0091 Decode Ways
- 0095 Unique Binary Search Trees II
- 0139 Word Break
- 0152 Maximum Product Subarray
- 0198 House Robber
- 0224 Shortest Palindrome
- 0279 Perfect Squares
- 0300 Longest Increasing Subsequence
- 0309 Best Time to Buy and Sell Stock with Cooldown
- 0312 Burst Balloons
- 0322 Coin Change
- 0416 Partition Equal Subset Sum
- 0494 Target Sum
- 0647 Palindromic Substrings
- 1143 Longest Common Subsequence
-
- 0021 Merge Two Sorted Lists
- 0023 Merge k Sorted Lists
- 0024 Swap Nodes in Pairs
- 0025 Reverse Nodes in k-Group
- 0061 Rotate List
- 0083 Remove Duplicates from Sorted List
- 0138 Copy List with Random Pointer
- 0141 Linked List Cycle
- 0142 Linked List Cycle II
- 0160 Intersection of Two Linked Lists
- 0203 Remove Linked List Elements
- 0206 Reverse Linked List
- 0234 Palindrome Linked List
- 0237 Delete Node in a Linked List
- 0328 Odd Even Linked List
- 0350 Intersection of Two Arrays II
- 0371 Sum of Two Integers
-
- 0006 ZigZag Conversion
- 0008 String to Integer (atoi)
- 0009 Palindrome Number
- 0012 Integer to Roman
- 0013 Roman to Integer
- 0014 Longest Common Prefix
- 0017 Letter Combinations of a Phone Number
- 0038 Count and Say
- 0043 Multiply Strings
- 0214 Shortest Palindrome
- 0227 Basic Calculator II
- 0344 Reverse String
- 0395 Longest Substring with At Least K Repeating Characters
- 0412 Fizz Buzz
- 0557 Reverse Words in a String III
-
- 0094 Binary Tree Inorder Traversal
- 0100 Same Tree
- 0101 Symmetric Tree
- 0102 Binary Tree Level Order Traversal
- 0103 Binary Tree Zigzag Level Order Traversal
- 0116 Populating Next Right Pointers in Each Node
- 0226 Invert Binary Tree
- 0236 Lowest Common Ancestor of a Binary Tree
- 0297 Serialize and Deserialize Binary Tree
- 0437 Path Sum III
- 0543 Diameter of Binary Tree
- 0617 Merge Two Binary Trees
References
- https://cspiration.com/leetcodeClassification#10301
- https://zhuanlan.zhihu.com/p/57859240
- https://leetcode-book.guazidou.com/content/string/reverse-words-in-a-string
- https://github.com/guazidou/LeetCode-Solution-From-GuaZiDou
- https://rahulravindran0108.gitbooks.io/leetcode-gitbook/design/data_stream_disjoint_interval.html
- https://github.com/rahulravindran0108/algos-gitbook
- https://www.cnblogs.com/MrTao/p/7199961.html
- https://www.cnblogs.com/panpanwelcome/p/5978526.html