Back

Coding Problems

923+ problems to sharpen your skills. Filter by difficulty and topic to find your next challenge.

Showing 923 of 923 problems

Actors and Directors

EasySQL

Add Binary

EasyString

Add Digits

EasyMathTree

Add Strings

EasyString

Add to Array-Form of Integer

EasyArrayMathSorting

Ads Performance

EasySQLSorting

Array Partition

EasyArray

Article Views I

EasySQLSorting

Assign Cookies

EasyGreedySorting

Average of Levels in Binary Tree

EasyArrayLinked ListTree

Average Salary By Department

EasySQLSorting

Backspace String Compare

EasyString

Balanced Binary Tree

EasyMathLinked ListTree

Base 7

EasyString

Baseball Game

EasySimulation

Best Time to Buy and Sell Stock

EasyArrayGreedy

Big Countries

EasySQL

Biggest Single Number

EasySQLMath

Binary Gap

EasyBit Manipulation

Binary Search

EasyArrayBinary SearchSorting

Binary Tree Paths

EasySortingLinked ListTree

Binary Watch

EasyMathBit Manipulation

Calculate Digit Sum of a String

EasyStringMath

Calculate Special Bonus

EasySQL

Can Make Arithmetic Progression

EasyArraySorting

Can Make Arithmetic Progression From Sequence

EasyArraySorting

Can Place Flowers

Easy

Capitalize the Title

EasyString

Cells with Odd Values

EasyMathMatrix

Check if Array Is Sorted and Rotated

EasyArrayBinary SearchMath

Check If N and Its Double Exist

EasyArray

Check if the Sentence Is Pangram

EasyStringSorting

Check If Two String Arrays are Equivalent

EasyArrayString

Classes More Than 5 Students

EasySQLMath

Climbing Stairs

Easy

Combine Two Tables

EasySQL

Complement of Base 10 Integer

Easy

Construct the Rectangle

Easy

Contains Duplicate

EasyArrayHash Table

Contains Duplicate II

EasyArrayHash Table

Convert Binary Number in Linked List

EasyMathLinked ListGraph

Convert Sorted Array to BST

EasyArrayBinary SearchSorting

Convert Temperature

EasyArrayMath

Count Asterisks

EasyStringMath

Count Binary Substrings

EasyStringMath

Count Elements With Strictly Smaller and Greater Elements

EasyArrayMath

Count Employees Per Department

EasySQLMathSorting

Count Equal and Divisible Pairs

EasyArrayMath

Count Equal and Divisible Pairs in Array

EasyArrayMath

Count Good Triplets

EasyArrayMath

Count Items Matching a Rule

EasyArray

Count Largest Group

EasyMath

Count Negative Numbers in a Sorted Matrix

EasyMathSortingMatrix

Count Negative Numbers in Matrix

EasyMathSortingMatrix

Count Negatives in Sorted Matrix

EasyMathSortingMatrix

Count Odd Numbers in an Interval Range

EasyMath

Count Odd Numbers in Range

EasyMath

Count Prefixes of a Given String

EasyArrayStringMath

Count the Number of Consistent Strings

EasyArrayStringMath

Count Vowel Substrings

EasyStringMath

Counting Bits

EasyArrayMath

Cousins in Binary Tree

EasyLinked ListTreeBinary Tree

Crawler Log Folder

EasyGreedy

Create Target Array in Given Order

EasyArraySorting

Customers Without Orders

EasySQLSorting

Daily Leads and Partners

EasySQLHash Table

Day of the Week

Easy

Day of the Year

EasyStringMath

Decode the Message

EasyStringSorting

Decode XORed Array

EasyArrayBit Manipulation

Decompress Run-Length Encoded List

EasyHash TableSQL

Defanging an IP Address

EasyStack

Defuse the Bomb

EasyArray

Degree of an Array

EasyArrayHash Table

Delete Columns to Make Sorted

EasyArrayStringBinary Search

Delete Duplicate Emails

EasySQLHash TableSorting

Design HashMap

EasyArrayHash TableSQL

Design HashSet

EasyArrayHash TableSQL

Design Parking System

EasyArray

Destination City

EasyArray

Detect Capital

Easy

Detect Cycle in Linked List

EasyLinked List

Diameter of Binary Tree

EasyMathLinked ListTree

Divide a String Into Groups of Size k

EasyArrayString

Divide Array Into Equal Pairs

EasyArray

Divisor Game

EasySimulation

Element Appearing More Than 25% In Sorted Array

EasyArrayBinary SearchSorting

Employees and Bonus

EasySQLSorting

Employees Earning More Than Managers

EasySQL

Employees in Unique Department

EasySQL

Employees With High Salary

EasySQLSorting

Excel Sheet Column Number

EasyStringMath

Excel Sheet Column Title

Easy

Fibonacci Number

EasyMath

Final Prices With a Special Discount

EasyArray

Final Value of Variable After Operations

EasyArray

Find All Numbers Disappeared in an Array

EasyArraySorting

Find Center of Star Graph

EasyLinked ListTreeGraph

Find Closest Number to Zero

EasyArrayMath

Find Common Characters

EasyArrayStringSorting

Find Customer Referee

EasySQL

Find Duplicate Emails

EasySQLHash TableSorting

Find Kth Largest in Stream

EasyArrayBinary SearchMath

Find Lucky Integer in an Array

EasyArrayHash Table

Find Mode in BST

EasyHash TableBinary SearchSorting

Find Numbers with Even Number of Digits

EasyArrayMath

Find Pivot Index

EasyArray

Find Target Indices After Sorting Array

EasyArraySorting

Find Team Size

EasySQLSliding WindowSorting

Find the Difference

EasyStringSorting

Find the Difference of Two Arrays

EasyArray

Find the Highest Altitude

EasyArray

Find the Index of the First Occurrence

EasyString

Find the Town Judge

Easy

Find Winner on Tic Tac Toe

EasyArrayMatrixSimulation

Find Words Formed by Characters

EasyArrayStringTree

First Bad Version

EasyArray

First Unique Character in a String

EasyStringHash Table

First Unique Character in String

