[go: up one dir, main page]

0% found this document useful (0 votes)
176 views96 pages

Problem Topic

final_deduplicated_dsa_questions

Uploaded by

jelevo4404
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views96 pages

Problem Topic

final_deduplicated_dsa_questions

Uploaded by

jelevo4404
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 96

Problem Topic

Alternating Groups I Array

Alternating Groups II Array

Count the Number of Houses at a Certain Distance II Array

Ant on the Boundary Array

Apply Operations to an Array Array

Apply Operations to Make String Empty Array

Find the Number of Ways to Place People II Array

Buy Two Chocolates Array

Average Waiting Time Array

Check if Array Is Sorted and Rotated Array

Check if Grid can be Cut into Sections Array

Handling Sum Queries After Update Array

Count of Matches in Tournament Array

Count the Number of Consistent Strings Array

Contiguous Array Array

Making A Large Island Array

Find Common Characters Array

Count Mentions Per User Array

Find the Array Concatenation Value Array

Count Servers that Communicate Array

Maximum Subarray Sum With Length Divisible by K Array

Find the Integer Added to Array I Array

Count Submatrices with Top-Left Element and Sum Less Than k Array

Minimum Cost to Make at Least One Valid Path in a Grid Array

Fruits Into Baskets II Array


Count Total Number of Colored Cells Array

Number of Submatrices That Sum to Target Array

Height Checker Array

Count the Number of Special Characters II Array

Smallest Range II Array

Longest Strictly Increasing or Strictly Decreasing Subarray Array

Lucky Numbers in a Matrix Array

Design a Food Rating System Array

Substring XOR Queries Array

Maximum Ascending Subarray Sum Array

Maximum Difference by Remapping a Digit Array

Diagonal Traverse II Array

Maximum Odd Binary Number Array

Divide Array in Sets of K Consecutive Numbers Array

Merge Two 2D Arrays by Summing Values Array

Minimum Time Visiting All Points Array

Find The First Player to win K Games in a Row Array

Path Crossing Array

Find the Grid of Region Average Array

Relative Sort Array Array

Find the Integer Added to Array II Array

Special Array I Array

Find the Prefix Common Array of Two Arrays Array

Special Positions in a Binary Matrix Array

Squares of a Sorted Array Array

Grid Game Array


Two Sum Array

Largest Submatrix With Rearrangements Array

Valid Word Array

Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Array

Make Lexicographically Smallest Array by Swapping Elements Array

Map of Highest Peak Array

Max Chunks To Make Sorted Array

Maximum Absolute Sum of Any Subarray Array

Maximum Number of Fish in a Grid Array

Minimum Cost to Make Arrays Identical Array

Minimum Impossible OR Array

Minimum Levels to Gain More Points Array

Minimum Operations to Write the Letter Y on a Grid Array

Number of Sub-arrays With Odd Sum Array

Partitioning Into Minimum Number Of Deci-Binary Numbers Array

Product of Array Except Self Array

Product of the Last K Numbers Array

Remove Duplicates from Sorted Array II Array

Remove Zero Sum Consecutive Nodes from Linked List Array

Reschedule Meetings for Maximum Free Time II Array

Shortest Uncommon Substring in an Array Array

Sort Characters By Frequency Array

Special Array II Array

Spiral Matrix Array

Spiral Matrix II Array

Squirrel Simulation Array


Stone Game VI Array

Subarray Sums Divisible by K Array

Sum of Absolute Differences in a Sorted Array Array

Sum of Digit Differences of All Pairs Array

Tuple with Same Product Array

Water Bottles II Array

Isomorphic Strings HashMap

Assign Elements to Groups with Constraints HashMap

First Missing Positive HashMap

Majority Element HashMap

Construct K Palindrome Strings HashMap

Minimum Common Value HashMap

Continuous Subarray Sum HashMap

Missing Number HashMap

Convert an Array Into a 2D Array With Conditions HashMap

Count Alternating Subarrays HashMap

Count Number of Bad Pairs HashMap

Custom Sort String HashMap

Design Underground System HashMap

Design a Number Container System HashMap

Equal Row and Column Pairs HashMap

Find All Duplicates in an Array HashMap

Find Longest Special Substring That Occurs Thrice II HashMap

Find the Maximum Number of Elements in Subset HashMap

Find the Number of Distinct Colors Among the Balls HashMap

First Completely Painted Row or Column HashMap


Flip Columns For Maximum Number of Equal Rows HashMap

Group Anagrams HashMap

Identify the Largest Outlier in an Array HashMap

Least Number of Unique Integers after K Removals HashMap

Max Sum of a Pair With Equal Sum of Digits HashMap

Maximum Good Subarray Sum HashMap

Maximum Manhattan Distance After K Changes HashMap

Minimum Length of String After Operations HashMap

Optimal Partition of String HashMap

Rearrange K Substrings to Form Target String HashMap

Unique Length-3 Palindromic Subsequences HashMap

Check If a Word Occurs As a Prefix of Any Word in a Sentence Two Pointers

Adding Spaces to a String Two Pointers

Clear Digits Two Pointers

Append Characters to String to Make Subsequence Two Pointers

Find the Pivot Integer Two Pointers

Maximum Score After Splitting a String Two Pointers

Build an Array With Stack Operations Two Pointers

Count Subarrays Where Max Element Appears at Least K Times Two Pointers

Count Unguarded Cells in the Grid Two Pointers

Count of Substrings Containing Every Vowel and K Consonants II Two Pointers

Length of Longest Subarray With at Most K Frequency Two Pointers

Make String a Subsequence Using Cyclic Increments Two Pointers

Maximize Greatness of an Array Two Pointers

Minimum Length of String After Deleting Similar Ends Two Pointers

Move Pieces to Obtain a String Two Pointers


Number of Substrings Containing All Three Characters Two Pointers

Number of Zero-Filled Subarrays Two Pointers

Partition Array According to Given Pivot Two Pointers

Rotating the Box Two Pointers

Subarray Product Less Than K Two Pointers

Zero Array Transformation II Two Pointers

Defuse the Bomb Sliding Window

Count Number of Nice Subarrays Sliding Window

Maximum Sum of 3 Non-Overlapping Subarrays Sliding Window

Minimum Recolors to Get K Consecutive Black Blocks Sliding Window

Frequency of the Most Frequent Element Sliding Window

Get Equal Substrings Within Budget Sliding Window

Minimum Window Substring Sliding Window

Grumpy Bookstore Owner Sliding Window

Subarrays with K Different Integers Sliding Window

Longest Substring Without Repeating Characters Sliding Window

Maximize the Confusion of an Exam Sliding Window

Maximum Beauty of an Array After Applying Operation Sliding Window

Maximum Number of Vowels in a Substring of Given Length Sliding Window

Reschedule Meetings for Maximum Free Time I Sliding Window

Sequential Digits Sliding Window

Shortest Subarray With OR at Least K II Sliding Window

Check If Two String Arrays are Equivalent String

Compare Version Numbers String

Minimum Time to Revert Word to Initial State II String

Check if One String Swap Can Make Strings Equal String


Count Number of Homogenous Substrings String

Count the Number of Special Characters I String

Count Vowel Strings in Ranges String

Number of Subarrays That Match a Pattern II String

Largest 3-Same-Digit Number in String String

Lexicographically Smallest String After Operations With Constraint String

Minimum Number of Operations to Make Elements in Array Distinct String

String Matching in an Array String

Maximum Palindromes After Operations String

Minimum Number of Operations to Move All Balls to Each Box String

Number of Ways to Split Array String

Remove All Occurrences of a Substring String

Shifting Letters II String

Sort Vowels in a String String

Word Subsets String

Crawler Log Folder Stack

Asteroid Collision Stack

Find the Number of Subarrays Where Boundary Elements Are Maximum Stack

Final Prices with a Special Discount in a Shop Stack

Check if a Parentheses String Can Be Valid Stack

Implement Queue using Stacks Stack

Daily Temperatures Stack

Maximal Rectangle Stack

Maximum Nesting Depth of the Parentheses Stack

Number of Students Unable to Eat Lunch Stack

Design Browser History Stack


Number of Atoms Stack

Valid Parentheses Stack

Evaluate Reverse Polish Notation Stack

Maximum Score from Removing Substrings Stack

Recover a Tree From Preorder Traversal Stack

Minimum Remove to Make Valid Parentheses Stack

Robot Collisions Stack

Remove Duplicate Letters Stack

Remove K Digits Stack

Reverse Substrings Between Each Pair of Parentheses Stack

Simplify Path Stack

Valid Parentheses String Stack

Validate Stack Sequences Stack

Time Needed to Buy Tickets Queues

Continuous Subarrays Queues

Find Building Where Alice and Bob Can Meet Queues

Dota2 Senate Queues

Shortest Subarray with Sum at Least K Queues

Find the Power of K-Size Subarrays Queues

Find the Winner of the Circular Game Queues

Sliding Window Maximum Queues

Minimum Operations to Exceed Threshold Value II Queues

Trapping Rain Water II Queues

Reveal Cards In Increasing Order Queues

Calculate Money in Leetcode Bank Math and Number Theory

Alice and Bob Playing Flower Game Math and Number Theory
Check If Digits Are Equal in String After Operations II Math and Number Theory

Can Make Arithmetic Progression From Sequence Math and Number Theory

Check If Digits Are Equal in String After Operations I Math and Number Theory

Apply Operations to Make Sum of Array Greater Than or Equal to k Math and Number Theory

Count All Valid Pickup and Delivery Options Math and Number Theory

Find the Child Who Has the Ball After K Seconds Math and Number Theory

Arithmetic Subarrays Math and Number Theory

Pass the Pillow Math and Number Theory

Bulb Switcher Math and Number Theory

Count Connected Components in LCM Graph Math and Number Theory

Split With Minimum Sum Math and Number Theory

Type of Triangle II Math and Number Theory

Campus Bikes Math and Number Theory

Count the Number of Arrays with K Matching Adjacent Elements Math and Number Theory

Water Bottles Math and Number Theory

Count Pairs That Form a Complete Day II Math and Number Theory

Widest Vertical Area Between Two Points Containing No Points Math and Number Theory

Count Pairs of Connectable Servers in a Weighted Tree Network Math and Number Theory

Find the Number of Ways to Place People Math and Number Theory

Count Special Subsequences Math and Number Theory

Find the Sum of the Power of All Subsequences Math and Number Theory

Count Substrings Starting and Ending with Given Character Math and Number Theory

Count Unreachable Pairs of Nodes in an Undirected Graph Math and Number Theory

Greatest Common Divisor Traversal Math and Number Theory

Determine if a Cell Is Reachable at a Given Time II Math and Number Theory

Kth Smallest Amount With Single Denomination Combination Math and Number Theory
Detonate the Maximum Bombs Math and Number Theory

Manhattan Distances of All Arrangements of Pieces Math and Number Theory

Digit Operations to Make Two Integers Equal Math and Number Theory

Find Unique Binary String Math and Number Theory

Maximum Strength of K Disjoint Subarrays Math and Number Theory

Find the Largest Area of Square Inside Two Rectangles Math and Number Theory

Minimize Manhattan Distances Math and Number Theory

Find the Number of Copy Arrays Math and Number Theory

Minimum Cost to Equalize Array Math and Number Theory

Find the Number of Good Pairs II Math and Number Theory

Minimum One Bit Operations to Make Integers Zero Math and Number Theory

Knight Probability in Chessboard Math and Number Theory

Letter Tile Possibilities Math and Number Theory

Minimum Sum of Values by Dividing Array Math and Number Theory

Maximum Element After Decreasing and Rearranging Math and Number Theory

Number of Ways to Divide a Long Corridor Math and Number Theory

Maximum Prime Difference Math and Number Theory

Number of Ways to Reorder Array to Get Same BST Math and Number Theory

Maximum Value at a Given Index in a Bounded Array Math and Number Theory

Patching Array Math and Number Theory

Maximum and Minimum Sums of at Most Size K Subsequences Math and Number Theory

Minimum Length of Anagram Concatenation Math and Number Theory

Split the Array to Make Coprime Products Math and Number Theory

Minimum Moves to Spread Stones Over Grid II Math and Number Theory

Minimum Operations to Make Median of Array Equal to K Math and Number Theory

Minimum Time to Break Locks I Math and Number Theory


New 21 Game Math and Number Theory

Perfect Squares Math and Number Theory

Prime Subtraction Operation Math and Number Theory

Right Triangles Math and Number Theory

Soup Servings Math and Number Theory

Sum of Square Numbers Math and Number Theory

The kth Factor of n Math and Number Theory

Bitwise AND of Numbers Range Bit Manipulation

CF Round 672 Div 2 Rock and Lever Bit Manipulation

Find the Maximum Sum of Node Values Bit Manipulation

Lucky Numbers Bit Manipulation

Count Triplets That Can Form Two Arrays of Equal XOR Bit Manipulation

Number of 1 Bits Bit Manipulation

on-empty subset in an array of N integers such that the sum of elements of the subsetBit
is divisible
Manipulation
by N

Maximum Score Words Formed by Letters Bit Manipulation

Power of Two Bit Manipulation

Sum of All Subset XOR Totals Bit Manipulation

Find the Duplicate Number Bit Manipulation

Maximum Total Reward Using Operations II Bit Manipulation

Maximum Length of Concatenated String with Unique Characters Bit Manipulation

Minimum Cost Walk in Weighted Graph Bit Manipulation

Maximum Number That Sum of the Prices Is Less Than or Equal to K Bit Manipulation

Minimum Increments for Target Multiples in an Array Bit Manipulation

Minimize XOR Bit Manipulation

Minimum Number of K Consecutive Bit Flips Bit Manipulation

Minimum Array End Bit Manipulation


Number of Subarrays With AND Value of K Bit Manipulation

Minimum Flips to Make a OR b Equal to c Bit Manipulation

Partition Array Into Two Arrays to Minimize Sum Difference Bit Manipulation

Minimum Operations to Make Binary Array Elements Equal to One Bit Manipulation

Minimum Operations to Make Binary Array Elements Equal to One II Bit Manipulation

Shortest Path to Get All Keys Bit Manipulation

Minimum Operations to Reduce an Integer to 0 Bit Manipulation

Neighboring Bitwise XOR Bit Manipulation

Number of Wonderful Substrings Bit Manipulation

Pseudo-Palindromic Paths in a Binary Tree Bit Manipulation

Score After Flipping Matrix Bit Manipulation

Single Number II Bit Manipulation

Binary Search Binary Search

Earliest Second to Mark Indices I Binary Search

Find Beautiful Indices in the Given Array II Binary Search

Element Appearing More Than 25% In Sorted Array Binary Search

Intersection of Two Arrays Binary Search

Find Beautiful Indices in the Given Array I Binary Search

Find Subarray With Bitwise OR Closest to K Binary Search

Special Array With X Elements Greater Than or Equal X Binary Search

