Skip to content
Nothing edited this page Feb 27, 2021 · 35 revisions

188. Best Time to Buy and Sell Stock IV

948. Bag of Tokens

1547. Minimum Cost to Cut a Stick

DP:

300. Longest Increasing Subsequence

368. Largest Divisible Subset

516. Longest Palindromic Subsequence

1223. Dice Roll Simulation

1235. Maximum Profit in Job Scheduling

1326. Minimum Number of Taps to Open to Water a Garden

1671. Minimum Number of Removals to Make Mountain Array

1746. Maximum Subarray Sum After One Operation

KMP:

28. Implement strStr()

214. Shortest Palindrome

1668. Maximum Repeating Substring

Stack:

402. Remove K Digits

1673. Find the Most Competitive Subsequence

PriorityQueue:

632. Smallest Range Covering Elements from K Lists

1675. Minimize Deviation in Array

Recursion:

236. Lowest Common Ancestor of a Binary Tree

1676. Lowest Common Ancestor of a Binary Tree IV

Backtracking

1593. Split a String Into the Max Number of Unique Substrings

Union find

1697. Checking Existence of Edge Length Limited Paths

Bit manipulation

421. Maximum XOR of Two Numbers in an Array

1707. Maximum XOR With an Element From Array

Greedy

452. Minimum Number of Arrows to Burst Balloons

646. Maximum Length of Pair Chain

757. Set Intersection Size At Least Two

955. Delete Columns to Make Sorted II

1564. Put Boxes Into the Warehouse I

1717. Maximum Score From Removing Substrings

1749. Maximum Absolute Sum of Any Subarray

LIS(Longest increasing subsequence)

300. Longest Increasing Subsequence

1713. Minimum Operations to Make a Subsequence

Dijkstra's algorithm

882. Reachable Nodes In Subdivided Graph