EasyString

Fix Names in a Table

EasySQL

Fizz Buzz

EasyArrayString

Flipping an Image

EasyMatrix

Flood Fill

EasyArrayDFSBFS

Game Play Analysis

EasySQLSimulation

Goal Parser Interpretation

EasyString

Goat Latin

EasyString

Group Sold Products

EasySQLHash TableMath

Guess Number Higher or Lower

EasyBinary SearchMathSimulation

Hamming Distance

EasyMath

Happy Number

EasyMath

Happy Number Sequence

EasyMath

How Many Numbers Are Smaller

EasyArrayMath

How Many Numbers Are Smaller Than Current

EasyArrayMathSorting

Image Smoother

EasyMatrix

Implement Queue using Stacks

EasyStringQueue

Increasing BST Order

EasyArrayBinary SearchSorting

Increasing Decreasing String

EasyStringSorting

Increasing Order Search Tree

EasyArrayBinary SearchSorting

Intersection of Two Arrays

EasyArraySorting

Intersection of Two Arrays II

EasyArraySorting

Invalid Tweets

EasySQLBit Manipulation

Invert Binary Tree

EasyMathLinked ListTree

Is Subsequence

EasyStringSorting

Island Perimeter

EasyGraphMatrix

Isomorphic Strings

EasyStringSorting

Keyboard Row

EasyArrayString

Kids With the Greatest Number of Candies

EasyArrayMath

Kth Largest Element in a Stream

EasySorting

Kth Missing Positive Number

EasyArrayMathSorting

Largest 3-Same-Digit Number

EasyStringMath

Largest Local Values in a Matrix

EasyArrayMatrix

Largest Number At Least Twice Others

EasyArrayMath

Largest Odd Number in String

EasyStringMath

Largest Subarray Length K

EasyArraySorting

Last Stone Weight

EasyArray

Leaf-Similar Trees

EasyTreeGraph

Left and Right Sum Differences

EasyArray

Lemonade Change

Easy

Length of Last Word

EasyString

License Key Formatting

EasyString

Linked List Cycle

EasyArrayLinked List

Logger Rate Limiter

EasyArraySorting

Longest Common Prefix

EasyArrayString

Longest Harmonious Subsequence

EasyArray

Longest Palindrome

EasyString

Lucky Numbers in Matrix

EasyMathSortingMatrix

Majority Element

EasyArray

Make The String Great

EasyStringStack

Make Two Arrays Equal by Reversing

EasyArrayMath

Matrix Diagonal Sum

EasyMatrix

Max Consecutive Ones

EasyArrayMath

Maximum 69 Number

EasyMath

Maximum Ascending Subarray Sum

EasyArray

Maximum Average Subarray I

EasyArray

Maximum Depth of Binary Tree

EasyMathLinked ListTree

Maximum Depth of N-ary Tree

EasyMathLinked ListTree

Maximum Number of Words in a Sentence

EasyArrayMath

Maximum Population Year

EasyArrayMatrix

Maximum Repeating Substring

EasyString

Maximum Units on a Truck

EasyMathSorting

Maximum Value of a String in an Array

EasyArrayString

Meeting Rooms

EasyArray

Merge Similar Items

EasyArraySortingMatrix

Merge Sorted Array

EasyArrayBinary SearchMath

Merge Strings Alternately

EasyStringSorting

Merge Two Binary Trees

EasyArrayLinked ListTree

Merge Two Sorted Arrays

EasyArrayBinary SearchSorting

Merge Two Sorted Lists

EasyBinary SearchMathSorting

Middle of Linked List

EasyMathLinked ListGraph

Min Cost Climbing Stairs

EasyArray

Minimum Absolute Difference

EasyArrayBinary SearchSorting

Minimum Absolute Difference in BST

EasyBinary SearchTreeBinary Search Tree

Minimum Bit Flips

EasyGreedyMathBit Manipulation

Minimum Changes To Make Alternating Binary String

EasyStringGreedyMath

Minimum Depth of Binary Tree

EasyMathLinked ListTree

Minimum Distance Between BST Nodes

EasyBinary SearchSortingTree

Minimum Index Sum of Two Lists

EasyArrayStringSorting

Minimum Recolors to Get K Consecutive Black Blocks

EasyStringSliding WindowGreedy

Minimum Subsequence in Non-Increasing Order

EasyArraySorting

Minimum Time Visiting All Points

EasySortingMatrix

Missing Number

EasyArrayMath

Missing Number (XOR)

EasyArrayMathBit Manipulation

Monotonic Array

EasyArray

Most Common Word

EasyArrayString

Most Frequent Even Element

EasyArrayHash Table

Move Zeroes

EasyArraySorting

Moving Average from Data Stream

EasySliding WindowMath

N-ary Tree Postorder Traversal

EasyArraySortingLinked List

N-ary Tree Preorder Traversal

EasyArrayTreeGraph

N-th Tribonacci Number

EasyMath

Next Greater Element I

EasyArray

Not Boring Movies

EasySQL

Number of 1 Bits

EasyMathBit Manipulation

Number of Equivalent Domino Pairs

EasyMath

Number of Good Pairs

EasyArrayMath

Number of Recent Calls

EasyArraySliding WindowMath

Number of Rectangles That Can Form Largest Square

EasyArrayMath

Number of Students Unable to Eat Lunch

EasyMathStackQueue

Order By Two Columns

EasySQLSorting

Overlapping Illness Periods

EasyArrayMathSorting

Palindrome Linked List

EasyStringMathLinked List

Palindrome Number

EasyStringMath

Pascal's Triangle

EasyMath

Path Sum

EasyLinked ListTreeBinary Tree

Patients With a Condition

EasySQL

Percentage of Letter in String

EasyString

Perfect Number

EasyMath

Plus One

EasyArraySorting

Plus One (Large Number)

EasyArrayMath

Power of Four

EasyMath

Power of Three

EasyMath

Power of Two

EasyBit Manipulation

Product Sales Analysis

EasySQLSorting

Queries Quality and Percentage

EasySQLSortingSimulation

Range Addition II