Find the Safest Path in a Grid Binary Search

Furthest Building You Can Reach Binary Search

Maximum Profit in Job Scheduling Binary Search

House Robber IV Binary Search

Maximum Running Time of N Computers Binary Search

K-th Smallest Prime Fraction Binary Search


Median of Two Sorted Arrays Binary Search

Koko Eating Bananas Binary Search

Minimum Cost to Make Array Equal Binary Search

Kth Smallest Element in a Sorted Matrix Binary Search

Magnetic Force Between Two Balls Binary Search

Smallest Substring With Identical Characters I Binary Search

Maximum Number of Alloys Binary Search

Maximum Number of Integers to Choose From a Range I Binary Search

Maximum Points Inside the Square Binary Search

Maximum Total Damage With Spell Casting Binary Search

Minimize Maximum of Array Binary Search

Minimized Maximum of Products Distributed to Any Store Binary Search

Minimum Limit of Balls in a Bag Binary Search

Minimum Number of Days to Make m Bouquets Binary Search

Minimum Operations to Make All Array Elements Equal Binary Search

Minimum Time to Complete Trips Binary Search

Minimum Time to Repair Cars Binary Search

Most Beautiful Item for Each Query Binary Search

Most Profit Assigning Work Binary Search

Search a 2D Matrix Binary Search

Separate Squares I Binary Search

Shortest Subarray to be Removed to Make Array Sorted Binary Search

Smallest Substring With Identical Characters Binary Search

Snapshot Array Binary Search

Successful Pairs of Spells and Potions Binary Search

Take K of Each Character From Left and Right Binary Search


Two Best Non-Overlapping Events Binary Search

Merge Two Sorted Lists Linked List

Add Two Numbers Linked List

Reverse Linked List Linked List

Convert Sorted List to Binary Search Tree Linked List

Copy List with Random Pointer Linked List

Delete Node in a Linked List Linked List

Double a Number Represented as a Linked List Linked List

Find the Minimum and Maximum Number of Nodes Between Critical Points Linked List

LRU Cache Linked List

Linked List Cycle II Linked List

Linked List Random Node Linked List

Maximum Twin Sum of a Linked List Linked List

Merge In Between Linked Lists Linked List

Merge Nodes in Between Zeros Linked List

Remove Nodes From Linked List Linked List

Remove Nth Node From End of List Linked List

Reorder List Linked List

Split Linked List in Parts Linked List

Swap Nodes in Pairs Linked List

Evaluate Boolean Binary Tree Recursion

Check if There is a Valid Partition For The Array Recursion

Count All Possible Routes Recursion

Combination Sum I Recursion

Make Array Strictly Increasing Recursion

Combination Sum II Recursion


Minimum Difficulty of a Job Schedule Recursion

Combinations Recursion

N-Queens Recursion

Construct String from Binary Tree Recursion

Number of Increasing Paths in a Grid Recursion

Decode Ways Recursion

Number of Music Playlists Recursion

Delete Leaves with a Given Value Recursion

String Compression II Recursion

Distribute Coins in Binary Tree Recursion

Find the Punishment Number of an Integer Recursion

Student Attendance Record II Recursion

Find the Winner of the Circular Game (Game of Death) Recursion

Tallest Billboard Recursion

Letter Combinations of a Phone Number Recursion

Minimum Moves to Spread Stones Over Grid Recursion

Number of Dice Rolls with Target Sum Recursion

Out of Boundary Paths Recursion

Palindrome Partitioning Recursion

Path with Maximum Gold Recursion

Permutations Recursion

Permutations II Recursion

Smallest String Starting from Leaf Recursion

Subsets Recursion

Subsets II Recursion

The Number of Beautiful Subsets Recursion


Word Search Recursion

Combination Sum Backtracking

N Queens Backtracking

Construct the Lexicographically Largest Valid Sequence Backtracking

Robot Room Cleaner Backtracking

Letter Combinations of Phone Number Backtracking

Maximum Length of a Concatenated String with Unique Characters Backtracking

Smallest Number in Infinite Set Heap

Choose K Elements With Maximum Sum Heap

Meeting Rooms III Heap

Find K Pairs with Smallest Sums Heap

Find Score of an Array After Marking All Elements Heap

IPO Heap

Kth Largest Element in an Array Heap

Maximum Average Pass Ratio Heap

Minimum Cost to Hire K Workers Heap

Minimum Difference Between Largest and Smallest Value in Three Moves Heap

Most Frequent IDs Heap

Reduction Operations to Make the Array Elements Equal Heap

Replace Question Marks in String to Minimize Its Value Heap

Distribute Money to Maximum Children Greedy

Bag of Tokens Greedy

Maximize the Number of Target Nodes After Connecting Trees II Greedy

Longest Palindrome Greedy

Minimum Number of Moves to Seat Everyone Greedy

Balance a Binary Search Tree Greedy


Minimum Cost for Cutting Cake II Greedy

Construct String With Repeat Limit Greedy

Minimum Falling Path Sum II Greedy

Count Days Without Meetings Greedy

Minimum Number of Taps to Open to Water a Garden Greedy

Count the Number of Beautiful Subarrays Greedy

Minimum Operations to Make Array Equal to Target Greedy

Determine if a Cell Is Reachable at a Given Time Greedy

Minimum Replacements to Sort the Array Greedy

Divide Array Into Arrays With Max Difference Greedy

Minimum Time to Complete All Tasks Greedy

Eat Pizzas! Greedy

Minimum Time to Visit a Cell In a Grid Greedy

Eliminate Maximum Number of Monsters Greedy

Put Marbles in Bags Greedy

Find All Groups of Farmland Greedy

Find Polygon With the Largest Perimeter Greedy

Reducing Dishes Greedy

Find Valid Matrix Given Row and Column Sums Greedy

Find the Winner of an Array Game Greedy

Insert Interval Greedy

Lexicographically Minimum String After Removing Stars Greedy

Maximize Happiness of Selected Children Greedy

Maximize the Number of Target Nodes After Connecting Trees I Greedy

Maximum Matrix Sum Greedy

Maximum Number of Coins You Can Get Greedy


Maximum Number of Distinct Elements After Operations Greedy

Maximum Number of Operations to Move Ones to the End Greedy

Maximum Points After Enemy Battles Greedy

Maximum Sum With at Most K Elements Greedy

Maximum Total Importance of Roads Greedy

Merge Intervals Greedy

Minimum Amount of Time to Collect Garbage Greedy

Minimum Cost for Cutting Cake I Greedy

Minimum Deletions to Make Character Frequencies Unique Greedy

Minimum Increment to Make Array Unique Greedy

Minimum Number of Arrows to Burst Balloons Greedy

Minimum Number of Operations to Satisfy Conditions Greedy

Minimum Number of Pushes to Type Word II Greedy

Minimum Rectangles to Cover Points Greedy

Minimum Time to Make Rope Colorful Greedy

Non-overlapping Intervals Greedy

Number of Steps to Reduce a Number in Binary Representation to One Greedy

Rearrange Array to Maximize Prefix Score Greedy

Select K Disjoint Special Substrings Greedy

Total Cost to Hire K Workers Greedy

Vowels Game in a String Greedy

Zero Array Transformation III Greedy

Binary Tree Inorder Traversal Tree

Add One Row to Tree Tree

Find Minimum Diameter After Merging Two Trees Tree

Diameter of Binary Tree Tree


Amount of Time for Binary Tree to Be Infected Tree

Leaf-Similar Trees Tree

Binary Search Tree to Greater Sum Tree Tree

Longest Special Path Tree

Range Sum of BST Tree

Same Tree Tree

Check Completeness of a Binary Tree Tree

Maximize Sum of Weights after Edge Removals Tree

Sum of Left Leaves Tree

Construct Binary Tree from Inorder and Postorder Traversal Tree

Symmetric Tree Tree

Count Nodes Equal to Average of Subtree Tree

Maximum Number of K-Divisible Components Tree

Create Binary Tree From Descriptions Tree

Delete Nodes And Return Forest Tree

Even Odd Tree Tree

Find Bottom Left Tree Value Tree

Find Elements in a Contaminated Binary Tree Tree

Longest ZigZag Path in a Binary Tree Tree

Lowest Common Ancestor of a Binary Tree Tree

Maximum Difference Between Node and Ancestor Tree

Maximum Width of Binary Tree Tree

Minimum Number of Operations to Sort a Binary Tree by Level Tree

Number of Good Leaf Nodes Pairs Tree

Reverse Odd Levels of Binary Tree Tree

Smallest Subtree with all the Deepest Nodes Tree


Step-By-Step Directions From a Binary Tree Node to Another Tree

Validate Binary Search Tree Tree

Adjacent Increasing Subarrays Detection II Dynamic Programming

Arithmetic Slices II - Subsequence Dynamic Programming

Combination Sum IV Dynamic Programming

Cherry Pickup II Dynamic Programming

Count Paths With the Given XOR Value Dynamic Programming

Construct String with Minimum Cost Dynamic Programming

Count Ways To Build Good Strings Dynamic Programming

Count K-Reducible Numbers Less Than N Dynamic Programming

Extra Characters in a String Dynamic Programming

Find Minimum Cost to Remove Array Elements Dynamic Programming

Count Substrings Divisible By Last Digit Dynamic Programming

Find the Maximum Length of Valid Subsequence I Dynamic Programming

Count the Number of Inversions Dynamic Programming

Find the Maximum Length of Valid Subsequence II Dynamic Programming

Find All Possible Stable Binary Arrays II Dynamic Programming

Find the N-th Value After K Seconds Dynamic Programming

Find the Maximum Length of a Good Subsequence II Dynamic Programming

House Robber Dynamic Programming

Largest Divisible Subset Dynamic Programming

Find the Maximum Number of Fruits Collected Dynamic Programming

Length of Longest Fibonacci Subsequence Dynamic Programming

Find the Sum of Subsequence Powers Dynamic Programming

Longest Arithmetic Subsequence of Given Difference Dynamic Programming

Freedom Trail Dynamic Programming


Longest Common Subsequence Dynamic Programming

Frog Jump Dynamic Programming

Longest Ideal Subsequence Dynamic Programming

K Inverse Pairs Array Dynamic Programming

Longest Increasing Subsequence Dynamic Programming

Longest Palindromic Subsequence Dynamic Programming

Largest Rectangle in Histogram Dynamic Programming

Longest Palindromic Subsequence After at Most K Operations Dynamic Programming

Maximize Consecutive Elements in an Array After Modification Dynamic Programming

Maximal Square Dynamic Programming

Maximize Score After N Operations Dynamic Programming

Maximum Frequency After Subarray Operation Dynamic Programming

Maximum Number of Events That Can Be Attended II Dynamic Programming

Maximum Number of Operations With the Same Score II Dynamic Programming

Maximum Value of K Coins From Piles Dynamic Programming

Maximum Total Reward Using Operations I Dynamic Programming

Minimum Array Sum Dynamic Programming

Minimum Cost to Cut a Stick Dynamic Programming

Minimum Cost For Tickets Dynamic Programming

Minimum Insertion Steps to Make a String Palindrome Dynamic Programming

Minimum Deletions to Make String K-Special Dynamic Programming

Number of Ways of Cutting a Pizza Dynamic Programming

Minimum Falling Path Sum Dynamic Programming

Number of Ways to Form a Target String Given a Dictionary Dynamic Programming

Minimum Path Sum Dynamic Programming

Palindromic Substrings Dynamic Programming


Paint House IV Dynamic Programming

Partition Array for Maximum Sum Dynamic Programming

Profitable Schemes Dynamic Programming

Predict the Winner Dynamic Programming

Restore The Array Dynamic Programming

Solving Questions With Brainpower Dynamic Programming

Scramble String Dynamic Programming

Stone Game II Dynamic Programming

Stone Game III Dynamic Programming

Shortest Common Supersequence Dynamic Programming

Sum of K Subarrays With Length at Least M Dynamic Programming

Smallest Sufficient Team Dynamic Programming

Target Sum Dynamic Programming

Strange Printer Dynamic Programming

Uncrossed Lines Dynamic Programming

Subsequence With the Minimum Score Dynamic Programming

Valid Parenthesis String Dynamic Programming

Sum of Distances in Tree Dynamic Programming

Word Break Dynamic Programming

Sum of Good Subsequences Dynamic Programming

Trapping Rain Water Dynamic Programming

Find Center of Star Graph Graph

All Ancestors of a Node in a Directed Acyclic Graph Graph

Build a Matrix With Conditions Graph

Find if Path Exists in Graph Graph

Find the Town Judge Graph


As Far from Land as Possible Graph

Bus Routes Graph

Island Perimeter Graph

Cheapest Flights Within K Stops Graph

Clone Graph Graph

Checking Existence of Edge Length Limited Paths Graph

Course Schedule I Graph

Design Graph With Shortest Path Calculator Graph

Course Schedule IV Graph

Divide Nodes Into the Maximum Number of Groups Graph

Evaluate Division Graph

Find All People With Secret Graph

Find All Possible Recipes from Given Supplies Graph

Find Eventual Safe States Graph

Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree II Graph

Is Graph Bipartite? Graph

Find Edges in Shortest Paths Graph

Minimum Height Trees Graph

Largest Color Value in a Directed Graph Graph

Minimum Score of a Path Between Two Cities Graph

Last Day Where You Can Still Cross Graph

Minimum Time to Visit Disappearing Nodes Graph

Longest Cycle in a Graph Graph

Number of Closed Islands Graph

Number of Islands Graph

Maximum Employees to Be Invited to a Meeting Graph


Number of Operations to Make Network Connected Graph

Minimum Obstacle Removal to Reach Corner Graph

Number of Provinces Graph

Remove Max Number of Edges to Keep Graph Fully Traversable Graph

Number of ways to arrive at destination Graph

Shortest Path in a Grid with Obstacles Elimination Graph

Open the Lock Graph

Similar String Groups Graph

Redundant Connection Graph

Reorder Routes to Make All Paths Lead to the City Zero Graph

Sliding Puzzle Graph

Restore the Array From Adjacent Pairs Graph

Valid Arrangement of Pairs Graph

Shortest Bridge Graph

Shortest Distance After Road Addition Queries I & II Graph

Snakes and Ladders Graph

Count Prefix and Suffix Pairs I Trie

Design Add and Search Words Data Structure Trie

Count Prefix and Suffix Pairs II Trie

Implement Trie (Prefix Tree) Trie

Replace Words Trie

Longest Common Suffix Queries Trie

Fruits Into Baskets III Fenwick and Segment Tree

Block Placement Queries Fenwick and Segment Tree

Count of Smaller Numbers After Self Fenwick and Segment Tree

Distribute Elements Into Two Arrays II Fenwick and Segment Tree


Peaks in Array Fenwick and Segment Tree
Difficulty Link
Easy https://leetcode.com/problems/alternating-groups-i

Medium https://leetcode.com/problems/alternating-groups-ii

