- Add Two Numbers: LinkedList with maths
- Longest Substring Without Repeating Characters: SW with O(n^2)
- Longest Palindromic Substring: DP with O(n^2) in reverse order
- Reverse Integer: overflow & conversion of type
- 3Sum: search without duplicate number
- Remove Nth Node From End of List: LinkedList with DummyHead
- Valid Parentheses: stack
- Merge Two Sorted Lists: LinkedList Iteration & Recursion
- Next Permutation: regularity
- Jump Game II: GR with dynamic loop
- Power(x, n): Maths with quick power O(logn)
- Maximum Subarray: DP & GR with O(n)
- Jump Game: GR with dynamic loop
- Minimum Path Sum: DP with O(n^2)
- Plus One: Maths with O(n)
- Add Binary: Maths with XOR O(n)
- Validate Binary Search Tree: BST & RC
- Symmetric Tree: BT & RC
- Binary Tree Level Order Traversal: BT & queue
- Maximum Depth of Binary Tree: BT & RC & queue
- Convert Sorted Array to Binary Search Tree: BST & RC
- Minimum Depth of Binary Tree: BT & RC & queue
- Distinct Subsequences: hard DP with O(n^2) & overflow
- Triangle: DP with O(n^2)
- Best Time to Buy and Sell Stock: DP with O(n) in different states
- Best Time to Buy and Sell Stock II
- Best Time to Buy and Sell Stock III
- Linked List Cycle: LinkedList with DoublePointer
- Maximum Product Subarray: 2 DP with O(n)
- Min Stack: Design
- Factorial Trailing Zeroes: Maths with O(logn)
- Best Time to Buy and Sell Stock IV: DP
- Reverse Bits: bit
- House Robber: DP with O(n)
- Count Primes: Maths with Eratosthenes O(nloglogn)
- Reverse Linked List: LinkedList with DummyHead & Stack & DoublePointer
- Palindrome Linked List: LinkedList with vector & DoublePointer
- Longest Increasing Subsequence: DP with O(n^2)
- Best Time to Buy and Sell Stock with Cooldown: DP
- Bulb Switcher: maths with square number O(n)
- Coin Change: DP with O(n^2)
- Water and Jug Problem: DFS & Bézout
- Wiggle Subsequence: 2 DP & GR with O(n)
- Shuffle an Array: Design
- Partition Equal Subset Sum: DP with O(n^2) in reverse order
- Coin Change II: DP with O(n^2)
- Out of Boundary Paths: DP with O(n^3)
- Shortest Unsorted Continuous Subarray: sort with O(n)
- Binary Search: BS
- Maximum Length of Repeated Subarray: DP with O(n^2)
- Minimum Falling Path Sum: DP with O(n^2)
- Minimum Falling Path Sum II: hard DP with O(n^2)
- Number of Paths with Max Score: hard DP with O(n^2)
- Count All Possible Routes: MS (DP & DFS) & hard DP with O(n^3)
- Construct the Longest New String : MS & DFS & Math wuth O(1)
-
Notifications
You must be signed in to change notification settings - Fork 0
Algorithms on Leetcode
qijiaqi/Algorithme
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Algorithms on Leetcode
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published