EasyArrayMatrix

Range Sum of BST

EasyBinary SearchLinked ListTree

Range Sum Query - Immutable

EasyArraySQL

Ransom Note

EasyString

Reformat Date

EasyString

Reformat Phone Number

EasyStringMath

Relative Ranks

EasyArraySorting

Relative Sort Array

EasyArraySorting

Remove All Adjacent Duplicates In String

EasyStringHash TableStack

Remove Duplicates from Sorted Array

EasyArrayBinary SearchMath

Remove Element

EasyArrayMathSorting

Remove Outermost Parentheses

EasyStringStack

Repeated Substring Pattern

EasyString

Replace Elements with Greatest on Right

EasyArray

Reshape the Matrix

EasyMatrix

Reverse Bits

EasyBit Manipulation

Reverse Integer

EasyBit Manipulation

Reverse Linked List

EasyArrayMathSorting

Reverse String

EasyArrayStringTwo Pointers

Reverse Vowels of a String

EasyString

Reverse Words in a String III

EasyStringSorting

Reverse Words in String III

EasyStringSorting

Richest Customer Wealth

EasyArrayMatrix

Rising Temperature

EasySQLSorting

Robot Return to Origin

EasyMatrix

Roman to Integer

Easy

Running Sum of 1d Array

EasyArrayPrefix Sum

Sales Person

EasySQLSorting

Same Tree

EasyMathLinked ListTree

Search Insert Position

EasyArrayBinary SearchSorting

Select All Employees

EasySQLSorting

Self Dividing Numbers

EasyMath

Set Mismatch

EasyArrayMath

Shuffle String

EasyArrayString

Shuffle the Array

EasyArray

Sign of the Product of an Array

EasyArray

Single Number

EasyArrayMathBit Manipulation

Single-Row Keyboard

EasyString

Slowest Key

Easy

Smallest Even Multiple

EasyMath

Sort Array By Parity

EasyArraySorting

Sort Array By Parity II

EasyArraySorting

Sort Integers by Number of 1 Bits

EasyArrayMathSorting

Sort Integers by The Number of 1 Bits

EasyArrayMathSorting

Special Array With X Elements >= X

EasyArrayMath

Special Positions in a Binary Matrix

EasyMathMatrix

Split a String in Balanced Strings

EasyStringMath

Sqrt(x)

EasyMathTree

Sqrt(x) - Newton's Method

EasyTree

Squares of a Sorted Array

EasyArrayBinary SearchMath

Squares of Sorted Array

EasyArrayBinary SearchMath

Strong Password Checker II

Easy

Student Attendance Record I

EasyString

Subtract Product and Sum

EasyMath

Subtree of Another Tree

EasyMathLinked ListTree

Sum of All Odd Length Subarrays

EasyArray

Sum of Left Leaves

EasyLinked ListTreeBinary Tree

Sum of Multiples

Easy

Sum of Root To Leaf Binary Numbers

EasyMathLinked ListTree

Sum of Unique Elements

EasyArray

Swap Salary

EasySQL

Symmetric Tree

EasyMathSortingLinked List

Third Maximum Number

EasyArrayMath

Thousand Separator

EasyStringMath

Three Consecutive Odds

EasyArray

Time Needed to Buy Tickets

EasyQueueSimulation

To Lower Case

EasyString

Toeplitz Matrix

EasyMatrix

Top Travellers

EasySQLSorting

Transpose Matrix

EasyArrayMatrix

Triangle Judgement

EasySQL

Truncate Sentence

EasyMath

Two Out of Three

EasyArray

Two Sum

EasyArrayHash TableSorting

Two Sum IV - Input is a BST

EasyHash TableBinary SearchMath

Two Sum Less Than K

EasyArrayHash Table

Ugly Number

EasyMath

Unique Number of Occurrences

EasyArrayMath

Univalued Binary Tree

EasyLinked ListTreeBinary Tree

User Activity Count

EasySQLMathSorting

Valid Anagram

EasyString

Valid Mountain Array

EasyArray

Valid Palindrome

EasyString

Valid Palindrome II

EasyString

Valid Parentheses

EasyStringSortingStack

Valid Perfect Square

EasyBinary SearchTree

Verifying an Alien Dictionary

EasyHash TableSortingSQL

Word Pattern

EasyString

132 Pattern

MediumArray

3Sum

MediumArrayHash Table

3Sum Closest

MediumArrayHash Table

4Sum

MediumArraySorting

Accounts Merge

MediumStringSorting

Add One Row to Tree

MediumArrayLinked ListTree

Add Two Numbers

MediumMathSortingLinked List

Add Two Numbers (Linked List)

MediumMathSortingLinked List

Advantage Shuffle

MediumArrayGreedyMath

All Nodes Distance K in Binary Tree

MediumMathLinked ListTree

All Paths From Source to Target

MediumSortingLinked ListGraph

Amount of Time for Binary Tree to Be Infected

MediumLinked ListTreeBinary Tree

Arithmetic Slices

MediumArrayMath

Array Nesting

MediumArray

Asteroid Collision

MediumArray

Average Waiting Time

MediumMatrix

Avoid Flood in The City

MediumArray

Bag of Tokens

MediumArrayGreedy

Basic Calculator II

MediumString

Battleships in a Board

MediumMath

Beautiful Arrangement

MediumMath

Best Time to Buy and Sell Stock with Cooldown

MediumArray

Best Time to Buy and Sell Stock with Transaction Fee

MediumArray

Binary Search Tree to Greater Sum Tree

MediumArrayBinary SearchSorting

Binary Subarrays With Sum

MediumArrayMath

Binary Tree Level Order Traversal

MediumArrayMathSorting

Binary Tree Right Side View

MediumMathLinked ListTree

Binary Tree Zigzag Level Order Traversal

MediumMathSortingLinked List

Bitwise AND of Numbers Range

MediumBit Manipulation

Boats to Save People

MediumArrayGreedyMath

Boundary of Binary Tree

MediumSortingLinked ListTree

Brick Wall

MediumArrayMatrix

Broken Calculator

MediumGreedy