Hard https://leetcode.com/problems/count-the-number-of-houses-at-a-certain-distance-ii

Easy https://leetcode.com/problems/ant-on-the-boundary

Easy https://leetcode.com/problems/apply-operations-to-an-array

Medium https://leetcode.com/problems/apply-operations-to-make-string-empty

Hard https://leetcode.com/problems/find-the-number-of-ways-to-place-people-ii

Easy https://leetcode.com/problems/buy-two-chocolates

Medium https://leetcode.com/problems/average-waiting-time/

Easy https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/description/?envType=daily-qu

Medium https://leetcode.com/problems/check-if-grid-can-be-cut-into-sections

Hard https://leetcode.com/problems/handling-sum-queries-after-update

Easy https://leetcode.com/problems/count-of-matches-in-tournament/

Easy https://leetcode.com/problems/count-the-number-of-consistent-strings/

Medium https://leetcode.com/problems/contiguous-array/

Hard https://leetcode.com/problems/making-a-large-island/description/

Easy https://leetcode.com/problems/find-common-characters/

Medium https://leetcode.com/problems/count-mentions-per-user/description/

Easy https://leetcode.com/problems/find-the-array-concatenation-value

Medium https://leetcode.com/problems/count-servers-that-communicate/description/?envType=daily-ques

Hard https://leetcode.com/problems/maximum-subarray-sum-with-length-divisible-by-k

Easy https://leetcode.com/problems/find-the-integer-added-to-array-i

Medium https://leetcode.com/problems/count-submatrices-with-top-left-element-and-sum-less-than-k

Hard https://leetcode.com/problems/minimum-cost-to-make-at-least-one-valid-path-in-a-grid/descriptio

Easy https://leetcode.com/problems/fruits-into-baskets-ii/description/
Medium https://leetcode.com/problems/count-total-number-of-colored-cells

Hard https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/

Easy https://leetcode.com/problems/height-checker/

Medium https://leetcode.com/problems/count-the-number-of-special-characters-ii

Hard https://leetcode.com/problems/smallest-range-ii/

Easy https://leetcode.com/problems/longest-strictly-increasing-or-strictly-decreasing-subarray

Easy https://leetcode.com/problems/lucky-numbers-in-a-matrix/

Medium https://leetcode.com/problems/design-a-food-rating-system

Hard https://leetcode.com/problems/substring-xor-queries

Easy https://leetcode.com/problems/maximum-ascending-subarray-sum/description/?envType=daily-qu

Easy https://leetcode.com/problems/maximum-difference-by-remapping-a-digit

Medium https://leetcode.com/problems/diagonal-traverse-ii/

Easy https://leetcode.com/problems/maximum-odd-binary-number

Medium https://leetcode.com/problems/divide-array-in-sets-of-k-consecutive-numbers/

Easy https://leetcode.com/problems/merge-two-2d-arrays-by-summing-values

Easy https://leetcode.com/problems/minimum-time-visiting-all-points/

Medium https://leetcode.com/problems/find-the-first-player-to-win-k-games-in-a-row

Easy https://leetcode.com/problems/path-crossing/

Medium https://leetcode.com/problems/find-the-grid-of-region-average

Easy https://leetcode.com/problems/relative-sort-array/

Medium https://leetcode.com/problems/find-the-integer-added-to-array-ii

Easy https://leetcode.com/problems/special-array-i

Medium https://leetcode.com/problems/find-the-prefix-common-array-of-two-arrays

Easy https://leetcode.com/problems/special-positions-in-a-binary-matrix/

Easy https://leetcode.com/problems/squares-of-a-sorted-array/description/

Medium https://leetcode.com/problems/grid-game/description/
Easy https://leetcode.com/problems/two-sum/description/

Medium https://leetcode.com/problems/largest-submatrix-with-rearrangements/

Easy https://leetcode.com/problems/valid-word

Medium https://leetcode.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-

Medium https://leetcode.com/problems/make-lexicographically-smallest-array-by-swapping-elements

Medium https://leetcode.com/problems/map-of-highest-peak/description/

Medium https://leetcode.com/problems/max-chunks-to-make-sorted/

Medium https://leetcode.com/problems/maximum-absolute-sum-of-any-subarray/description/?envType=da

Medium https://leetcode.com/problems/maximum-number-of-fish-in-a-grid

Medium https://leetcode.com/problems/minimum-cost-to-make-arrays-identical/description/

Medium https://leetcode.com/problems/minimum-impossible-or

Medium https://leetcode.com/problems/minimum-levels-to-gain-more-points

Medium https://leetcode.com/problems/minimum-operations-to-write-the-letter-y-on-a-grid

Medium https://leetcode.com/problems/number-of-sub-arrays-with-odd-sum/description/?envType=daily-q

Medium https://leetcode.com/problems/partitioning-into-minimum-number-of-deci-binary-numbers/

Medium https://leetcode.com/problems/product-of-array-except-self/description/

Medium https://leetcode.com/problems/product-of-the-last-k-numbers/description/?envType=daily-questio

Medium https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/description/

Medium https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/

Medium https://leetcode.com/problems/reschedule-meetings-for-maximum-free-time-ii/description/

Medium https://leetcode.com/problems/shortest-uncommon-substring-in-an-array

Medium https://leetcode.com/problems/sort-characters-by-frequency/

Medium https://leetcode.com/problems/special-array-ii

Medium https://leetcode.com/problems/spiral-matrix/description/

Medium https://leetcode.com/problems/spiral-matrix-ii/

Medium https://leetcode.com/problems/squirrel-simulation/
Medium https://leetcode.com/problems/stone-game-vi/

Medium https://leetcode.com/problems/subarray-sums-divisible-by-k/

Medium https://leetcode.com/problems/sum-of-absolute-differences-in-a-sorted-array/

Medium https://leetcode.com/problems/sum-of-digit-differences-of-all-pairs

Medium https://leetcode.com/problems/tuple-with-same-product/description/

Medium https://leetcode.com/problems/water-bottles-ii

Easy https://leetcode.com/problems/isomorphic-strings/description/

Medium https://leetcode.com/problems/assign-elements-to-groups-with-constraints/description/

Hard https://leetcode.com/problems/first-missing-positive/description/

Easy https://leetcode.com/problems/majority-element/description/

Medium https://leetcode.com/problems/construct-k-palindrome-strings/description/?envType=daily-questio

Easy https://leetcode.com/problems/minimum-common-value

Medium http://leetcode.com/problems/continuous-subarray-sum/

Easy https://leetcode.com/problems/missing-number/

Medium https://leetcode.com/problems/convert-an-array-into-a-2d-array-with-conditions

Medium https://leetcode.com/problems/count-alternating-subarrays

Medium https://leetcode.com/problems/count-number-of-bad-pairs

Medium https://leetcode.com/problems/custom-sort-string/description/

Medium http://leetcode.com/problems/design-underground-system/

Medium https://leetcode.com/problems/design-a-number-container-system

Medium https://leetcode.com/problems/equal-row-and-column-pairs/description/

Medium http://leetcode.com/problems/find-all-duplicates-in-an-array/

Medium https://leetcode.com/problems/find-longest-special-substring-that-occurs-thrice-ii

Medium https://leetcode.com/problems/find-the-maximum-number-of-elements-in-subset

Medium https://leetcode.com/problems/find-the-number-of-distinct-colors-among-the-balls

Medium https://leetcode.com/problems/first-completely-painted-row-or-column
Medium http://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/

Medium https://leetcode.com/problems/group-anagrams/description/

Medium https://leetcode.com/problems/identify-the-largest-outlier-in-an-array

Medium http://leetcode.com/problems/least-number-of-unique-integers-after-k-removals/

Medium https://leetcode.com/problems/max-sum-of-a-pair-with-equal-sum-of-digits

Medium https://leetcode.com/problems/maximum-good-subarray-sum

Medium https://leetcode.com/problems/maximum-manhattan-distance-after-k-changes/description/

Medium https://leetcode.com/problems/minimum-length-of-string-after-operations

Medium https://leetcode.com/problems/optimal-partition-of-string

Medium http://leetcode.com/problems/rearrange-k-substrings-to-form-target-string

Medium http://leetcode.com/problems/unique-length-3-palindromic-subsequences

Easy https://leetcode.com/problems/check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence/

Medium https://leetcode.com/problems/adding-spaces-to-a-string/

Easy https://leetcode.com/problems/clear-digits

Medium https://leetcode.com/problems/append-characters-to-string-to-make-subsequence

Easy https://leetcode.com/problems/find-the-pivot-integer

Easy https://leetcode.com/problems/maximum-score-after-splitting-a-string/

Medium https://leetcode.com/problems/build-an-array-with-stack-operations/

Medium https://leetcode.com/problems/count-subarrays-where-max-element-appears-at-least-k-times

Medium https://leetcode.com/problems/count-unguarded-cells-in-the-grid

Medium https://leetcode.com/problems/count-of-substrings-containing-every-vowel-and-k-consonants-ii/de

Medium https://leetcode.com/problems/length-of-longest-subarray-with-at-most-k-frequency

Medium https://leetcode.com/problems/make-string-a-subsequence-using-cyclic-increments

Medium https://leetcode.com/problems/maximize-greatness-of-an-array

Medium https://leetcode.com/problems/minimum-length-of-string-after-deleting-similar-ends/

Medium https://leetcode.com/problems/move-pieces-to-obtain-a-string
Medium https://leetcode.com/problems/number-of-substrings-containing-all-three-characters/description/?

Medium https://leetcode.com/problems/number-of-zero-filled-subarrays

Medium https://leetcode.com/problems/partition-array-according-to-given-pivot

Medium https://leetcode.com/problems/rotating-the-box/

Medium https://leetcode.com/problems/subarray-product-less-than-k/

Medium https://leetcode.com/problems/zero-array-transformation-ii

Easy https://leetcode.com/problems/defuse-the-bomb/

Medium https://leetcode.com/problems/count-number-of-nice-subarrays/

Hard https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/

Easy https://leetcode.com/problems/minimum-recolors-to-get-k-consecutive-black-blocks

Medium https://leetcode.com/problems/frequency-of-the-most-frequent-element/

Medium https://leetcode.com/problems/get-equal-substrings-within-budget/

Hard https://leetcode.com/problems/minimum-window-substring/description/

Medium https://leetcode.com/problems/grumpy-bookstore-owner/

Hard https://leetcode.com/problems/subarrays-with-k-different-integers/

Medium https://leetcode.com/problems/longest-substring-without-repeating-characters/description/

Medium https://leetcode.com/problems/maximize-the-confusion-of-an-exam/

Medium https://leetcode.com/problems/maximum-beauty-of-an-array-after-applying-operation

Medium https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length/descrip

Medium https://leetcode.com/problems/reschedule-meetings-for-maximum-free-time-i/description/

Medium https://leetcode.com/problems/sequential-digits/description/

Medium https://leetcode.com/problems/shortest-subarray-with-or-at-least-k-ii

Easy https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent/description/

Medium https://leetcode.com/problems/compare-version-numbers/description/

Hard https://leetcode.com/problems/minimum-time-to-revert-word-to-initial-state-ii

Easy https://leetcode.com/problems/check-if-one-string-swap-can-make-strings-equal/description/
Medium http://leetcode.com/problems/count-number-of-homogenous-substrings

Easy https://leetcode.com/problems/count-the-number-of-special-characters-i

Medium https://leetcode.com/problems/count-vowel-strings-in-ranges

Hard https://leetcode.com/problems/number-of-subarrays-that-match-a-pattern-ii

Easy https://leetcode.com/problems/largest-3-same-digit-number-in-string

Medium https://leetcode.com/problems/lexicographically-smallest-string-after-operations-with-constraint

Easy https://leetcode.com/problems/minimum-number-of-operations-to-make-elements-in-array-distinc

Easy https://leetcode.com/problems/string-matching-in-an-array

Medium https://leetcode.com/problems/maximum-palindromes-after-operations

Medium https://leetcode.com/problems/minimum-number-of-operations-to-move-all-balls-to-each-box/des

Medium https://leetcode.com/problems/number-of-ways-to-split-array

Medium https://leetcode.com/problems/remove-all-occurrences-of-a-substring/?envType=daily-question&e

Medium https://leetcode.com/problems/shifting-letters-ii

Medium https://leetcode.com/problems/sort-vowels-in-a-string

Medium https://leetcode.com/problems/word-subsets

Easy https://leetcode.com/problems/crawler-log-folder/description/

Medium https://leetcode.com/problems/asteroid-collision/description/

Hard https://leetcode.com/problems/find-the-number-of-subarrays-where-boundary-elements-are-maxi

Easy https://leetcode.com/problems/final-prices-with-a-special-discount-in-a-shop/description/

Medium https://leetcode.com/problems/check-if-a-parentheses-string-can-be-valid/description/?envType=d

Easy https://leetcode.com/problems/implement-queue-using-stacks/description/

Medium https://leetcode.com/problems/daily-temperatures/description/

Hard https://leetcode.com/problems/maximal-rectangle/description/

Easy https://leetcode.com/problems/maximum-nesting-depth-of-the-parentheses/description/

Easy https://leetcode.com/problems/number-of-students-unable-to-eat-lunch/description/

Medium https://leetcode.com/problems/design-browser-history/description/
Hard https://leetcode.com/problems/number-of-atoms/description/

Easy https://leetcode.com/problems/valid-parentheses/description/

Medium https://leetcode.com/problems/evaluate-reverse-polish-notation/description/

Medium https://leetcode.com/problems/maximum-score-from-removing-substrings/description/

Hard https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/

Medium https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/description/

Hard https://leetcode.com/problems/robot-collisions

Medium https://leetcode.com/problems/remove-duplicate-letters/description/

Medium https://leetcode.com/problems/remove-k-digits/description/

Medium https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/description/

Medium https://leetcode.com/problems/simplify-path/description/

Medium https://leetcode.com/problems/valid-parenthesis-string/description/

Medium https://leetcode.com/problems/validate-stack-sequences/description/

Easy https://leetcode.com/problems/time-needed-to-buy-tickets/description/

Medium https://leetcode.com/problems/continuous-subarrays

Hard https://leetcode.com/problems/find-building-where-alice-and-bob-can-meet

Medium https://leetcode.com/problems/dota2-senate/description/

Hard https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/description/

Medium https://leetcode.com/problems/find-the-power-of-k-size-subarrays-i/description/

Medium https://leetcode.com/problems/find-the-winner-of-the-circular-game/description/

Hard https://leetcode.com/problems/sliding-window-maximum/description/

Medium https://leetcode.com/problems/minimum-operations-to-exceed-threshold-value-ii

Hard https://leetcode.com/problems/trapping-rain-water-ii/description/?envType=daily-question&envId

Medium https://leetcode.com/problems/reveal-cards-in-increasing-order/description/

Easy https://leetcode.com/problems/calculate-money-in-leetcode-bank

