-
- Maximum Number of Ways to Partition an Array
-
- Sum of Absolute Differences in a Sorted Array
-
- Intervals Between Identical Elements
-
- Rectangle Area II, 二维差分
-
- Stamping the Grid
-
- Corporate Flight Bookings: 差分
-
- Number of Flowers in Full Bloom: 差分
-
- Minimum Moves to Make Array Complementary
-
- The Number of Weak Characters in the Game
-
- Find Original Array From Doubled Array
-
- K Closest Points to Origin
-
- Top K Frequent Elements
-
- Minimum Number of Operations to Make Array Continuousg
-
- Max Consecutive Ones III
-
- Maximize the Confusion of an Exam
-
- Longest Repeating Character Replacement
-
- Binary Subarrays With Sum
-
- Maximum Fruits Harvested After at Most K Steps
-
- Number of Subsequences That Satisfy the Given Sum Condition
-
- Sequentially Ordinal Rank Tracker
-
- Minimum Difference in Sums After Removal of Elements
-
- Minimum Cost to Make at Least One Valid Path in a Grid: 搜索
-
- Path with Maximum Probability
-
- Reachable Nodes In Subdivided Graph: dijkstra
-
- Cheapest Flights Within K Stops: 二维的 dijkstra,有点类似 dp 的思想
-
- Remove Duplicate Letters
-
- Remove K Digits
-
- Trapping Rain Water
-
- Maximum Subarray Min-Product
-
- Minimum Total Space Wasted With K Resizing Operations
-
- Filling Bookcase Shelves
-
- Partition Array for Maximum Sum
-
- Number of Ways to Separate Numbers
- LCS + 区间 DP
-
- Maximum Earnings From Taxi
-
- Maximum Profit in Job Scheduling
-
- Maximum Number of Events That Can Be Attended II
-
- Allocate Mailboxes
- DP + 货仓选址
-
- Count Square Submatrices with All Ones
-
- Count Fertile Pyramids in a Land
-
- Paint House III
- 线性 DP
-
- Count Substrings That Differ by One Character
-
- Minimum Time to Remove All Cars Containing Illegal Goods
-
- Minimum White Tiles After Covering With Carpets
- 数位 DP
-
- Numbers With Repeated Digits
-
- Count Special Integers
-
- Non-negative Integers without Consecutive Ones
-
-
- Minimum Cost to Connect Two Groups of Points
-
- Minimum Number of Work Sessions to Finish the Tasks
- 子集遍历
-
- Parallel Courses II
-
- Distribute Repeating Integers
-
- Maximum Product of the Length of Two Palindromic Subsequences
-
- Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
-
- People Whose List of Favorite Companies Is Not a Subset of Another List
-
- Longest Increasing Subsequence
-
- Find the Longest Valid Obstacle Course at Each Position
-
- Minimum Operations to Make a Subsequence
-
- Russian Doll Envelopes
- w 递增,h 递减排序,在 h 上求 LIS 一定就是答案
-
- Minimize the Difference Between Target and Chosen Elements
-
- Distinct Subsequences II
-
- Number of Unique Good Subsequences
-
- The Number of Good Subsets
-
- Two Best Non-Overlapping Events
-
- Maximum Profit in Job Scheduling
-
- Maximum Number of Events That Can Be Attended II
-
- Sum of Mutated Array Closest to Target
-
- Maximum Value at a Given Index in a Bounded Array
-
- Ugly Number III.js
- 二分 + 容斥原理 + lcm
-
- Sell Diminishing-Valued Colored Balls
-
- Graph Connectivity With Threshold
-
- Find All People With Secret
- 并查集,宽搜都可以做
-
- Groups of Strings
-
- Last Day Where You Can Still Cross
-
- Bricks Falling When Hit
-
- Longest Palindromic Substring
-
- Maximum Product of the Length of Two Palindromic Substrings
- Manacher + 双指针
-
- Shortest Palindrome
-
- Number of Ways to Arrive at Destination
- 最短路 + DP
-
- Largest Component Size by Common Factor
- 质数筛 + DP
-
- GCD Sort of an Array
-
- Count Array Pairs Divisible by K
-
- Longest Subsequence Repeated k Times
-
- Closest Subsequence Sum
- 双向搜索
-
- Second Minimum Time to Reach Destination
-
- Minimum Moves to Move a Box to Their Target Location
- Deque, 只有 0 和 1 两个边权
-
- Escape the Spreading Fire
-
- Detonate the Maximum Bombs
-
- Minimum Jumps to Reach Home
-
- Count Subtrees With Max Distance Between Cities
-
- Course Schedule
-
- Course Schedule II
-
- Find All Possible Recipes from Given Supplies
-
- Minimum Height Trees
- 无向图的拓扑排序
-
- Diameter of Binary Tree
-
- Longest Univalue Path
-
- Binary Tree Maximum Path Sum
-
- Number of Valid Move Combinations On Chessboard
- 非常恶心的一道暴力题,怎么做都能做出来,但是就是题意复杂
-
- Closest Dessert Cost
-
- Basic Calculator II
-
- Different Ways to Add Parentheses
-
- 24 Game
-
- Plates Between Candles
-
- Reverse Linked List
-
- Reverse Linked List II
-
- Reverse Nodes in k-Group
-
- Reverse Nodes in Even Length Groups
-
- Reorder List
-
- Reconstruct Itinerary
-
- Valid Arrangement of Pairs
-
- Lowest Common Ancestor of a Binary Tree
-
- Lowest Common Ancestor of Deepest Leaves
-
- Step-By-Step Directions From a Binary Tree Node to Another
-
- Maximum Employees to Be Invited to a Meeting
-
- Longest Duplicate Substring
- 数据比较强,需要开较大的 Q 取模,只能用 BigInt
-
- Shortest Palindrome
-
- Find Substring With Given Hash Value
-
- Longest Common Subpath
-
- Sum of Scores of Built Strings
- 双哈希,可以把 mod 调小一点,不用 BigInt,JS 的 BigInt 效率还是很慢,很容易超时
-
- Check if a Parentheses String Can Be Valid
-
- Longest Valid Parentheses
-
- Count of Smaller Numbers After Self
-
- Count Good Triplets in an Array
-
- Merge Intervals
-
- The Skyline Problem
-
- Range Module
-
- Longest Substring of One Repeating Character
-
- Booking Concert Tickets in Groups
-
- Maximum White Tiles Covered by a Carpet