Build an Array With Stack Operations

MediumArrayStackSimulation

Bulb Switcher

Medium

Bulb Switcher III

MediumMathSorting

Bulls and Cows

MediumSimulation

Capacity To Ship Packages Within D Days

MediumSorting

Car Fleet

MediumMathSorting

Car Pooling

Medium

Champagne Tower

Medium

Cheapest Flights Within K Stops

Medium

Check If a String Can Break Another String

MediumStringSorting

Check Knight Tour Configuration

MediumMatrix

Circular Permutation in Binary

MediumMathBit Manipulation

Clone Graph

MediumMathLinked ListTree

Closest Nodes Queries in a Binary Search Tree

MediumArrayBinary SearchLinked List

Coin Change

MediumArrayMath

Coin Change II

MediumArrayMath

Combination Sum

MediumArrayMathSorting

Combination Sum II

MediumMath

Combination Sum III

MediumMath

Compare Version Numbers

Medium

Complex Number Multiplication

MediumStringMath

Consecutive Numbers

MediumSQLMathSorting

Construct Binary Tree from Inorder and Postorder

MediumArrayTreeBinary Tree

Construct Binary Tree from Preorder and Inorder

MediumArrayLinked ListTree

Construct Binary Tree from Preorder and Inorder Traversal

MediumArrayLinked ListTree

Construct BST from Preorder

MediumArrayTreeBinary Search Tree

Construct BST from Preorder Traversal

MediumArrayTreeBinary Search Tree

Construct Quad Tree

MediumLinked ListTreeMatrix

Construct Smallest Number From DI String

MediumStringMath

Container With Most Water

MediumArray

Contiguous Array

MediumArrayMath

Continuous Subarray Sum

MediumArray

Convert Binary Search Tree to Sorted Doubly Linked List

MediumArrayTwo PointersBinary Search

Convert Sorted List to Binary Search Tree

MediumArrayBinary SearchMath

Convert Sorted List to BST

MediumArrayBinary SearchMath

Copy List with Random Pointer

MediumArrayLinked ListGraph

Count and Say

MediumString

Count Battleships

Medium

Count Complete Tree Nodes

MediumBinary SearchMathTree

Count Good Nodes in Binary Tree

MediumMathLinked ListTree

Count Nodes With the Highest Score

MediumArrayLinked ListTree

Count Number of Nice Subarrays

MediumArrayMath

Count Numbers with Unique Digits

MediumMath

Count Pairs in Two Arrays

MediumArray

Count Primes

MediumMath

Count Servers that Communicate

MediumMathMatrix

Count Sorted Vowel Strings

MediumStringMathSorting

Count Subarrays With Max Element Appearing K Times

MediumArrayMath

Count Substrings That Differ by One Character

MediumString

Count Vowel Strings in Ranges

MediumArrayStringSorting

Course Schedule

MediumArraySorting

Course Schedule II

MediumArraySortingGraph

Cumulative Sum of Sales

MediumSQLSortingPrefix Sum

Daily Temperatures

MediumArrayMath

Decode String

MediumStringStack

Decode Ways

MediumStringMath

Decoded String at Index

MediumString

Delete and Earn

MediumArray

Delete Node in a BST

MediumMathLinked ListTree

Delete Node in Linked List

MediumArrayLinked ListGraph

Delete Nodes And Return Forest

MediumArrayLinked ListTree

Delete Operation for Two Strings

MediumStringGreedyMath

Department Highest Salary

MediumSQLSliding WindowSorting

Design Add and Search Words Data Structure

MediumString

Design Browser History

MediumString

Design Circular Queue

MediumArrayQueue

Design File System

Medium

Design Hit Counter

MediumSliding WindowMathSorting

Design Leaderboard

MediumMath

Design Linked List

MediumArrayLinked List

Design Tic-Tac-Toe

MediumArrayMatrixSimulation

Design Twitter

MediumArray

Design Underground System

Medium

Detect Squares

MediumSQL

Determine if Two Strings Are Close

MediumStringHash Table

Diagonal Traverse

MediumSortingMatrix

Distant Barcodes

MediumArray

Distribute Coins in Binary Tree

MediumArrayMathTree

Divide Two Integers

MediumBit Manipulation

Dota2 Senate

MediumSorting

Encode and Decode Strings

MediumArrayString

Equal Row and Column Pairs

MediumMathMatrix

Escape The Ghosts

Medium

Evaluate Reverse Polish Notation

MediumStack

Exam Room

MediumArrayGreedy

Factorial Trailing Zeroes

MediumMath

Find a Peak Element II (2D)

MediumArrayMatrix

Find All Anagrams in a String

MediumStringHash TableSliding Window

Find All Duplicates in an Array

MediumArrayMath

Find All Duplicates in Array

MediumArrayMath

Find All Lonely Numbers

MediumArrayMath

Find And Replace in String

MediumArrayStringSorting

Find Bottom Left Tree Value

MediumLinked ListTreeBinary Tree

Find Duplicate Subtrees

MediumHash TableLinked ListTree

Find Eventual Safe States

MediumLinked ListGraph

Find First and Last Position of Element

MediumArrayBinary SearchSorting

Find Gaps in Sequence

MediumSQLMathSorting

Find K Closest Elements

MediumArraySorting

Find K Pairs with Smallest Sums

MediumArraySortingHeap

Find Minimum in Rotated Sorted Array

MediumArrayBinary SearchSorting

Find Original Array From Doubled

MediumArray

Find Peak Element

MediumArray

Find Right Interval

MediumArray

Find the Celebrity

MediumGraph

Find the Duplicate Number

MediumArrayHash TableMath

Find the Most Competitive Subsequence

MediumArraySorting

Find the Winner of the Circular Game

MediumSortingSimulation

Flatten a Multilevel Doubly Linked List

MediumArrayMathLinked List

Flatten Binary Tree to Linked List

MediumArrayTwo PointersMath

Flatten Nested List Iterator

MediumArray

Flip Binary Tree To Match Preorder

MediumArrayLinked ListTree

Flip Columns For Maximum Number of Equal Rows

MediumMathMatrix