Medium https://leetcode.com/problems/alice-and-bob-playing-flower-game
Hard https://leetcode.com/problems/check-if-digits-are-equal-in-string-after-operations-ii/?slug=maximu

Easy https://leetcode.com/problems/can-make-arithmetic-progression-from-sequence

Easy https://leetcode.com/problems/check-if-digits-are-equal-in-string-after-operations-i/description/

Medium https://leetcode.com/problems/apply-operations-to-make-sum-of-array-greater-than-or-equal-to-k

Hard https://leetcode.com/problems/count-all-valid-pickup-and-delivery-options/description/

Easy https://leetcode.com/problems/find-the-child-who-has-the-ball-after-k-seconds

Medium https://leetcode.com/problems/arithmetic-subarrays/description/

Easy https://leetcode.com/problems/pass-the-pillow

Medium https://leetcode.com/problems/bulb-switcher

Hard https://leetcode.com/problems/count-connected-components-in-lcm-graph

Easy https://leetcode.com/problems/split-with-minimum-sum

Easy https://leetcode.com/problems/type-of-triangle/description/

Medium https://leetcode.com/problems/campus-bikes/

Hard https://leetcode.com/problems/count-the-number-of-arrays-with-k-matching-adjacent-elements

Easy https://leetcode.com/problems/water-bottles

Medium https://leetcode.com/problems/count-pairs-that-form-a-complete-day-ii

Easy https://leetcode.com/problems/widest-vertical-area-between-two-points-containing-no-points

Medium https://leetcode.com/problems/count-pairs-of-connectable-servers-in-a-weighted-tree-network

Hard https://leetcode.com/problems/find-the-number-of-ways-to-place-people-ii

Medium https://leetcode.com/problems/count-special-subsequences

Hard https://leetcode.com/problems/find-the-sum-of-the-power-of-all-subsequences

Medium https://leetcode.com/problems/count-substrings-starting-and-ending-with-given-character

Medium https://leetcode.com/problems/count-unreachable-pairs-of-nodes-in-an-undirected-graph

Hard https://leetcode.com/problems/greatest-common-divisor-traversal

Medium https://leetcode.com/problems/determine-if-a-cell-is-reachable-at-a-given-time/description/

Hard https://leetcode.com/problems/kth-smallest-amount-with-single-denomination-combination
Medium https://leetcode.com/problems/detonate-the-maximum-bombs

Hard https://leetcode.com/problems/manhattan-distances-of-all-arrangements-of-pieces/description/

Medium https://leetcode.com/problems/digit-operations-to-make-two-integers-equal

Medium https://leetcode.com/problems/find-unique-binary-string/

Hard https://leetcode.com/problems/maximum-strength-of-k-disjoint-subarrays

Medium https://leetcode.com/problems/find-the-largest-area-of-square-inside-two-rectangles

Hard https://leetcode.com/problems/minimize-manhattan-distances

Medium https://leetcode.com/problems/find-the-number-of-copy-arrays/?slug=transform-array-by-parity&r

Hard https://leetcode.com/problems/minimum-cost-to-equalize-array

Medium https://leetcode.com/problems/find-the-number-of-good-pairs-ii

Hard https://leetcode.com/problems/minimum-one-bit-operations-to-make-integers-zero

Medium https://leetcode.com/problems/knight-probability-in-chessboard

Medium https://leetcode.com/problems/letter-tile-possibilities/description/?envType=daily-question&envId

Hard https://leetcode.com/problems/minimum-sum-of-values-by-dividing-array

Medium https://leetcode.com/problems/maximum-element-after-decreasing-and-rearranging/

Hard https://leetcode.com/problems/number-of-ways-to-divide-a-long-corridor

Medium https://leetcode.com/problems/maximum-prime-difference

Hard https://leetcode.com/problems/number-of-ways-to-reorder-array-to-get-same-bst/

Medium https://leetcode.com/problems/maximum-value-at-a-given-index-in-a-bounded-array

Hard https://leetcode.com/problems/patching-array

Medium https://leetcode.com/problems/maximum-and-minimum-sums-of-at-most-size-k-subsequences/de

Medium https://leetcode.com/problems/minimum-length-of-anagram-concatenation

Hard https://leetcode.com/problems/split-the-array-to-make-coprime-products

Medium https://leetcode.com/problems/minimum-moves-to-spread-stones-over-grid/description/

Medium https://leetcode.com/problems/minimum-operations-to-make-median-of-array-equal-to-k

Medium https://leetcode.com/problems/minimum-time-to-break-locks-i
Medium https://leetcode.com/problems/new-21-game

Medium https://leetcode.com/problems/perfect-squares/description/

Medium https://leetcode.com/problems/prime-subtraction-operation

Medium https://leetcode.com/problems/right-triangles

Medium https://leetcode.com/problems/soup-servings

Medium https://leetcode.com/problems/sum-of-square-numbers

Medium https://leetcode.com/problems/the-kth-factor-of-n

Easy https://leetcode.com/problems/bitwise-and-of-numbers-range/description/

Medium https://codeforces.com/blog/entry/83275

Hard https://leetcode.com/problems/find-the-maximum-sum-of-node-values

Easy https://codeforces.com/problemset/problem/1808/A

Medium https://leetcode.com/problems/count-triplets-that-can-form-two-arrays-of-equal-xor/description/

Easy https://leetcode.com/problems/number-of-1-bits/description/

Medium https://www.geeksforgeeks.org/find-a-non-empty-subset-in-an-array-of-n-integers-such-that-sum-o

Hard https://leetcode.com/problems/maximum-score-words-formed-by-letters/description/

Easy https://leetcode.com/problems/power-of-two/description/

Easy https://leetcode.com/problems/sum-of-all-subset-xor-totals/description/

Medium https://leetcode.com/problems/find-the-duplicate-number/description/

Hard https://leetcode.com/problems/maximum-total-reward-using-operations-ii

Medium https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters

Hard https://leetcode.com/problems/minimum-cost-walk-in-weighted-graph

Medium https://leetcode.com/problems/maximum-number-that-sum-of-the-prices-is-less-than-or-equal-to-

Hard https://leetcode.com/problems/minimum-increments-for-target-multiples-in-an-array/description/

Medium https://leetcode.com/problems/minimize-xor

Hard https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/description/

Medium https://leetcode.com/problems/minimum-array-end
Hard https://leetcode.com/problems/number-of-subarrays-with-and-value-of-k

Medium https://leetcode.com/problems/minimum-flips-to-make-a-or-b-equal-to-c/description/

Hard https://leetcode.com/problems/partition-array-into-two-arrays-to-minimize-sum-difference/descrip

Medium https://leetcode.com/problems/minimum-operations-to-make-binary-array-elements-equal-to-one

Medium https://leetcode.com/problems/minimum-operations-to-make-binary-array-elements-equal-to-one

Hard https://leetcode.com/problems/shortest-path-to-get-all-keys/description/

Medium https://leetcode.com/problems/minimum-operations-to-reduce-an-integer-to-0

Medium https://leetcode.com/problems/neighboring-bitwise-xor

Medium https://leetcode.com/problems/number-of-wonderful-substrings/description/

Medium https://leetcode.com/problems/pseudo-palindromic-paths-in-a-binary-tree/description/

Medium https://leetcode.com/problems/score-after-flipping-matrix/description/

Medium https://leetcode.com/problems/single-number-ii/description/

Easy https://leetcode.com/problems/binary-search/description/

Medium https://leetcode.com/problems/earliest-second-to-mark-indices-i

Hard https://leetcode.com/problems/find-beautiful-indices-in-the-given-array-ii

Easy https://leetcode.com/problems/element-appearing-more-than-25-in-sorted-array/

Easy https://leetcode.com/problems/intersection-of-two-arrays/

Medium https://leetcode.com/problems/find-beautiful-indices-in-the-given-array-i

Hard https://leetcode.com/problems/find-subarray-with-bitwise-or-closest-to-k

Easy https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/

Medium https://leetcode.com/problems/find-the-safest-path-in-a-grid

Medium https://leetcode.com/problems/furthest-building-you-can-reach/

Hard https://leetcode.com/problems/maximum-profit-in-job-scheduling/

Medium https://leetcode.com/problems/house-robber-iv/description/

Hard https://leetcode.com/problems/maximum-running-time-of-n-computers

Medium https://leetcode.com/problems/k-th-smallest-prime-fraction/description/
Hard https://leetcode.com/problems/median-of-two-sorted-arrays/description/

Medium https://leetcode.com/problems/koko-eating-bananas/description/

Hard https://leetcode.com/problems/minimum-cost-to-make-array-equal

Medium https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/description/

Medium https://leetcode.com/problems/magnetic-force-between-two-balls/

Hard https://leetcode.com/problems/smallest-substring-with-identical-characters-i

Medium https://leetcode.com/problems/maximum-number-of-alloys

Medium https://leetcode.com/problems/maximum-number-of-integers-to-choose-from-a-range-i

Medium https://leetcode.com/problems/maximum-points-inside-the-square

Medium https://leetcode.com/problems/maximum-total-damage-with-spell-casting

Medium https://leetcode.com/problems/minimize-maximum-of-array

Medium https://leetcode.com/problems/minimized-maximum-of-products-distributed-to-any-store/

Medium https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag/

Medium https://leetcode.com/problems/minimum-number-of-days-to-make-m-bouquets/

Medium https://leetcode.com/problems/minimum-operations-to-make-all-array-elements-equal

Medium https://leetcode.com/problems/minimum-time-to-complete-trips

Medium https://leetcode.com/problems/minimum-time-to-repair-cars

Medium https://leetcode.com/problems/most-beautiful-item-for-each-query/

Medium https://leetcode.com/problems/most-profit-assigning-work/

Medium https://leetcode.com/problems/search-a-2d-matrix/description/

Medium https://leetcode.com/problems/separate-squares-i/

Medium https://leetcode.com/problems/shortest-subarray-to-be-removed-to-make-array-sorted/

Medium https://leetcode.com/problems/smallest-substring-with-identical-characters/

Medium https://leetcode.com/problems/snapshot-array/

Medium https://leetcode.com/problems/successful-pairs-of-spells-and-potions

Medium https://leetcode.com/problems/take-k-of-each-character-from-left-and-right
Medium https://leetcode.com/problems/two-best-non-overlapping-events/

Easy https://leetcode.com/problems/merge-two-sorted-lists/description/

Medium https://leetcode.com/problems/add-two-numbers/description/

Easy https://leetcode.com/problems/reverse-linked-list/description/

Medium https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree

Medium https://leetcode.com/problems/copy-list-with-random-pointer/description/

Medium https://leetcode.com/problems/delete-node-in-a-linked-list

Medium https://leetcode.com/problems/double-a-number-represented-as-a-linked-list

Medium https://leetcode.com/problems/find-the-minimum-and-maximum-number-of-nodes-between-critic

Medium https://leetcode.com/problems/lru-cache/description/

Medium https://leetcode.com/problems/linked-list-cycle-ii

Medium https://leetcode.com/problems/linked-list-random-node

Medium https://leetcode.com/problems/maximum-twin-sum-of-a-linked-list

Medium https://leetcode.com/problems/merge-in-between-linked-lists

Medium https://leetcode.com/problems/merge-nodes-in-between-zeros

Medium https://leetcode.com/problems/remove-nodes-from-linked-list

Medium https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/

Medium https://leetcode.com/problems/reorder-list/description/

Medium https://leetcode.com/problems/split-linked-list-in-parts

Medium https://leetcode.com/problems/swap-nodes-in-pairs/description/

Easy https://leetcode.com/problems/evaluate-boolean-binary-tree

Medium https://leetcode.com/problems/check-if-there-is-a-valid-partition-for-the-array

Hard https://leetcode.com/problems/count-all-possible-routes/description/

Medium https://leetcode.com/problems/combination-sum-ii/description/

Hard https://leetcode.com/problems/make-array-strictly-increasing/description/

Medium https://leetcode.com/problems/combination-sum-ii/description/
Hard https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule/description/

Medium https://leetcode.com/problems/combinations/description/

Hard https://leetcode.com/problems/n-queens/description/

Medium https://leetcode.com/problems/construct-string-from-binary-tree/description/

Hard https://leetcode.com/problems/number-of-increasing-paths-in-a-grid

Medium https://leetcode.com/problems/decode-ways/description/

Hard https://leetcode.com/problems/number-of-music-playlists/description/

Medium https://leetcode.com/problems/delete-leaves-with-a-given-value/description/

Hard https://leetcode.com/problems/string-compression-ii/description/

Medium https://leetcode.com/problems/distribute-coins-in-binary-tree/description/

Medium https://leetcode.com/problems/find-the-punishment-number-of-an-integer

Hard https://leetcode.com/problems/student-attendance-record-ii/description/

Medium https://leetcode.com/problems/find-the-winner-of-the-circular-game/description/

Hard https://leetcode.com/problems/tallest-billboard/description/

Medium https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/

Medium https://leetcode.com/problems/minimum-moves-to-spread-stones-over-grid

Medium https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/description/

Medium https://leetcode.com/problems/out-of-boundary-paths/description/

Medium https://leetcode.com/problems/palindrome-partitioning/description/

Medium https://leetcode.com/problems/path-with-maximum-gold/description/

Medium https://leetcode.com/problems/permutations/description/

Medium https://leetcode.com/problems/permutations-ii/description/

Medium https://leetcode.com/problems/smallest-string-starting-from-leaf/description/

Medium https://leetcode.com/problems/subsets/description/

Medium https://leetcode.com/problems/subsets-ii/description/

Medium https://leetcode.com/problems/the-number-of-beautiful-subsets
Medium https://leetcode.com/problems/word-search/description/

Medium https://leetcode.com/problems/combination-sum/description/

Hard https://leetcode.com/problems/n-queens/description/

Medium https://leetcode.com/problems/construct-the-lexicographically-largest-valid-sequence/?envType=d

Hard https://leetcode.com/problems/robot-room-cleaner

Medium https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/

Medium https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters

Easy https://leetcode.com/problems/smallest-number-in-infinite-set/description/

Medium https://leetcode.com/problems/choose-k-elements-with-maximum-sum/?slug=fruits-into-baskets-i

Hard https://leetcode.com/problems/meeting-rooms-iii

Medium https://leetcode.com/problems/find-k-pairs-with-smallest-sums/description/

Medium https://leetcode.com/problems/find-score-of-an-array-after-marking-all-elements

Medium https://leetcode.com/problems/ipo/description/

Medium https://leetcode.com/problems/kth-largest-element-in-an-array/description/

Medium https://leetcode.com/problems/maximum-average-pass-ratio/

Medium https://leetcode.com/problems/minimum-cost-to-hire-k-workers/

Medium https://leetcode.com/problems/minimum-difference-between-largest-and-smallest-value-in-three-

Medium https://leetcode.com/problems/most-frequent-ids

