Skip to content

Latest commit

 

History

History
 
 

残酷刷题

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

残酷刷题群

Problems

排序

    1. The Number of Weak Characters in the Game

Quick Select

    1. K Closest Points to Origin
    1. Top K Frequent Elements

双指针

    1. Minimum Number of Operations to Make Array Continuousg
    1. Max Consecutive Ones III

DP

    1. Minimum Total Space Wasted With K Resizing Operations
    1. Filling Bookcase Shelves
    1. Partition Array for Maximum Sum
    1. Number of Ways to Separate Numbers
    • LCS + 区间 DP
    1. Maximum Earnings From Taxi
    1. Maximum Profit in Job Scheduling
    1. Maximum Number of Events That Can Be Attended II

状态压缩

    1. Minimum Number of Work Sessions to Finish the Tasks
    • 子集遍历
    1. Parallel Courses II
    1. Distribute Repeating Integers
    1. Maximum Product of the Length of Two Palindromic Subsequences
    1. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
    1. People Whose List of Favorite Companies Is Not a Subset of Another List

LIS

    1. Longest Increasing Subsequence
    1. Find the Longest Valid Obstacle Course at Each Position
    1. Minimum Operations to Make a Subsequence
    1. Russian Doll Envelopes
    • w 递增,h 递减排序,在 h 上求 LIS 一定就是答案

背包

    1. Minimize the Difference Between Target and Chosen Elements

subsequence 计数

    1. Distinct Subsequences II
    1. Number of Unique Good Subsequences
    1. The Number of Good Subsets

并查集

    1. Graph Connectivity With Threshold

时光倒流

    1. Last Day Where You Can Still Cross
    1. Bricks Falling When Hit

回文串 (DP / Manacher)

    1. Longest Palindromic Substring
    1. Maximum Product of the Length of Two Palindromic Substrings
    • Manacher + 双指针
    1. Shortest Palindrome

最短路

    1. Number of Ways to Arrive at Destination
    • 最短路 + DP

数学

质数筛

    1. Largest Component Size by Common Factor
    • 质数筛 + DP
    1. GCD Sort of an Array

搜索

    1. Longest Subsequence Repeated k Times

表达式求值

    1. Basic Calculator II
    1. Different Ways to Add Parentheses
    1. 24 Game

Links