Flower Planting With No Adjacent

Medium

Fraction to Recurring Decimal

MediumStringStack

Fruit Into Baskets

MediumArraySliding Window

Furthest Building You Can Reach

MediumArray

Game of Life

MediumArrayMatrixSimulation

Gas Station

Medium

Generate Parentheses

MediumArrayStringStack

Generate Random Point in a Circle

MediumString

Get Equal Substrings Within Budget

MediumStringSliding Window

Global and Local Inversions

MediumArraySorting

Graph Valid Tree

MediumTreeGraph

Group Anagrams

MediumArrayStringSorting

Grumpy Bookstore Owner

MediumSliding WindowGreedy

H-Index

MediumArray

H-Index II

MediumArrayBinary SearchSorting

Hand of Straights

MediumArray

House Robber

MediumArray

House Robber II

MediumArray

House Robber III

MediumMathLinked ListTree

Immediate Food Delivery

MediumSQLSorting

Implement Trie (Prefix Tree)

MediumArrayStringTree

Increasing Triplet Subsequence

MediumArray

Inorder Successor in BST

MediumArrayMathSorting

Insert Delete GetRandom O(1)

MediumArray

Insert Interval

MediumArraySorting

Integer Break

MediumGreedy

Integer to Roman

MediumString

Interleaving String

MediumStringSorting

Jump Game

MediumArraySimulation

Jump Game II

MediumArrayGreedyMath

K Closest Points to Origin

MediumArray

K-diff Pairs in an Array

MediumArrayMath

K-th Symbol in Grammar

Medium

Keys and Rooms

Medium

Knight Probability in Chessboard

Medium

Koko Eating Bananas

Medium

Kth Largest Element in an Array

MediumArraySorting

Kth Smallest Element in a BST

MediumBinary SearchMathSorting

Kth Smallest Element in a Sorted Matrix

MediumBinary SearchSortingHeap

Kth Smallest Element in Sorted Matrix

MediumBinary SearchSortingHeap

Largest Number

MediumStringMathSorting

Largest Sum of Averages

MediumArray

Last Moment Before All Ants Fall Out

Medium

Length of Longest Fibonacci Subsequence

MediumArrayMath

Letter Case Permutation

MediumStringBacktracking

Letter Combinations of a Phone Number

MediumArrayStringMath

Linked List in Binary Tree

MediumArrayLinked ListTree

Linked List Random Node

MediumArrayMathLinked List

Longest Arithmetic Subsequence

MediumArray

Longest Common Subsequence

MediumStringSorting

Longest Consecutive Sequence

MediumArray

Longest Increasing Subsequence

MediumArraySorting

Longest Nice Subarray

MediumArrayMathBit Manipulation

Longest Palindrome by Concatenating Two Letter Words

MediumArrayString

Longest Palindromic Subsequence

MediumStringSorting

Longest Palindromic Substring

MediumString

Longest Repeating Character Replacement

MediumString

Longest Repeating Substring

MediumString

Longest String Chain

MediumString

Longest Subarray of 1s After Deleting One Element

MediumArray

Longest Substring with At Most K Distinct Characters

MediumString

Longest Substring Without Repeating Characters

MediumString

Longest Turbulent Subarray

MediumArray

Longest Uncommon Subsequence II

MediumArrayString

Longest Word in Dictionary

MediumArrayStringHash Table

Longest Word in Dictionary through Deleting

MediumArrayStringHash Table

Longest ZigZag Path in Binary Tree

MediumLinked ListTreeBinary Tree

Lowest Common Ancestor of a Binary Tree

MediumMathLinked ListTree

Lowest Common Ancestor of Binary Tree

MediumMathLinked ListTree

LRU Cache

MediumString

LRU Cache Implementation

Medium

Majority Element II

MediumArray

Managers With 5+ Reports

MediumSQLSorting

Max Area of Island

MediumMatrix

Max Chunks To Make Sorted

MediumArrayBinary SearchMath

Max Consecutive Ones III

MediumArrayMath

Max Number of K-Sum Pairs

MediumArrayMath

Maximal Square

MediumMatrix

Maximize the Confusion of an Exam

MediumStringGreedy

Maximize Win From Two Segments

MediumArrayGreedyMath

Maximum Average Subtree

MediumArrayMathLinked List

Maximum Binary Tree

MediumArraySortingTree

Maximum Distance in Arrays

MediumArraySorting

Maximum Erasure Value

MediumArrayHash Table

Maximum Ice Cream Bars

MediumGreedyMathSorting

Maximum Length of Pair Chain

Medium

Maximum Level Sum of a Binary Tree

MediumMathLinked ListTree

Maximum Number of Eaten Apples

MediumGreedyMathTree

Maximum Number of Vowels in a Substring

MediumStringSliding WindowMath

Maximum Points You Can Obtain from Cards

MediumArrayGreedyMath

Maximum Product Subarray

MediumArrayBit Manipulation

Maximum Score from Performing Multiplication Operations

MediumArrayGreedy

Maximum Subarray

MediumArrayMath

Maximum Subarray with Jump

MediumArray

Maximum Sum Circular Subarray

MediumArray

Maximum Sum of Distinct Subarrays With Length K

MediumArrayHash Table

Maximum Swap

MediumMathSorting

Maximum Width Ramp

MediumArray

Maximum XOR of Two Numbers in an Array

MediumArrayBit Manipulation

Meeting Rooms II

MediumArrayGreedyMath

Meeting Scheduler

MediumTwo Pointers

Merge Intervals

MediumArray

Merge Intervals II

MediumArray

Merge Triplets to Form Target

MediumArrayMatrix

Min Cost to Connect All Points

MediumArrayHash TableMatrix

Min Stack

MediumArrayStack

Min Stack with Versions

MediumArrayStackMatrix

Minesweeper

MediumDFSBFSSimulation

Minimize Maximum of Array

MediumArray

Minimum Add to Make Parentheses Valid

MediumStringGreedyMath

Minimum Area Rectangle

MediumMatrix

Minimum ASCII Delete Sum for Two Strings

MediumString