Medium https://leetcode.com/problems/reduction-operations-to-make-the-array-elements-equal/

Medium https://leetcode.com/problems/replace-question-marks-in-string-to-minimize-its-value

Easy https://leetcode.com/problems/distribute-money-to-maximum-children

Medium http://leetcode.com/problems/bag-of-tokens/

Hard https://leetcode.com/problems/maximize-the-number-of-target-nodes-after-connecting-trees-ii

Easy http://leetcode.com/problems/longest-palindrome/

Easy http://leetcode.com/problems/minimum-number-of-moves-to-seat-everyone/

Medium https://leetcode.com/problems/balance-a-binary-search-tree
Hard https://leetcode.com/problems/minimum-cost-for-cutting-cake-ii

Medium https://leetcode.com/problems/construct-string-with-repeat-limit

Hard https://leetcode.com/problems/minimum-falling-path-sum-ii

Medium https://leetcode.com/problems/count-days-without-meetings

Hard http://leetcode.com/problems/minimum-number-of-taps-to-open-to-water-a-garden/

Medium https://leetcode.com/problems/count-the-number-of-beautiful-subarrays

Hard https://leetcode.com/problems/minimum-operations-to-make-array-equal-to-target

Medium https://leetcode.com/problems/determine-if-a-cell-is-reachable-at-a-given-time

Hard https://leetcode.com/problems/minimum-replacements-to-sort-the-array/

Medium https://leetcode.com/problems/divide-array-into-arrays-with-max-difference

Hard https://leetcode.com/problems/minimum-time-to-complete-all-tasks

Medium https://leetcode.com/problems/eat-pizzas/?slug=find-special-substring-of-length-k&region=global_

Hard https://leetcode.com/problems/minimum-time-to-visit-a-cell-in-a-grid

Medium http://leetcode.com/problems/eliminate-maximum-number-of-monsters/

Hard https://leetcode.com/problems/put-marbles-in-bags

Medium http://leetcode.com/problems/find-all-groups-of-farmland/

Medium https://leetcode.com/problems/find-polygon-with-the-largest-perimeter

Hard https://leetcode.com/problems/reducing-dishes/description/

Medium http://leetcode.com/problems/find-valid-matrix-given-row-and-column-sums/

Medium https://leetcode.com/problems/find-the-winner-of-an-array-game

Medium https://leetcode.com/problems/insert-interval/description/

Medium https://leetcode.com/problems/lexicographically-minimum-string-after-removing-stars

Medium https://leetcode.com/problems/maximize-happiness-of-selected-children

Medium https://leetcode.com/problems/maximize-the-number-of-target-nodes-after-connecting-trees-i

Medium http://leetcode.com/problems/maximum-matrix-sum/

Medium http://leetcode.com/problems/maximum-number-of-coins-you-can-get/
Medium https://leetcode.com/problems/maximum-number-of-distinct-elements-after-operations

Medium https://leetcode.com/problems/maximum-number-of-operations-to-move-ones-to-the-end

Medium https://leetcode.com/problems/maximum-points-after-enemy-battles

Medium https://leetcode.com/problems/maximum-sum-with-at-most-k-elements/?slug=check-if-digits-are-e

Medium https://leetcode.com/problems/maximum-total-importance-of-roads

Medium https://leetcode.com/problems/merge-intervals/description/

Medium https://leetcode.com/problems/minimum-amount-of-time-to-collect-garbage

Medium https://leetcode.com/problems/minimum-cost-for-cutting-cake-i

Medium https://leetcode.com/problems/minimum-deletions-to-make-character-frequencies-unique

Medium http://leetcode.com/problems/minimum-increment-to-make-array-unique/

Medium https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/description/

Medium https://leetcode.com/problems/minimum-number-of-operations-to-satisfy-conditions

Medium https://leetcode.com/problems/minimum-number-of-pushes-to-type-word-ii

Medium https://leetcode.com/problems/minimum-rectangles-to-cover-points

Medium https://leetcode.com/problems/minimum-time-to-make-rope-colorful

Medium https://leetcode.com/problems/non-overlapping-intervals/description/

Medium https://leetcode.com/problems/number-of-steps-to-reduce-a-number-in-binary-representation-to-

Medium https://leetcode.com/problems/rearrange-array-to-maximize-prefix-score

Medium https://leetcode.com/problems/select-k-disjoint-special-substrings/?slug=eat-pizzas&region=global

Medium https://leetcode.com/problems/total-cost-to-hire-k-workers/description/

Medium https://leetcode.com/problems/vowels-game-in-a-string

Medium https://leetcode.com/problems/zero-array-transformation-iii

Easy https://leetcode.com/problems/binary-tree-inorder-traversal/description/

Medium https://leetcode.com/problems/add-one-row-to-tree/

Hard https://leetcode.com/problems/find-minimum-diameter-after-merging-two-trees

Easy https://leetcode.com/problems/diameter-of-binary-tree/description/
Medium https://leetcode.com/problems/amount-of-time-for-binary-tree-to-be-infected

Easy https://leetcode.com/problems/leaf-similar-trees/description/

Medium https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/

Hard https://leetcode.com/problems/longest-special-path/description/

Easy https://leetcode.com/problems/range-sum-of-bst/

Easy https://leetcode.com/problems/same-tree/description/

Medium https://leetcode.com/problems/check-completeness-of-a-binary-tree/

Hard https://leetcode.com/problems/maximize-sum-of-weights-after-edge-removals

Easy https://leetcode.com/problems/sum-of-left-leaves/

Medium https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/descrip

Easy https://leetcode.com/problems/symmetric-tree/description/

Medium https://leetcode.com/problems/count-nodes-equal-to-average-of-subtree

Hard https://leetcode.com/problems/maximum-number-of-k-divisible-components/

Medium https://leetcode.com/problems/create-binary-tree-from-descriptions

Medium https://leetcode.com/problems/delete-nodes-and-return-forest/

Medium https://leetcode.com/problems/number-of-good-leaf-nodes-pairs/

Medium https://leetcode.com/problems/find-bottom-left-tree-value/

Medium https://leetcode.com/problems/find-elements-in-a-contaminated-binary-tree/description/?envType

Medium https://leetcode.com/problems/longest-zigzag-path-in-a-binary-tree/description/

Medium https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/description/

Medium https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/

Medium https://leetcode.com/problems/maximum-width-of-binary-tree/

Medium https://leetcode.com/problems/minimum-number-of-operations-to-sort-a-binary-tree-by-level

Medium https://leetcode.com/problems/number-of-good-leaf-nodes-pairs/

Medium https://leetcode.com/problems/reverse-odd-levels-of-binary-tree

Medium https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/
Medium https://leetcode.com/problems/step-by-step-directions-from-a-binary-tree-node-to-another/

Medium https://leetcode.com/problems/validate-binary-search-tree/description/

Medium https://leetcode.com/problems/adjacent-increasing-subarrays-detection-ii

Hard https://leetcode.com/problems/arithmetic-slices-ii-subsequence/

Medium https://leetcode.com/problems/combination-sum-iv/

Hard https://leetcode.com/problems/cherry-pickup-ii/

Medium https://leetcode.com/problems/count-paths-with-the-given-xor-value

Hard https://leetcode.com/problems/construct-string-with-minimum-cost

Medium https://leetcode.com/problems/count-ways-to-build-good-strings

Hard https://leetcode.com/problems/count-k-reducible-numbers-less-than-n

Medium https://leetcode.com/problems/extra-characters-in-a-string

Medium https://leetcode.com/problems/find-minimum-cost-to-remove-array-elements/?slug=find-the-num

Hard https://leetcode.com/problems/count-substrings-divisible-by-last-digit/description/

Medium https://leetcode.com/problems/find-the-maximum-length-of-valid-subsequence-i

Hard https://leetcode.com/problems/count-the-number-of-inversions

Medium https://leetcode.com/problems/find-the-maximum-length-of-valid-subsequence-ii

Hard https://leetcode.com/problems/find-all-possible-stable-binary-arrays-ii

Medium https://leetcode.com/problems/find-the-n-th-value-after-k-seconds

Hard https://leetcode.com/problems/find-the-maximum-length-of-a-good-subsequence-ii

Medium https://leetcode.com/problems/house-robber/description/

Medium https://leetcode.com/problems/largest-divisible-subset/description/

Hard https://leetcode.com/problems/find-the-maximum-number-of-fruits-collected

Medium https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/

Hard https://leetcode.com/problems/find-the-sum-of-subsequence-powers

Medium https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/

Hard https://leetcode.com/problems/freedom-trail/
Medium https://leetcode.com/problems/longest-common-subsequence/description/

Hard https://leetcode.com/problems/frog-jump/

Medium https://leetcode.com/problems/longest-ideal-subsequence/

Hard https://leetcode.com/problems/k-inverse-pairs-array/

Medium https://leetcode.com/problems/longest-increasing-subsequence/description/

Medium https://leetcode.com/problems/longest-palindromic-subsequence/description/

Hard https://leetcode.com/problems/largest-rectangle-in-histogram/

Medium https://leetcode.com/problems/longest-palindromic-subsequence-after-at-most-k-operations/?slug

Hard https://leetcode.com/problems/maximize-consecutive-elements-in-an-array-after-modification

Medium https://leetcode.com/problems/maximal-square/description/

Hard https://leetcode.com/problems/maximize-score-after-n-operations/description/

Medium https://leetcode.com/problems/maximum-frequency-after-subarray-operation/description/

Hard https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended-ii/

Medium https://leetcode.com/problems/maximum-number-of-operations-with-the-same-score-ii

Hard https://leetcode.com/problems/maximum-value-of-k-coins-from-piles

Medium https://leetcode.com/problems/maximum-total-reward-using-operations-i

Medium https://leetcode.com/problems/minimum-array-sum

Hard https://leetcode.com/problems/minimum-cost-to-cut-a-stick/description/

Medium https://leetcode.com/problems/minimum-cost-for-tickets/

Hard https://leetcode.com/problems/minimum-insertion-steps-to-make-a-string-palindrome/

Medium https://leetcode.com/problems/minimum-deletions-to-make-string-k-special

Hard https://leetcode.com/problems/number-of-ways-of-cutting-a-pizza/

Medium https://leetcode.com/problems/minimum-falling-path-sum/

Hard https://leetcode.com/problems/number-of-ways-to-form-a-target-string-given-a-dictionary/

Medium https://leetcode.com/problems/minimum-path-sum/description/

Medium https://leetcode.com/problems/palindromic-substrings/
Hard https://leetcode.com/problems/paint-house-iv/description/

Medium https://leetcode.com/problems/partition-array-for-maximum-sum/description/

Hard https://leetcode.com/problems/profitable-schemes/

Medium https://leetcode.com/problems/predict-the-winner/

Hard https://leetcode.com/problems/restore-the-array/

Medium https://leetcode.com/problems/solving-questions-with-brainpower

Hard https://leetcode.com/problems/scramble-string/

Medium https://leetcode.com/problems/stone-game-ii/

Medium https://leetcode.com/problems/stone-game-iii/

Hard https://leetcode.com/problems/shortest-common-supersequence/

Medium https://leetcode.com/problems/sum-of-k-subarrays-with-length-at-least-m/?slug=longest-palindrom

Hard https://leetcode.com/problems/smallest-sufficient-team/

Medium https://leetcode.com/problems/target-sum/description/

Hard https://leetcode.com/problems/strange-printer/description/

Medium https://leetcode.com/problems/uncrossed-lines/

Hard https://leetcode.com/problems/subsequence-with-the-minimum-score

Medium https://leetcode.com/problems/valid-parenthesis-string/

Hard https://leetcode.com/problems/sum-of-distances-in-tree/

Medium https://leetcode.com/problems/word-break/description/

Hard https://leetcode.com/problems/sum-of-good-subsequences

Hard https://leetcode.com/problems/trapping-rain-water/description/

Easy https://leetcode.com/problems/find-center-of-star-graph/description/

Medium https://leetcode.com/problems/all-ancestors-of-a-node-in-a-directed-acyclic-graph

Hard https://leetcode.com/problems/build-a-matrix-with-conditions

Easy https://leetcode.com/problems/find-if-path-exists-in-graph/description/

Easy https://leetcode.com/problems/find-the-town-judge/description/
Medium https://leetcode.com/problems/as-far-from-land-as-possible/description/

Hard https://leetcode.com/problems/bus-routes/description/

Easy https://leetcode.com/problems/island-perimeter/description/

Medium https://leetcode.com/problems/cheapest-flights-within-k-stops/description/

Medium https://leetcode.com/problems/clone-graph/description/

Hard https://leetcode.com/problems/checking-existence-of-edge-length-limited-paths/description/

Medium https://leetcode.com/problems/course-schedule/description/

Hard https://leetcode.com/problems/design-graph-with-shortest-path-calculator

Medium https://leetcode.com/problems/course-schedule-iv/description/?envType=daily-question&envId=20

Hard https://leetcode.com/problems/divide-nodes-into-the-maximum-number-of-groups

Medium https://leetcode.com/problems/evaluate-division/description/

Hard https://leetcode.com/problems/find-all-people-with-secret/description/

Medium https://leetcode.com/problems/find-all-possible-recipes-from-given-supplies/description/?envType

Medium https://leetcode.com/problems/find-eventual-safe-states/description/

Hard https://leetcode.com/problems/find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree/d

Medium https://leetcode.com/problems/is-graph-bipartite/description/

Hard https://leetcode.com/problems/find-edges-in-shortest-paths

Medium https://leetcode.com/problems/minimum-height-trees/description/

Hard https://leetcode.com/problems/largest-color-value-in-a-directed-graph/description/

Medium https://leetcode.com/problems/minimum-score-of-a-path-between-two-cities

Hard https://leetcode.com/problems/last-day-where-you-can-still-cross/description/

Medium https://leetcode.com/problems/minimum-time-to-visit-disappearing-nodes

Hard https://leetcode.com/problems/longest-cycle-in-a-graph

Medium https://leetcode.com/problems/number-of-closed-islands/description/

Medium https://leetcode.com/problems/number-of-islands/description/

Hard https://leetcode.com/problems/maximum-employees-to-be-invited-to-a-meeting
Medium https://leetcode.com/problems/number-of-operations-to-make-network-connected/description/

Hard https://leetcode.com/problems/minimum-obstacle-removal-to-reach-corner

Medium https://leetcode.com/problems/number-of-provinces/description/

Hard https://leetcode.com/problems/remove-max-number-of-edges-to-keep-graph-fully-traversable/des

Medium https://leetcode.com/problems/number-of-ways-to-arrive-at-destination/description/?envType=da

Hard https://leetcode.com/problems/shortest-path-in-a-grid-with-obstacles-elimination/description/

Medium https://leetcode.com/problems/open-the-lock/description/

Hard https://leetcode.com/problems/similar-string-groups/description/

Medium https://leetcode.com/problems/redundant-connection/description/