Minimum Deletions to Make Character Frequencies Unique

MediumStringHash TableGreedy

Minimum Genetic Mutation

MediumStringGreedyMath

Minimum Height Trees

MediumLinked ListTreeGraph

Minimum Jumps to Reach Home

MediumGreedyMathBFS

Minimum Moves to Equal Array Elements

MediumArrayGreedyMath

Minimum Moves to Equal Array Elements II

MediumArrayGreedyMath

Minimum Number of Arrows to Burst Balloons

MediumGreedyMathMatrix

Minimum Number of Vertices to Reach All Nodes

MediumGreedyMathLinked List

Minimum Operations to Make Median

MediumArrayBinary SearchGreedy

Minimum Operations to Reduce X to Zero

MediumArrayGreedyMath

Minimum Path Sum

MediumPrefix SumMatrix

Minimum Penalty for a Shop

MediumString

Minimum Size Subarray Sum

MediumArray

Minimum Suffix Flips

MediumString

Mirror Reflection

Medium

Monthly Transactions

MediumSQLSorting

Most Stones Removed with Same Row or Column

MediumMatrix

Multiply Strings

MediumStringMath

My Calendar I

Medium

My Calendar II

Medium

N-ary Tree Level Order

MediumArraySortingLinked List

Network Delay Time

MediumLinked ListGraph

New 21 Game

MediumDynamic ProgrammingSimulation

Next Greater Element II (Circular)

MediumArrayMath

Next Greater Element III

MediumMathSortingBit Manipulation

Next Permutation

MediumArraySorting

Node With Highest Edge Score

MediumArrayLinked ListGraph

Non-decreasing Array

MediumArray

Non-overlapping Intervals

MediumArrayGreedyMath

Nth Digit

MediumMath

Nth Highest Salary

MediumSQLSorting

Number of Corner Rectangles

MediumMathMatrix

Number of Good Ways to Split a String

MediumStringMath

Number of Islands

MediumMathMatrix

Number of Longest Increasing Subsequence

MediumArrayMath

Number of Matching Subsequences

MediumArrayStringMath

Number of Pairs of Interchangeable Rectangles

MediumMath

Number of Provinces

MediumMath

Number of Subarrays with Bounded Maximum

MediumArrayMath

Number of Subarrays with Sum

MediumArrayMath

Number of Zero-Filled Subarrays

MediumArrayMath

Odd Even Linked List

MediumMathLinked ListGraph

Online Election

Medium

Online Stock Span

MediumArrayMath

Open the Lock

MediumMath

Optimal Division

MediumArrayStringGreedy

Optimal Partition of String

MediumStringHash TableGreedy

Output Contest Matches

MediumGreedyStack

Pacific Atlantic Water Flow

MediumGraphMatrix

Paint Fence

MediumDynamic ProgrammingMath

Palindrome Partitioning

MediumString

Palindromic Substrings

MediumStringMath

Partition Equal Subset Sum

MediumArrayBacktracking

Partition Labels

MediumString

Path Sum II

MediumMathLinked ListTree

Path Sum III

MediumMathTreeBinary Tree

Path with Maximum Probability

MediumGraph

Path With Minimum Effort

MediumMatrix

Peak Index in a Mountain Array

MediumArrayBinary Search

Perfect Squares

MediumMath

Permutation in String

MediumStringHash TableSorting

Permutations

MediumArraySortingBacktracking

Populating Next Right Pointers in Each Node

MediumArrayMathLinked List

Pow(x, n)

Medium

Pow(x, n) - Fast Exponentiation

MediumMath

Powerful Integers

MediumHash TableSQL

Predict the Winner

MediumArray

Print Binary Tree

MediumArrayStringLinked List

Prison Cells After N Days

MediumArraySimulation

Product of Array Except Self

MediumArrayMath

Push Dominoes

MediumStringSimulation

Queue Reconstruction by Height

MediumMathSortingQueue

Random Flip Matrix

MediumStringMatrix

Random Pick Index

MediumArrayMath

Random Pick with Weight

MediumArray

Random Point in Non-overlapping Rectangles

MediumArray

Range Frequency Queries

MediumArrayHash TableSQL

Range Sum Query - Mutable

MediumArraySQL

Range Sum Query 2D - Immutable

MediumMatrixSQL

Rank Scores

MediumSQLSorting

Reach a Number

MediumGreedyMath

Rearrange Array Elements by Sign

MediumArraySorting

Recover Binary Search Tree

MediumBinary SearchMathSorting

Reduce Array Size to The Half

MediumArrayMath

Redundant Connection

MediumSortingLinked ListTree

Reformat Department Table

MediumSQLSorting

Remove All Adjacent Duplicates in String II

MediumString

Remove Duplicates from Sorted Array II

MediumArrayBinary SearchMath

Remove Duplicates from Sorted List II

MediumArrayHash TableBinary Search

Remove K Digits

MediumStringHash TableMath

Remove Nth Node From End

MediumArrayLinked List

Remove Nth Node From End of List

MediumMathLinked ListGraph

Removing Stars From a String

MediumString

Reorder Data in Log Files

MediumArrayStringSorting

Reorder List

MediumArrayMathLinked List

Reorganize String

MediumStringHash Table

Repeated String Match

MediumStringGreedyMath

Replace the Substring for Balanced String

MediumString

Restore IP Addresses

MediumString

Reveal Cards In Increasing Order

MediumArraySortingQueue

Reverse Words in a String

MediumStringSorting

Reverse Words in a String II

MediumArrayStringSorting

RLE Iterator

MediumArray

Rotate Array

MediumArray

Rotate Image

MediumArrayMatrix

Rotate Image 180

MediumArrayMatrix

Rotate List

MediumArrayLinked List

Rotting Oranges

MediumGreedyMathMatrix

Satisfiability of Equality Equations

Medium

Score After Flipping Matrix

MediumGreedyMathMatrix

Score of Parentheses

MediumStringStack

Search a 2D Matrix

MediumBinary SearchSortingMatrix

Search in Rotated Sorted Array

MediumArrayBinary SearchSorting

Search in Rotated Sorted Array II

MediumArrayHash TableBinary Search

Search Suggestions System

MediumArrayBinary SearchSorting

Second Highest Salary

MediumSQLSorting

Sell Diminishing-Valued Colored Balls

MediumGreedy

Sequence Reconstruction

Medium

Serialize and Deserialize BST

MediumArrayStringBinary Search

Set Matrix Zeroes

MediumArrayMatrix

Set Matrix Zeroes (Constant Space)

MediumArrayMatrix

Shifting Letters

MediumArrayStringPrefix Sum

Short Encoding of Words

MediumArrayString

Shortest Bridge

MediumGreedyMathMatrix

Shortest Path in Binary Matrix

MediumMatrix

Shortest Path with Alternating Colors

MediumLinked ListGraph

Shortest Unsorted Continuous Subarray

MediumArraySorting

Shuffle an Array

MediumArrayHash TableBacktracking

Simplify Path

MediumStringTree

Simplify Unix Path

MediumStringTreeSimulation

Single Element in Sorted Array

MediumArrayBinary SearchSorting

Single Number II

MediumArrayMathBit Manipulation

Single Number III

MediumArrayMathBit Manipulation

Smallest Common Region

MediumTree

Smallest Range II

MediumArray

Smallest String With Swaps

MediumStringMathSorting

Smallest Value After Replacing Primes

MediumMathSimulation

Snakes and Ladders

MediumMathMatrixSimulation

Snapshot Array

MediumArray

Solving Questions With Brainpower

MediumDynamic ProgrammingGreedy

Sort Characters By Frequency

MediumStringHash TableSorting

Sort Colors

MediumArraySorting

Sort List

MediumArrayHash TableBinary Search

Soup Servings

Medium

Spiral Matrix

MediumSortingMatrix

Spiral Matrix II

MediumArrayMathSorting

Split Array into Consecutive Subsequences

MediumArrayBinary SearchSorting

Split Linked List in Parts

MediumArrayLinked ListGraph

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

MediumStringLinked ListTree

Stone Game VII

MediumArrayGreedySimulation

String Compression

MediumArrayString

String to Integer (atoi)

MediumStringBit Manipulation

Subarray Product Less Than K

MediumArrayMath

Subarray Sum Equals K

MediumArrayMath

Subsets

MediumArrayHash TableSorting

Subsets II

MediumArrayHash TableBacktracking

Sum of Beauty of All Substrings

MediumString

Sum of Subarray Minimums

MediumArrayMath

Sum of Two Integers

MediumMathBit Manipulation

Sum of XOR

MediumArrayBacktrackingBit Manipulation

Sum Root to Leaf Numbers

MediumMathLinked ListTree

Super Ugly Number

MediumArrayMath

Surrounded Regions

MediumArrayMatrix

Swap Nodes in Pairs

MediumMathLinked ListGraph

Target Sum

MediumArrayMath

Task Scheduler

MediumArrayMath

Time Based Key-Value Store

MediumString

Time Needed to Inform All Employees

MediumArray

Top K Frequent Elements

MediumArrayMathSorting

Top K Frequent Words

MediumArrayStringHash Table

Total Hamming Distance

MediumArrayMathBit Manipulation

Tree Diameter

MediumMathLinked ListTree

Triangle

MediumArrayMath

Triangle Minimum Path Sum

MediumArray

Trim a Binary Search Tree

MediumArrayBinary SearchMath

Two Sum II - Input Array Is Sorted

MediumArrayHash TableBinary Search

Ugly Number II

MediumMath

Uncrossed Lines

MediumArrayGreedy

Unique Binary Search Trees

MediumBinary SearchMathLinked List

Unique Binary Search Trees II

MediumBinary SearchLinked ListTree

Unique Paths

MediumMathMatrix

Unique Paths II

MediumMatrix

Valid Parenthesis String

MediumStringStack

Valid Sudoku

Medium

Valid Triangle Number

MediumArrayMath

Validate Binary Search Tree

MediumBinary SearchMathLinked List

Validate Stack Sequences

MediumStackSimulation

Verify Preorder Sequence in BST

MediumArrayBinary SearchStack

Verify Preorder Serialization

MediumStringLinked ListTree

Verify Preorder Serialization of Binary Tree

MediumStringLinked ListTree

Video Stitching

MediumGreedyMath

Walking Robot Simulation

MediumMatrixSimulation

Walls and Gates

MediumArrayBFSMatrix

Ways to Split Array Into Three Subarrays

MediumArrayBinary SearchSorting

Wiggle Sort II

MediumArraySorting

Winning Candidate

MediumSQLSorting

Word Break

MediumStringHash Table

Word Search

MediumStringMatrix

XOR Queries of a Subarray

MediumArrayBit ManipulationSQL

Zigzag Conversion

MediumStringMath

Zigzag Iterator

MediumArraySorting

Alien Dictionary

HardStringHash TableSorting

Arithmetic Slices II - Subsequence

HardArrayMath

Basic Calculator

HardStringStack

Best Time to Buy and Sell Stock IV

HardArray

Binary Tree Cameras

HardMathLinked ListTree

Binary Tree Maximum Path Sum

HardMathLinked ListTree

Burst Balloons

HardMathSorting

Candy

HardArray

Cherry Pickup

HardDynamic ProgrammingMatrixSimulation

Cherry Pickup II

HardMatrix

Concatenated Words

HardArrayString

Consecutive Numbers Sum

HardMath

Constrained Subsequence Sum

HardArray

Contains Duplicate III

HardArrayHash Table

Count Different Palindromic Subsequences

HardStringMath

Count of Range Sum

HardArrayMath

Count of Smaller Numbers After Self

HardArrayHash TableMath

Count Subarrays With Fixed Bounds

HardArrayMath

Count Subarrays With Score Less Than K

HardArrayMath

Count Vowels Permutation

HardStringDynamic ProgrammingGraph

Count Ways to Build Rooms in an Ant Colony

HardMathSortingTree

Couples Holding Hands

HardGreedyMath

Course Schedule III

HardMathSorting

Create Maximum Number