Medium https://leetcode.com/problems/reorder-routes-to-make-all-paths-lead-to-the-city-zero/description

Hard https://leetcode.com/problems/sliding-puzzle/description/

Medium https://leetcode.com/problems/restore-the-array-from-adjacent-pairs/description/

Hard https://leetcode.com/problems/valid-arrangement-of-pairs/description/

Medium https://leetcode.com/problems/shortest-bridge/description/

Medium https://leetcode.com/problems/shortest-distance-after-road-addition-queries-i/description/

Medium https://leetcode.com/problems/snakes-and-ladders/description/

Easy https://leetcode.com/problems/count-prefix-and-suffix-pairs-i

Medium https://leetcode.com/problems/design-add-and-search-words-data-structure/description/

Hard https://leetcode.com/problems/count-prefix-and-suffix-pairs-ii

Medium https://leetcode.com/problems/implement-trie-prefix-tree/description/

Medium https://leetcode.com/problems/replace-words

Hard https://leetcode.com/problems/longest-common-suffix-queries

Medium https://leetcode.com/problems/fruits-into-baskets-iii/?slug=choose-k-elements-with-maximum-sum

Hard https://leetcode.com/problems/block-placement-queries

Hard https://leetcode.com/problems/count-of-smaller-numbers-after-self

Hard https://leetcode.com/problems/distribute-elements-into-two-arrays-ii
Hard https://leetcode.com/problems/peaks-in-array
certain-distance-ii

d/description/?envType=daily-question&envId=2025-02-02

description/?envType=daily-question&envId=2025-01-23

th-divisible-by-k

ement-and-sum-less-than-k

ne-valid-path-in-a-grid/description/?envType=daily-question&envId=2025-01-18
ly-decreasing-subarray

m/description/?envType=daily-question&envId=2025-02-04

ve-numbers/
absolute-diff-less-than-or-equal-to-limit/

ray-by-swapping-elements

barray/description/?envType=daily-question&envId=2025-02-26

ntical/description/

letter-y-on-a-grid

m/description/?envType=daily-question&envId=2025-02-25

r-of-deci-binary-numbers/

scription/?envType=daily-question&envId=2025-02-14

ray-ii/description/

des-from-linked-list/

m-free-time-ii/description/
orted-array/

nstraints/description/

scription/?envType=daily-question&envId=2025-01-11

with-conditions

-occurs-thrice-ii

ments-in-subset

-among-the-balls
-of-equal-rows/

fter-k-removals/

er-k-changes/description/

-of-any-word-in-a-sentence/

ke-subsequence

ent-appears-at-least-k-times

ery-vowel-and-k-consonants-ii/description/?envType=daily-question&envId=2025-03-10

-most-k-frequency

cyclic-increments

leting-similar-ends/
ll-three-characters/description/?envType=daily-question&envId=2025-03-11

ng-subarrays/

utive-black-blocks

ng-characters/description/

r-applying-operation

substring-of-given-length/description/

m-free-time-i/description/

valent/description/

nitial-state-ii

e-strings-equal/description/
fter-operations-with-constraint

o-make-elements-in-array-distinct

o-move-all-balls-to-each-box/description/?envType=daily-question&envId=2025-01-06

ring/?envType=daily-question&envId=2025-02-11

re-boundary-elements-are-maximum

t-in-a-shop/description/

be-valid/description/?envType=daily-question&envId=2025-01-12

rentheses/description/

-lunch/description/
description/

ubstrings/description/

arentheses/description/

pair-of-parentheses/description/

st-k/description/

-i/description/

me/description/

reshold-value-ii

?envType=daily-question&envId=2025-01-19
after-operations-ii/?slug=maximum-sum-with-at-most-k-elements&region=global_v2

rom-sequence

after-operations-i/description/

array-greater-than-or-equal-to-k

-options/description/

er-k-seconds

k-matching-adjacent-elements

points-containing-no-points

s-in-a-weighted-tree-network

ubsequences

ng-with-given-character

in-an-undirected-graph

-a-given-time/description/

enomination-combination
ements-of-pieces/description/

ide-two-rectangles

lug=transform-array-by-parity&region=global_v2

ake-integers-zero

?envType=daily-question&envId=2025-02-17

ng-and-rearranging/

to-get-same-bst/

n-a-bounded-array

at-most-size-k-subsequences/description/

-over-grid/description/

dian-of-array-equal-to-k
rrays-of-equal-xor/description/

ay-of-n-integers-such-that-sum-of-elements-of-subset-is-divisible-by-n/

-letters/description/

d-string-with-unique-characters/description/

e-prices-is-less-than-or-equal-to-k/description/

ultiples-in-an-array/description/

e-bit-flips/description/
ual-to-c/description/

minimize-sum-difference/description/

ary-array-elements-equal-to-one-i/description/

ary-array-elements-equal-to-one-ii

-integer-to-0

escription/

ary-tree/description/

in-sorted-array/

ater-than-or-equal-x/
matrix/description/

choose-from-a-range-i

distributed-to-any-store/

e-m-bouquets/

array-elements-equal

to-make-array-sorted/
a-linked-list

number-of-nodes-between-critical-points

/description/

or-the-array
ule/description/

description/

escription/

me/description/

mber/description/

um/description/

description/
gest-valid-sequence/?envType=daily-question&envId=2025-02-16

mber/description/

d-string-with-unique-characters/description/

-sum/?slug=fruits-into-baskets-ii&region=global_v2

ng-all-elements

est-and-smallest-value-in-three-moves/

-array-elements-equal/

o-minimize-its-value

odes-after-connecting-trees-ii

t-everyone/
to-water-a-garden/

ay-equal-to-target

-a-given-time

ring-of-length-k&region=global_v2

umn-sums/

after-removing-stars

odes-after-connecting-trees-i
ments-after-operations

o-move-ones-to-the-end

ments/?slug=check-if-digits-are-equal-in-string-after-operations-i&region=global_v2

acter-frequencies-unique

rst-balloons/description/

o-satisfy-conditions

ber-in-binary-representation-to-one

/?slug=eat-pizzas&region=global_v2

ging-two-trees
-be-infected

ge-removals

r-and-postorder-traversal/description/

omponents/

binary-tree/description/?envType=daily-question&envId=2025-02-21

e/description/

ary-tree/description/

de-and-ancestor/

o-sort-a-binary-tree-by-level
ary-tree-node-to-another/

ay-elements/?slug=find-the-number-of-copy-arrays&region=global_v2

digit/description/

subsequence-i

subsequence-ii

od-subsequence-ii

ts-collected

f-given-difference/
description/

after-at-most-k-operations/?slug=find-the-largest-almost-missing-integer&region=global_v2

-an-array-after-modification

/description/

y-operation/description/

can-be-attended-ii/

with-the-same-score-ii

-a-string-palindrome/

string-given-a-dictionary/
description/

-least-m/?slug=longest-palindromic-subsequence-after-at-most-k-operations&region=global_v2

ed-acyclic-graph
-limited-paths/description/

nvType=daily-question&envId=2025-01-27

umber-of-groups

n-supplies/description/?envType=daily-question&envId=2025-03-21

ges-in-minimum-spanning-tree/description/

raph/description/

n-two-cities

description/

d-to-a-meeting
twork-connected/description/

keep-graph-fully-traversable/description/

nation/description/?envType=daily-question&envId=2025-03-23

cles-elimination/description/

ead-to-the-city-zero/description/

airs/description/

on-queries-i/description/

-structure/description/

e-k-elements-with-maximum-sum&region=global_v2
Topic Problem Name Mode Tags
Arrays Array, Prefix
1 Partition Array Into Three Parts With Equal Sum Easy TwoSum
Pointers,
2 Move Zeroes Easy Arrays
Two Pointers,
3 Squares of a Sorted Array Easy Sorting
Window,
4 Maximum Points You Can Obtain from Cards Medium Prefix
Two Sum
Pointers,
5 3Sum Medium Sorting&
Divide
6 Maximum Subarray Medium Conquer
7 Spiral Matrix II Medium Matrix,
TableArray
8 Find Duplicates in an Array Medium OrderedVote
Majority Set
9 Majority Element II Medium algorithm
Array, Bucket
10 Maximum Gap Hard Sort
11 First Missing Positive Hard Array, Sorting
12 Get the Maximum Score Hard Two Pointers

Hashing Hashing,
1 Valid Anagram Easy Array
Unordered
2 Two Sum Easy Map
Unordered
3 Group Anagrams Medium Map,
QuickHashing
Select
4 Top K Frequent Elements Medium (Quick Sort)
Suffix
5 Product of Array Except Self Medium Products
6 Longest Consecutive Sequence Medium Set

2 Pointers Binary
1 Two Sum II - Input Array is Sorted Medium Search
Two Pointers,
2 3Sum Medium HashMap
Array,
3 Container With Most Water Medium Greedy, Math
Stack, Prefix
4 Trapping Rain Water Hard Sums

Sliding Window Sliding


1 Best Time to Buy and Sell Stock Easy Window
String, Two
2 Longest Substring Without Repeating Characters Medium Pointers
Sliding
3 Longest Repeating Character Replacement Medium window
Window
4 Permutation in String Medium Optimized
Sliding
5 Minimum Window Substring Hard Window
Priority
6 Sliding Window Maximum Hard Queue, DP

Intervals Case, Merge


1 Insert Interval Medium Intervals
Greedy, Two
2 Merge Intervals Medium Pointers
Greedy,
3 Non-overlapping Intervals Medium Sorting, Array
Stacks Stack, String,
1 Valid Parentheses Easy Array
2 Min Stack Medium Stack
Stack,
3 Evaluate Reverse Polish Notation Medium Recursion
4 Generate Parentheses Medium Recursion, Backtracking, Impl
5 Daily Temperatures Medium Stack, Monotonic Stack
6 Car Fleet Medium Sorting, Monotonic Stack, St

Heaps Queue),
1 Last Stone Weight Easy Array
Multiset,
2 K Closest Points to Origin Medium Quickselect
3 Kth Largest Element in an Array Medium Heapsort
Priority
4 Task Scheduler Medium Queue
Heap (Priority
5 Design Twitter Medium Queue),
Prioritylld
6 Merge k Sorted Lists Hard Queue
Minheap,
7 Find Median from Data Stream Hard Maxheap,

Linked list Iterative sol,


1 Reverse Linked List Easy Recursive sol
Iterative sol,
2 Merge Two Sorted Lists Easy RecursiveFast
Pointers, sol
3 Linked List Cycle Easy & Slow
2Pointer,
4 Reorder List Medium Recursion
Linked List,
5 Remove Nth Node From End of List Medium Two Pointers
Hash Table
6 Copy List with Random Pointer Medium able
Doubly
7 LRU Cache Medium Linked
sol, List
8 Reverse Node in k-Group Hard Recursive sol

Maths Math,
1 Happy Number Easy Ordered
Maths,Set
2 Distribute Candies to People Easy Simulation
Recursion,
3 Power of Two Easy Math
Eculidean
4 Find Greatest Common Divisor of Array Easy Algorithm
sol,
5 Fibonacci Number Easy Interactive
Math, sol
6 Factorial Trailing Zeroes Medium recursion
7 Reach a Number Medium Math
String, Array,
8 Largest Number Medium Greedy
Static DP,
9 Perfect Squares Medium Maths
Matrix, Array,
10 Rotate Image Medium Math
Matrix, Array,
11 Multiply Strings Medium Math
Math,
12 Detect Squares Medium Geometry
Combinatoric
13 Minimum Number of Operations to Make String Sorted Hard s
Programming
14 Numbers At Most N Given Digit Set Hard , Math
Math, Binary
15 Nth magical number Hard Search

Number thoery recursion,


1 Greatest Common Divisor of Strings Easy GCD
2 X of a Kind in a Deck of Cards Easy GCD
3 2 Keys Keyboard Medium Prime
Math, brain
4 Bulb Switcher Medium teaser
5 Count Primes Medium Sieve
of
6 Largest Component Size by Common Factor Hard Eratosthenes

Bit Manipulation Bit


1 Minimum Bit Flips to Convert Number Easy Manipulation
Manipulation,
2 Single Number Easy Array
, Bit
3 Counting Bits Easy Manipulation
Manipulation,
4 Missing Number Easy Array,Fast
Mask, Math&
5 Find the Duplicate Number Medium Slow, Sort
6 Total Hamming Distance Medium Bit Count.

Greedy Recursion,
1 Jump Game Medium Memorization
Array, BFS ,
2 Jump Game II Medium Memorization
Window,
3 Gas Station Medium Prefix Sum
Table,
4 Hand of Straights Medium Greedy
Pointers,
5 Partition Labels Medium String
Stack,
6 Valid Parenthesis String Medium Greedy
Greedy,
7 Minimum Number of Arrows to Burst Balloons Medium Sorting, Array
Greedy,
8 Set Intersection Size At Least Two Balloons Hard Sorting,
Window, Array
Bit
9 Minimum Number of K Consecutive Bit Flips Hard Manipulation
Huffman
10 Huffman Coding Hard Coding
Binary Search || Divide & Conquer Binary
1 Binary Search Easy Search
Seach, Array,
2 Find Peak Element Medium Recursion
Binary
3 Search a 2D Matrix Medium Search
BinaryTree
4 Koko Eating Bananas Medium Search
Binary
5 Find Minimum in Rotated Sorted Array Medium Search
Binary
6 Search in Rotated Sorted Array Medium Search
Map, Binary
7 Time Based Key-Value Store Medium Search
Search, Gap
8 Median of Two Sorted Arrays Hard Method
Matrix
9 Divide and Conquer Hard Multiplication
Recursion & Backtracking Recursion,
1 Subsets II Medium Backtracking
Recursion,
2 Combination Sum Medium Backtracking
Recursion,
3 Permutations Medium Backtracking
Recursion,
4 Permutations II Medium Backtracking
Recursion,
5 Combination Sum II Medium Backtracking
Recursion,
6 Palindrome Partitioning Medium Backtracking
Depth First
7 Word Search Medium Search
Backtracking,
8 Letter Combinations of a Phone Number Medium Queue
Backtracking,
9 N-Queens Hard Bitmask

Tree Iterative
1 Invert Binary Tree Easy Solve
Solve, Depth
2 Maximum Depth of Binary Tree Easy First Search
3 Diameter of Binary Tree Easy MaxDepth
Depth First
4 Balanced Binary Tree Easy Search
Breadth First
5 Same Tree Easy Search
Search Tree,
6 Lowest Common Ancestor of a Binary Search Tree Medium Binary Tree
Binary Tree,
7 Binary Tree Level Order Traversal Medium Queue
Search,
8 Binary Tree Right Side View Medium Queue
First Search,
9 Validate Binary Search Tree Medium Tree
Recursive
10 Kth Smallest Element in a BST Medium Solve
Binary Tree,
11 Construct Binary Tree from Preorder and Inorder TraversalMedium Tree
Search,
12 Binary Tree Maximum Path Sum Hard BreadthTree
Binary First
13 Serialize and Deserialize Binary Tree Hard Search