HardArrayMathSorting

Critical Connections in a Network

HardLinked ListGraph

Decode Ways II

HardStringMath

Distinct Echo Substrings

HardStringMath

Distinct Subsequences

HardStringMathSorting

Dungeon Game

HardSimulation

Edit Distance

HardStringDynamic ProgrammingGreedy

Employee Free Time

Hard

Expression Add Operators

HardStringMath

Find Array Given Subset Sums

HardArrayBacktracking

Find K-th Smallest Pair Distance

HardArraySorting

Find Longest Awesome Substring

HardString

Find Median from Data Stream

HardSorting

Find Median Salary

HardSQLMathSorting

Find Minimum in Rotated Sorted Array II

HardArrayBinary SearchSorting

Find the Shortest Superstring

HardArrayString

First Missing Positive

HardArray

Freedom Trail

HardStringGreedyMath

Frog Jump

Hard

Integer to English Words

HardString

IPO

HardArrayGreedy

K Inverse Pairs Array

HardArrayMath

Kth Smallest Number in Multiplication Table

HardMathSortingSQL

Largest Rectangle in Histogram

HardArrayStack

LFU Cache

Hard

Longest Consecutive Sequence II

HardArray

Longest Duplicate Substring

HardStringHash TableBinary Search

Longest Increasing Path in a Matrix

HardDynamic ProgrammingDFSMatrix

Longest Path With Different Adjacent Characters

HardLinked ListTreeGraph

Longest Valid Parentheses

HardStringStack

Make Array Strictly Increasing

HardArraySorting

Matrix Chain Multiplication

HardArrayGreedyMath

Max Chunks To Make Sorted II

HardArrayBinary SearchMath

Max Points on a Line

HardArrayMath

Max Sum of Rectangle No Larger Than K

HardMatrix

Max Value of Equation

HardArraySorting

Maximal Rectangle

HardMatrix

Maximum Frequency Stack

HardHash TableStackSQL

Maximum Performance of a Team

HardArrayMathSQL

Maximum Profit in Job Scheduling

HardArrayBinary SearchDynamic Programming

Maximum Score Words Formed by Letters

HardArrayBacktracking

Maximum Segment Sum After Removals

HardArraySorting

Median of Two Sorted Arrays

HardArraySorting

Merge k Sorted Lists

HardArraySortingHeap

Minimize Deviation in Array

HardArray

Minimize Malware Spread

HardMathLinked ListGraph

Minimize Max Distance to Gas Station

HardArray

Minimum Cost to Hire K Workers

HardArray

Minimum Cost to Merge Stones

HardArray

Minimum Interval to Include Each Query

HardArrayMatrixSQL

Minimum Money Required Before Transactions

HardArraySorting

Minimum Number of Refueling Stops

HardGreedyMath

Minimum Number of Visited Cells in a Grid

HardGreedyMathMatrix

Minimum Window Subsequence

HardStringSliding WindowSorting

Minimum Window Substring

HardStringSliding Window

N-Queens

HardBacktracking

Non-negative Integers without Consecutive Ones

HardMath

Number of Atoms

HardStringMathSorting

Number of Digit One

HardMath

Number of Islands II

HardMathMatrix

Number of Ways to Stay in the Same Place

HardArrayMath

Numbers At Most N Given Digit Set

Hard

Optimal Account Balancing

HardArrayGreedyMath

Orderly Queue

HardStringMathQueue

Palindrome Pairs

HardString

Palindrome Partitioning II

HardStringMath

Parallel Courses III

Hard

Patching Array

HardArrayGreedyMath

Permutation Sequence

HardSortingBacktracking

Poor Pigs

Hard

Prefix and Suffix Search

Hard

Preimage Size of Factorial Zeroes Function

HardMath

Profitable Schemes

Hard

Race Car

HardGreedyMath

Reachable Nodes In Subdivided Graph

HardLinked ListGraph

Reaching Points

Hard

Rearrange String k Distance Apart

HardStringHash TableGreedy

Reconstruct Itinerary

HardGreedySorting

Regular Expression Matching

HardStringDynamic Programming

Reverse Nodes in k-Group

HardMathLinked ListGraph

Russian Doll Envelopes

HardMath

Scramble String

HardStringDynamic ProgrammingRecursion

Self Crossing

HardArray

Serialize and Deserialize Binary Tree

HardArrayStringMath

Serialize and Deserialize N-ary Tree

HardArrayStringLinked List

Shortest Distance from All Buildings

HardMatrix

Shortest Palindrome

HardString

Shortest Path in a Grid with Obstacles Elimination

HardMatrix

Shortest Subarray with Sum at Least K

HardArrayQueue

Similar String Groups

HardStringMath

Sliding Window Maximum

HardArraySliding Window

Sliding Window Median

HardArraySliding WindowSorting

Smallest Good Base

HardString

Smallest Range Covering Elements from K Lists

HardMathSorting

Smallest Sufficient Team

HardArrayMathSQL

Split Array Largest Sum

HardArray

Split Array With Same Average

HardArrayBacktracking

Stamping The Sequence

HardArrayString

Stickers to Spell Word

HardStringGreedyMath

Strange Printer

HardStringDynamic ProgrammingGreedy

Stream of Characters

HardArrayStringHash Table

Strong Password Checker

Hard

Student Attendance Record II

HardStringMath

Subarrays with K Different Integers

HardArrayMath

Sudoku Solver

HardArrayMatrix

Sum of Distances in Tree

HardArrayLinked ListTree

Super Egg Drop

HardGreedyMath

Swim in Rising Water

HardMatrix

Tallest Billboard

HardArrayBacktracking

Text Justification

HardArrayString

Top Three Salaries by Department

HardSQLSliding WindowSorting

Trapping Rain Water

Hard

Valid Number

HardStringMath

Vertical Order Traversal of a Binary Tree

HardArrayMathSorting

Wildcard Matching

HardString

Word Break II

HardStringHash TableGreedy

Word Ladder

HardHash TableMathBFS

Word Ladder II

HardHash TableSQL

Word Search II

HardString

Zuma Game

HardSimulation