Graph1 Graph on
1 Number of Islands Medium GridFirst
Breadth
2 Clone Graph Medium Search
Depth First
3 Max Area of Island Medium Search
Depth First
4 Surrounded Regions Medium Search
Breadth First
5 Rotting Oranges Medium Search
Topological
6 Course Schedule Medium Sort, Graph
Topological
7 Course Schedule II Medium Sort, Graph
Search,
8 Redundant Connection Medium Union-Find
Queue,
9 Word Ladder Hard Graph

Graph2 Algo, Prim's


1 Min Cost to Connect All Points Medium Algo
Ford, Floyd-
2 Network Delay Time Medium Warshall
Ford,
3 Cheapest Flights Within K Stops Medium Dijkstras
Dijkstra,
4 Find the City With the Smallest Number of Neighbors at a Threshold
Medium Distance
Bellman-ford
Programming
5 Sum of Distances in Tree Hard , DP onPath
Euler Trees
6 Reconstruct Itinerarye Hard Finding
Search,
7 Swim in Rising Water Hard Dijkstras
Dijkstras with
8 Modify Graph Edge Weights Hard Paths
Fulkerson
9 Ford-Fulkerson Algorithm for Maximum Flow Problem Hard Algo

1D-DP Dynamic
1 Climbing Stairs Easy Programming
Dynamic
2 Min Cost Climbing Stairs Easy Programming
Dynamic
3 House Robber Medium Programming
Dynamic
4 House Robber II Medium Programming
, Two
5 Longest Palindromic Substring Medium Pointers
,Recursion,
6 Decode Ways Medium Memoization
, Recursion,
7 Coin Change Medium Memoization
Dynamic
8 Maximum Product Subarray Medium Programming
Memoization,
9 Word Break Medium TrieTree,
Indexed
10 Longest Increasing Subsequence Medium Fenwick tree
, Recursion,
11 Partition Equal Subset Sum Medium Memoization

2D-DP moization,
1 Unique Paths Medium Math
moization,
2 Longest Common Subsequence Medium String
Memoization,
3 Best Time to Buy and Sell Stock with Cooldown Medium Array
Memoization,
4 Coin Change II Medium Array
Recursion,
5 Target Sum Medium Memoization
, Recursion,
6 Interleaving String Medium Memoization
Memoization,
7 Best Time to Buy and Sell Stock with Transaction Fee Medium Array
,
8 Longest Increasing Path in a Matrix Hard Memoization
, Recursion,
9 Distinct Subsequences Hard Memoization
Divide and
10 Burst Balloons Hard Conquer
, Recursion,
11 Edit Distance Hard Memoization
moization,
12 Regular Expression Matching Hard String

String
1 Subtree of Another Tree Easy KMP Algo
2 Rotate String Easy String Matching
3 Find All Anagrams in a String Medium Sliding Window
4 Shortest Palindrome Hard
Rolling hash, String Matching, Rabin Karp
5 KMP Algorithm for Pattern Searching Hard KMP Algo

Trie
1 Implement Trie (Prefix Tree) Medium Trie
2 Design Add and Search Words Data Structure Medium Trie
3 Word Search II Hard Trie,Depth first search
Mark For
Notes Done Revision Codes

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
cursion, Backtracking, Impl 0 FALSE
ack, Monotonic Stack 0 FALSE
rting, Monotonic Stack, St 0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
0 FALSE
0 FALSE

0 FALSE
0 FALSE
0 FALSE
index question link
0 Weird Algorithm https://cses.fi/problemset/task/1068
1 Missing Number https://cses.fi/problemset/task/1083
2 Repetitions https://cses.fi/problemset/task/1069
3 Increasing Array https://cses.fi/problemset/task/1094
4 Permutations https://cses.fi/problemset/task/1070
5 Number Spiral https://cses.fi/problemset/task/1071
6 Two Knights https://cses.fi/problemset/task/1072
7 Two Sets https://cses.fi/problemset/task/1092
8 Bit Strings https://cses.fi/problemset/task/1617
9 Trailing Zeros https://cses.fi/problemset/task/1618
10 Coin Piles https://cses.fi/problemset/task/1754
11 Palindrome Reorder https://cses.fi/problemset/task/1755
12 Gray Code https://cses.fi/problemset/task/2205
13 Tower of Hanoi https://cses.fi/problemset/task/2165
14 Creating Strings https://cses.fi/problemset/task/1622
15 Apple Division https://cses.fi/problemset/task/1623
16 Chessboard and Queens https://cses.fi/problemset/task/1624
17 Raab Game I https://cses.fi/problemset/task/3399
18 Mex Grid Construction https://cses.fi/problemset/task/3419
19 Knight Moves Grid https://cses.fi/problemset/task/3217
20 Grid Coloring I https://cses.fi/problemset/task/3311
21 Digit Queries https://cses.fi/problemset/task/2431
22 String Reorder https://cses.fi/problemset/task/1743
23 Grid Path Description https://cses.fi/problemset/task/1625
24 Distinct Numbers https://cses.fi/problemset/task/1621
25 Apartments https://cses.fi/problemset/task/1084
26 Ferris Wheel https://cses.fi/problemset/task/1090
27 Concert Tickets https://cses.fi/problemset/task/1091
28 Restaurant Customers https://cses.fi/problemset/task/1619
29 Movie Festival https://cses.fi/problemset/task/1629
30 Sum of Two Values https://cses.fi/problemset/task/1640
31 Maximum Subarray Sum https://cses.fi/problemset/task/1643
32 Stick Lengths https://cses.fi/problemset/task/1074
33 Missing Coin Sum https://cses.fi/problemset/task/2183
34 Collecting Numbers https://cses.fi/problemset/task/2216
35 Collecting Numbers II https://cses.fi/problemset/task/2217
36 Playlist https://cses.fi/problemset/task/1141
37 Towers https://cses.fi/problemset/task/1073
38 Traffic Lights https://cses.fi/problemset/task/1163
39 Distinct Values Subarrays https://cses.fi/problemset/task/3420
40 Distinct Values Subsequenceshttps://cses.fi/problemset/task/3421
41 Josephus Problem I https://cses.fi/problemset/task/2162
42 Josephus Problem II https://cses.fi/problemset/task/2163
43 Nested Ranges Check https://cses.fi/problemset/task/2168
44 Nested Ranges Count https://cses.fi/problemset/task/2169
45 Room Allocation https://cses.fi/problemset/task/1164
46 Factory Machines https://cses.fi/problemset/task/1620
47 Tasks and Deadlines https://cses.fi/problemset/task/1630
48 Reading Books https://cses.fi/problemset/task/1631
49 Sum of Three Values https://cses.fi/problemset/task/1641
50 Sum of Four Values https://cses.fi/problemset/task/1642
51 Nearest Smaller Values https://cses.fi/problemset/task/1645
52 Subarray Sums I https://cses.fi/problemset/task/1660
53 Subarray Sums II https://cses.fi/problemset/task/1661
54 Subarray Divisibility https://cses.fi/problemset/task/1662
55 Distinct Values Subarrays II https://cses.fi/problemset/task/2428
56 Array Division https://cses.fi/problemset/task/1085
57 Movie Festival II https://cses.fi/problemset/task/1632
58 Maximum Subarray Sum II https://cses.fi/problemset/task/1644
59 Dice Combinations https://cses.fi/problemset/task/1633
60 Minimizing Coins https://cses.fi/problemset/task/1634
61 Coin Combinations I https://cses.fi/problemset/task/1635
62 Coin Combinations II https://cses.fi/problemset/task/1636
63 Removing Digits https://cses.fi/problemset/task/1637
64 Grid Paths I https://cses.fi/problemset/task/1638
65 Book Shop https://cses.fi/problemset/task/1158
66 Array Description https://cses.fi/problemset/task/1746
67 Counting Towers https://cses.fi/problemset/task/2413
68 Edit Distance https://cses.fi/problemset/task/1639
69 Longest Common Subsequenchttps://cses.fi/problemset/task/3403
70 Rectangle Cutting https://cses.fi/problemset/task/1744
71 Minimal Grid Path https://cses.fi/problemset/task/3359
72 Money Sums https://cses.fi/problemset/task/1745
73 Removal Game https://cses.fi/problemset/task/1097
74 Two Sets II https://cses.fi/problemset/task/1093
75 Mountain Range https://cses.fi/problemset/task/3314
76 Increasing Subsequence https://cses.fi/problemset/task/1145
77 Projects https://cses.fi/problemset/task/1140
78 Elevator Rides https://cses.fi/problemset/task/1653
79 Counting Tilings https://cses.fi/problemset/task/2181
80 Counting Numbers https://cses.fi/problemset/task/2220
81 Increasing Subsequence II https://cses.fi/problemset/task/1748
82 Counting Rooms https://cses.fi/problemset/task/1192
83 Labyrinth https://cses.fi/problemset/task/1193
84 Building Roads https://cses.fi/problemset/task/1666
85 Message Route https://cses.fi/problemset/task/1667
86 Building Teams https://cses.fi/problemset/task/1668
87 Round Trip https://cses.fi/problemset/task/1669
88 Monsters https://cses.fi/problemset/task/1194
89 Shortest Routes I https://cses.fi/problemset/task/1671
90 Shortest Routes II https://cses.fi/problemset/task/1672
91 High Score https://cses.fi/problemset/task/1673
92 Flight Discount https://cses.fi/problemset/task/1195
93 Cycle Finding https://cses.fi/problemset/task/1197
94 Flight Routes https://cses.fi/problemset/task/1196
95 Round Trip II https://cses.fi/problemset/task/1678
96 Course Schedule https://cses.fi/problemset/task/1679
97 Longest Flight Route https://cses.fi/problemset/task/1680
98 Game Routes https://cses.fi/problemset/task/1681
99 Investigation https://cses.fi/problemset/task/1202
100 Planets Queries I https://cses.fi/problemset/task/1750
101 Planets Queries II https://cses.fi/problemset/task/1160
102 Planets Cycles https://cses.fi/problemset/task/1751
103 Road Reparation https://cses.fi/problemset/task/1675
104 Road Construction https://cses.fi/problemset/task/1676
105 Flight Routes Check https://cses.fi/problemset/task/1682
106 Planets and Kingdoms https://cses.fi/problemset/task/1683
107 Giant Pizza https://cses.fi/problemset/task/1684
108 Coin Collector https://cses.fi/problemset/task/1686
109 Mail Delivery https://cses.fi/problemset/task/1691
110 De Bruijn Sequence https://cses.fi/problemset/task/1692
111 Teleporters Path https://cses.fi/problemset/task/1693
112 Hamiltonian Flights https://cses.fi/problemset/task/1690
113 Knight's Tour https://cses.fi/problemset/task/1689
114 Download Speed https://cses.fi/problemset/task/1694
115 Police Chase https://cses.fi/problemset/task/1695
116 School Dance https://cses.fi/problemset/task/1696
117 Distinct Routes https://cses.fi/problemset/task/1711
118 Static Range Sum Queries https://cses.fi/problemset/task/1646
119 Static Range Minimum Querie https://cses.fi/problemset/task/1647
120 Dynamic Range Sum Queries https://cses.fi/problemset/task/1648
121 Dynamic Range Minimum Querhttps://cses.fi/problemset/task/1649
122 Range Xor Queries https://cses.fi/problemset/task/1650
123 Range Update Queries https://cses.fi/problemset/task/1651
124 Forest Queries https://cses.fi/problemset/task/1652
125 Hotel Queries https://cses.fi/problemset/task/1143
126 List Removals https://cses.fi/problemset/task/1749
127 Salary Queries https://cses.fi/problemset/task/1144
128 Prefix Sum Queries https://cses.fi/problemset/task/2166
129 Pizzeria Queries https://cses.fi/problemset/task/2206
130 Visible Buildings Queries https://cses.fi/problemset/task/3304
131 Range Interval Queries https://cses.fi/problemset/task/3163
132 Subarray Sum Queries https://cses.fi/problemset/task/1190
133 Subarray Sum Queries II https://cses.fi/problemset/task/3226
134 Distinct Values Queries https://cses.fi/problemset/task/1734
135 Distinct Values Queries II https://cses.fi/problemset/task/3356
136 Increasing Array Queries https://cses.fi/problemset/task/2416
137 Movie Festival Queries https://cses.fi/problemset/task/1664
138 Forest Queries II https://cses.fi/problemset/task/1739
139 Range Updates and Sums https://cses.fi/problemset/task/1735
140 Polynomial Queries https://cses.fi/problemset/task/1736
141 Range Queries and Copies https://cses.fi/problemset/task/1737
142 Missing Coin Sum Queries https://cses.fi/problemset/task/2184
143 Subordinates https://cses.fi/problemset/task/1674
144 Tree Matching https://cses.fi/problemset/task/1130
145 Tree Diameter https://cses.fi/problemset/task/1131
146 Tree Distances I https://cses.fi/problemset/task/1132
147 Tree Distances II https://cses.fi/problemset/task/1133
148 Company Queries I https://cses.fi/problemset/task/1687
149 Company Queries II https://cses.fi/problemset/task/1688
150 Distance Queries https://cses.fi/problemset/task/1135
151 Counting Paths https://cses.fi/problemset/task/1136
152 Subtree Queries https://cses.fi/problemset/task/1137
153 Path Queries https://cses.fi/problemset/task/1138
154 Path Queries II https://cses.fi/problemset/task/2134
155 Distinct Colors https://cses.fi/problemset/task/1139
156 Finding a Centroid https://cses.fi/problemset/task/2079
157 Fixed-Length Paths I https://cses.fi/problemset/task/2080
158 Fixed-Length Paths II https://cses.fi/problemset/task/2081
159 Josephus Queries https://cses.fi/problemset/task/2164
160 Exponentiation https://cses.fi/problemset/task/1095
161 Exponentiation II https://cses.fi/problemset/task/1712
162 Counting Divisors https://cses.fi/problemset/task/1713
163 Common Divisors https://cses.fi/problemset/task/1081
164 Sum of Divisors https://cses.fi/problemset/task/1082
165 Divisor Analysis https://cses.fi/problemset/task/2182
166 Prime Multiples https://cses.fi/problemset/task/2185
167 Counting Coprime Pairs https://cses.fi/problemset/task/2417
168 Next Prime https://cses.fi/problemset/task/3396
169 Binomial Coefficients https://cses.fi/problemset/task/1079
170 Creating Strings II https://cses.fi/problemset/task/1715
171 Distributing Apples https://cses.fi/problemset/task/1716
172 Christmas Party https://cses.fi/problemset/task/1717
173 Permutation Order https://cses.fi/problemset/task/3397
174 Permutation Rounds https://cses.fi/problemset/task/3398
175 Bracket Sequences I https://cses.fi/problemset/task/2064
176 Bracket Sequences II https://cses.fi/problemset/task/2187
177 Counting Necklaces https://cses.fi/problemset/task/2209
178 Counting Grids https://cses.fi/problemset/task/2210
179 Fibonacci Numbers https://cses.fi/problemset/task/1722
180 Throwing Dice https://cses.fi/problemset/task/1096
181 Graph Paths I https://cses.fi/problemset/task/1723
182 Graph Paths II https://cses.fi/problemset/task/1724
183 System of Linear Equations https://cses.fi/problemset/task/3154
184 Sum of Four Squares https://cses.fi/problemset/task/3355
185 Triangle Number Sums https://cses.fi/problemset/task/3406
186 Dice Probability https://cses.fi/problemset/task/1725
187 Moving Robots https://cses.fi/problemset/task/1726
188 Candy Lottery https://cses.fi/problemset/task/1727
189 Inversion Probability https://cses.fi/problemset/task/1728
190 Stick Game https://cses.fi/problemset/task/1729
191 Nim Game I https://cses.fi/problemset/task/1730
192 Nim Game II https://cses.fi/problemset/task/1098
193 Stair Game https://cses.fi/problemset/task/1099
194 Grundy's Game https://cses.fi/problemset/task/2207
195 Another Game https://cses.fi/problemset/task/2208
196 Word Combinations https://cses.fi/problemset/task/1731
197 String Matching https://cses.fi/problemset/task/1753
198 Finding Borders https://cses.fi/problemset/task/1732
199 Finding Periods https://cses.fi/problemset/task/1733
200 Minimal Rotation https://cses.fi/problemset/task/1110
201 Longest Palindrome https://cses.fi/problemset/task/1111
202 All Palindromes https://cses.fi/problemset/task/3138
203 Required Substring https://cses.fi/problemset/task/1112
204 Palindrome Queries https://cses.fi/problemset/task/2420
205 Finding Patterns https://cses.fi/problemset/task/2102
206 Counting Patterns https://cses.fi/problemset/task/2103
207 Pattern Positions https://cses.fi/problemset/task/2104
208 Distinct Substrings https://cses.fi/problemset/task/2105
209 Distinct Subsequences https://cses.fi/problemset/task/1149
210 Repeating Substring https://cses.fi/problemset/task/2106
211 String Functions https://cses.fi/problemset/task/2107
212 Inverse Suffix Array https://cses.fi/problemset/task/3225
213 String Transform https://cses.fi/problemset/task/1113
214 Substring Order I https://cses.fi/problemset/task/2108
215 Substring Order II https://cses.fi/problemset/task/2109
216 Substring Distribution https://cses.fi/problemset/task/2110
217 Point Location Test https://cses.fi/problemset/task/2189
218 Line Segment Intersection https://cses.fi/problemset/task/2190
219 Polygon Area https://cses.fi/problemset/task/2191
220 Point in Polygon https://cses.fi/problemset/task/2192
221 Polygon Lattice Points https://cses.fi/problemset/task/2193
222 Minimum Euclidean Distance https://cses.fi/problemset/task/2194
223 Convex Hull https://cses.fi/problemset/task/2195
224 Maximum Manhattan Distancehttps://cses.fi/problemset/task/3410
225 All Manhattan Distances https://cses.fi/problemset/task/3411
226 Intersection Points https://cses.fi/problemset/task/1740
227 Line Segments Trace I https://cses.fi/problemset/task/3427
228 Line Segments Trace II https://cses.fi/problemset/task/3428
229 Lines and Queries I https://cses.fi/problemset/task/3429
230 Lines and Queries II https://cses.fi/problemset/task/3430
231 Area of Rectangles https://cses.fi/problemset/task/1741
232 Robot Path https://cses.fi/problemset/task/1742
233 Meet in the Middle https://cses.fi/problemset/task/1628
234 Hamming Distance https://cses.fi/problemset/task/2136
235 Corner Subgrid Check https://cses.fi/problemset/task/3360
236 Corner Subgrid Count https://cses.fi/problemset/task/2137
237 Reachable Nodes https://cses.fi/problemset/task/2138
238 Reachability Queries https://cses.fi/problemset/task/2143
239 Cut and Paste https://cses.fi/problemset/task/2072
240 Substring Reversals https://cses.fi/problemset/task/2073
241 Reversals and Sums https://cses.fi/problemset/task/2074
242 Necessary Roads https://cses.fi/problemset/task/2076
243 Necessary Cities https://cses.fi/problemset/task/2077
244 Eulerian Subgraphs https://cses.fi/problemset/task/2078
245 Monster Game I https://cses.fi/problemset/task/2084
246 Monster Game II https://cses.fi/problemset/task/2085
247 Subarray Squares https://cses.fi/problemset/task/2086
248 Houses and Schools https://cses.fi/problemset/task/2087
249 Knuth Division https://cses.fi/problemset/task/2088
250 Apples and Bananas https://cses.fi/problemset/task/2111
251 One Bit Positions https://cses.fi/problemset/task/2112
252 Signal Processing https://cses.fi/problemset/task/2113
253 New Roads Queries https://cses.fi/problemset/task/2101
254 Dynamic Connectivity https://cses.fi/problemset/task/2133
255 Parcel Delivery https://cses.fi/problemset/task/2121
256 Task Assignment https://cses.fi/problemset/task/2129
257 Distinct Routes II https://cses.fi/problemset/task/2130
258 Sliding Window Sum https://cses.fi/problemset/task/3220
259 Sliding Window Minimum https://cses.fi/problemset/task/3221
260 Sliding Window Xor https://cses.fi/problemset/task/3426
261 Sliding Window Or https://cses.fi/problemset/task/3405
262 Sliding Window Distinct Valueshttps://cses.fi/problemset/task/3222
263 Sliding Window Mode https://cses.fi/problemset/task/3224
264 Sliding Window Mex https://cses.fi/problemset/task/3219
265 Sliding Window Median https://cses.fi/problemset/task/1076
266 Sliding Window Cost https://cses.fi/problemset/task/1077
267 Sliding Window Inversions https://cses.fi/problemset/task/3223
268 Sliding Window Advertisementhttps://cses.fi/problemset/task/3227
269 Hidden Integer https://cses.fi/problemset/task/3112
270 Hidden Permutation https://cses.fi/problemset/task/3139
271 K-th Highest Score https://cses.fi/problemset/task/3305
272 Permuted Binary Strings https://cses.fi/problemset/task/3228
273 Colored Chairs https://cses.fi/problemset/task/3273
274 Inversion Sorting https://cses.fi/problemset/task/3140
275 Counting Bits https://cses.fi/problemset/task/1146
276 Maximum Xor Subarray https://cses.fi/problemset/task/1655
277 Maximum Xor Subset https://cses.fi/problemset/task/3191
278 Number of Subset Xors https://cses.fi/problemset/task/3211
279 K Subset Xors https://cses.fi/problemset/task/3192
280 All Subarray Xors https://cses.fi/problemset/task/3233
281 Xor Pyramid Peak https://cses.fi/problemset/task/2419
282 Xor Pyramid Diagonal https://cses.fi/problemset/task/3194
283 Xor Pyramid Row https://cses.fi/problemset/task/3195
284 SOS Bit Problem https://cses.fi/problemset/task/1654
285 And Subset Count https://cses.fi/problemset/task/3141
286 Inverse Inversions https://cses.fi/problemset/task/2214
287 Monotone Subsequences https://cses.fi/problemset/task/2215
288 Third Permutation https://cses.fi/problemset/task/3422
289 Permutation Prime Sums https://cses.fi/problemset/task/3423
290 Chess Tournament https://cses.fi/problemset/task/1697
291 Distinct Sums Grid https://cses.fi/problemset/task/3424
292 Filling Trominos https://cses.fi/problemset/task/2423
293 Grid Path Construction https://cses.fi/problemset/task/2418
294 Nearest Shops https://cses.fi/problemset/task/3303
295 Prüfer Code https://cses.fi/problemset/task/1134
296 Tree Traversals https://cses.fi/problemset/task/1702
297 Course Schedule II https://cses.fi/problemset/task/1757
298 Acyclic Graph Edges https://cses.fi/problemset/task/1756
299 Strongly Connected Edges https://cses.fi/problemset/task/2177
300 Even Outdegree Edges https://cses.fi/problemset/task/2179
301 Graph Girth https://cses.fi/problemset/task/1707
302 Fixed Length Walk Queries https://cses.fi/problemset/task/3357
303 Transfer Speeds Sum https://cses.fi/problemset/task/3111
304 MST Edge Check https://cses.fi/problemset/task/3407
305 MST Edge Set Check https://cses.fi/problemset/task/3408
306 MST Edge Cost https://cses.fi/problemset/task/3409
307 Network Breakdown https://cses.fi/problemset/task/1677
308 Tree Coin Collecting I https://cses.fi/problemset/task/3114
309 Tree Coin Collecting II https://cses.fi/problemset/task/3149
310 Tree Isomorphism I https://cses.fi/problemset/task/1700
311 Tree Isomorphism II https://cses.fi/problemset/task/1701
312 Flight Route Requests https://cses.fi/problemset/task/1699
313 Critical Cities https://cses.fi/problemset/task/1703
314 Visiting Cities https://cses.fi/problemset/task/1203
315 Graph Coloring https://cses.fi/problemset/task/3308
316 Bus Companies https://cses.fi/problemset/task/3158
317 Split into Two Paths https://cses.fi/problemset/task/3358
318 Network Renovation https://cses.fi/problemset/task/1704
319 Forbidden Cities https://cses.fi/problemset/task/1705
320 Creating Offices https://cses.fi/problemset/task/1752
321 New Flight Routes https://cses.fi/problemset/task/1685
322 Filled Subgrid Count I https://cses.fi/problemset/task/3413
323 Filled Subgrid Count II https://cses.fi/problemset/task/3414
324 All Letter Subgrid Count I https://cses.fi/problemset/task/3415
325 All Letter Subgrid Count II https://cses.fi/problemset/task/3416
326 Border Subgrid Count I https://cses.fi/problemset/task/3417
327 Border Subgrid Count II https://cses.fi/problemset/task/3418
328 Raab Game II https://cses.fi/problemset/task/3400
329 Empty String https://cses.fi/problemset/task/1080
330 Permutation Inversions https://cses.fi/problemset/task/2229
331 Counting Bishops https://cses.fi/problemset/task/2176
332 Counting Sequences https://cses.fi/problemset/task/2228
333 Grid Paths II https://cses.fi/problemset/task/1078
334 Counting Permutations https://cses.fi/problemset/task/1075
335 Grid Completion https://cses.fi/problemset/task/2429
336 Counting Reorders https://cses.fi/problemset/task/2421
337 Tournament Graph Distributionhttps://cses.fi/problemset/task/3232
338 Collecting Numbers Distributiohttps://cses.fi/problemset/task/3157
339 Functional Graph Distribution https://cses.fi/problemset/task/2415
340 Shortest Subsequence https://cses.fi/problemset/task/1087
341 Distinct Values Sum https://cses.fi/problemset/task/3150
342 Distinct Values Splits https://cses.fi/problemset/task/3190
343 Swap Game https://cses.fi/problemset/task/1670
344 Beautiful Permutation II https://cses.fi/problemset/task/3175
345 Multiplication Table https://cses.fi/problemset/task/2422
346 Bubble Sort Rounds I https://cses.fi/problemset/task/3151
347 Bubble Sort Rounds II https://cses.fi/problemset/task/3152
348 Nearest Campsites I https://cses.fi/problemset/task/3306
349 Nearest Campsites II https://cses.fi/problemset/task/3307
350 Advertisement https://cses.fi/problemset/task/1142
351 Special Substrings https://cses.fi/problemset/task/2186
352 Counting LCM Arrays https://cses.fi/problemset/task/3169
353 Square Subsets https://cses.fi/problemset/task/3193
354 Subarray Sum Constraints https://cses.fi/problemset/task/3294
355 Water Containers Moves https://cses.fi/problemset/task/3213
356 Water Containers Queries https://cses.fi/problemset/task/3214
357 Stack Weights https://cses.fi/problemset/task/2425
358 Maximum Average Subarrays https://cses.fi/problemset/task/3301
359 Subsets with Fixed Average https://cses.fi/problemset/task/3302
360 Two Array Average https://cses.fi/problemset/task/3361
361 Pyramid Array https://cses.fi/problemset/task/1747
362 Permutation Subsequence https://cses.fi/problemset/task/3404
363 Bit Inversions https://cses.fi/problemset/task/1188
364 Writing Numbers https://cses.fi/problemset/task/1086
365 Letter Pair Move Game https://cses.fi/problemset/task/2427
366 Maximum Building I https://cses.fi/problemset/task/1147
367 Sorting Methods https://cses.fi/problemset/task/1162
368 Cyclic Array https://cses.fi/problemset/task/1191
369 List of Sums https://cses.fi/problemset/task/2414
370 Bouncing Ball Steps https://cses.fi/problemset/task/3215
371 Bouncing Ball Cycle https://cses.fi/problemset/task/3216
372 Knight Moves Queries https://cses.fi/problemset/task/3218
373 K Subset Sums I https://cses.fi/problemset/task/3108
374 K Subset Sums II https://cses.fi/problemset/task/3109
375 Increasing Array II https://cses.fi/problemset/task/2132
376 Food Division https://cses.fi/problemset/task/1189
377 Swap Round Sorting https://cses.fi/problemset/task/1698
378 Binary Subsequences https://cses.fi/problemset/task/2430
379 School Excursion https://cses.fi/problemset/task/1706
380 Coin Grid https://cses.fi/problemset/task/1709
381 Grid Coloring II https://cses.fi/problemset/task/3312
382 Programmers and Artists https://cses.fi/problemset/task/2426
383 Removing Digits II https://cses.fi/problemset/task/2174
384 Coin Arrangement https://cses.fi/problemset/task/2180
385 Replace with Difference https://cses.fi/problemset/task/3159
386 Grid Puzzle I https://cses.fi/problemset/task/2432
387 Grid Puzzle II https://cses.fi/problemset/task/2131
388 Bit Substrings https://cses.fi/problemset/task/2115
389 Reversal Sorting https://cses.fi/problemset/task/2075
390 Book Shop II https://cses.fi/problemset/task/1159
391 GCD Subsets https://cses.fi/problemset/task/3161
392 Minimum Cost Pairs https://cses.fi/problemset/task/3402
393 Same Sum Subsets https://cses.fi/problemset/task/3425
394 Mex Grid Queries https://cses.fi/problemset/task/1157
395 Maximum Building II https://cses.fi/problemset/task/1148
396 Stick Divisions https://cses.fi/problemset/task/1161
397 Stick Difference https://cses.fi/problemset/task/3401
398 Coding Company https://cses.fi/problemset/task/1665
399 Two Stacks Sorting https://cses.fi/problemset/task/2402

You might also like