AlgoLounge

Questions

Every question from every semester, A to Z.

All questions

3Sum
two-pointers
medium
4Sum
two-pointers
medium
Adapter Pattern
design-patterns
easy
Add Binary
medium
Add Two Numbers
linked-list
medium
Alex's Brew Coffee Shop Billing
easy
Alice Typing Problem
medium
Alien Dictionary
graphtopological-sort
hard
Alphabetical Order Checker
easy
Apply Discount to Prices
string
medium
Assign Cookies
greedy
easy
Asteroid Collision
medium
Backspace String Compare
stack
easy
Balanced Binary Tree
trees
easy
Baseball Game
medium
Basic Calculator
stack
hard
Best Time to Buy and Sell Stock
sliding-window
easy
Best Time to Buy and Sell Stock II
greedy
medium
Binary Representation
easy
Binary Search
arraybinary-search
easy
Binary Tree Inorder Traversal
medium
Binary Tree Level Order Traversal
trees
medium
Binary Tree Maximum Path Sum
trees
hard
Binary Tree Postorder Traversal
medium
Binary Tree Preorder Traversal
medium
Binary Tree Right Side View
medium
Bitwise AND of Numbers Range
medium
Boats to Save People
medium
Building Boxes
math
hard
Burst Balloons
2d-dynamic-programming
hard
Caffeine Calculator
easy
Calculate Amount Paid in Taxes
array
easy
Calculate Money in Leetcode Bank
math
easy
Can Place Flowers
arraygreedy
easy
Canadian Province Validator
easy
Candy
medium
Candy Crush
array
medium
Car Fleet
stack
medium
Car Pooling
medium
Check if a String Is an Acronym of Words
array
easy
Check If Digits Are Equal in String After Operations II
math
hard
Check if Strings Can be Made Equal With Operations I
string
easy
Cinema Seat Allocation
arrayhash-mapbit-manipulationgreedy
medium
Climbing Stairs
dynamic-programming
easy
Clone Graph
graphbfsdfshash-map
medium
Coffee Sales Projection
medium
Coin Change
dynamic-programming
medium
Concatenation of Array
medium
Construct Binary Tree from Preorder and Inorder Traversal
medium
Construct String With Repeat Limit
stringgreedyheap-priority-queue
medium
Container With Most Water
two-pointers
medium
Contains Duplicate
arrays-and-hashing
easy
Copy List with Random Pointer
linked-list
medium
Count Number of Homogenous Substrings
math
medium
Count Valid Sequences
math
medium
Count Vowels
easy
Course Schedule
graphtopological-sort
medium
Course Schedule II
graphtopological-sort
medium
Daily Temperatures
stack
medium
Decode String
stack
medium
Decrease Elements To Make Array Zigzag
array
medium
Defanging an IP Address
string
easy
Delivering Boxes from Storage to Ports
array
hard
Design HashMap
hash-map
easy
Design HashSet
hash-set
easy
Design Twitter
heap-priority-queue
medium
Detect Capital
string
easy
Diameter of Binary Tree
trees
easy
Diameter of Binary Tree
tree
easy
Dice Ways
dynamic-programming
medium
Digit Frequency Score
hash-table
easy
Distinct Subsequences
dynamic-programming
hard
Edit Distance
dynamic-programming
hard
Employee Free Time
intervals
hard
Evaluate Reverse Polish Notation
medium
Factory Method Pattern
design-patterns
easy
Fahrenheit to Celsius
math
easy
Fibonacci Number
math
easy
Find in Mountain Array
array
hard
Find Kth Largest XOR Coordinate Value
array
medium
Find Maximum Non-decreasing Array Length
queuedynamic-programming
hard
Find Median From Data Stream
heap-priority-queue
hard
Find Minimum in Rotated Sorted Array
binary-search
medium
Find the Duplicate Number
medium
Find the Town Judge
graph
easy
Find the Winner of the Circular Game
queuesimulation
medium
First Unique Character in a String
string
easy
Fraction to Recurring Decimal
hash-map
medium
Generate Parentheses
medium
Goal Parser Interpretation
string
easy
Greatest Common Divisor (GCD)
easy
Group Anagrams
medium
Group Anagrams
array
medium
Hello World
easy
House Robber
dynamic-programming
medium
HW13 - Coffee Production Scheduler
medium
Implement Linked List
linked-listdata-structure-design
easy
Implement Queue
queuedata-structure-design
easy
Implement Queue Using Stacks
queuestack
easy
Implement Stack
stackdata-structure-design
easy
Implement Stack using Queues
stackqueue
easy
Implement Trie (Prefix Tree)
trie
medium
Insert Interval
intervals
medium
Interleaving String
dynamic-programming
hard
Intersection of Two Linked Lists
linked-listtwo-pointers
easy
Invert Binary Tree
trees
easy
Jump Game
greedy
medium
Koko Eating Bananas
binary-search
medium
Kth Largest Element in a Stream
heap-priority-queue
easy
Kth Smallest Element in a BST
trees
medium
Largest Integer With Given Digit Sum
math
easy
Largest Rectangle In Histogram
stack
hard
Largest Submatrix With Rearrangements
array
medium
Last Even Index
easy
Last Stone Weight
heap-priority-queue
easy
Lemonade Change
greedy
easy
Limit Occurrences in Sorted Array
array
easy
Linked List Cycle Detection
linked-list
easy
Linked List Cycle II
linked-listtwo-pointers
medium
Longest Common Prefix of K Strings After Removal
array
hard
Longest Common Subsequence
medium
Longest Consecutive Sequence
arrays-and-hashing
medium
Longest Increasing Path in a Matrix
2d-dynamic-programming
hard
Longest Palindrome
stringhash-mapgreedy
easy
Longest Palindromic Substring
medium
Longest Repeating Character Replacement
sliding-window
medium
Longest Substring Without Repeating Characters
sliding-window
medium
Longest Valid Parentheses
stackdynamic-programming
hard
Longest Word in Dictionary
stringtrie
easy
Lowest Common Ancestor of a Binary Search Tree
trees
medium
LRU Cache
arrays-and-hashing
hard
Majority Element
arrays-and-hashingbit-manipulation
easy
Manhattan Distances of All Arrangements of Pieces
math
hard
Max Area of Island
graphdfsmatrix
medium
Maximal Rectangle
stack
hard
Maximize Pair Strength Using GCD
array
easy
Maximize Value of Function in a Ball Passing Game
array
hard
Maximum Depth of Binary Tree
trees
easy
Maximum Element-Sum of a Complete Subset of Indices
array
hard
Maximum Frequency Stack
stackhash-map
hard
Maximum Height by Stacking Cuboids
array
hard
Maximum Manhattan Distance After K Changes
hash-table
medium
Maximum Number of Distinct Elements After Operations
array
medium
Maximum Number of Tasks You Can Assign
queuebinary-search
hard
Maximum Points After Collecting Coins From All Nodes
array
hard
Maximum Score with Co-Prime Element
array
hard
Maximum Subarray
dynamic-programming
medium
Maximum Subarray Sum After Multiplier
array
medium
Maximum Value of K Coins From Piles
array
hard
Median of Two Sorted Arrays
binary-search
hard
Meeting Rooms
intervals
easy
Meeting Rooms II
intervalsheap-priority-queue
medium
Merge Intervals
intervals
medium
Merge k Sorted Lists
linked-list
hard
Merge Strings Alternately
medium
Merge Two Sorted Linked Lists
linked-list
easy
Middle of the Linked List
linked-list
easy
Min Cost Climbing Stairs
dynamic-programming
easy
Min Stack
stack
easy
Minimum Deletions to Make Array Beautiful
array
medium
Minimum Interval to Include Each Query
intervals
hard
Minimum Number of Coins for Fruits
queuedynamic-programming
medium
Minimum Number of People to Teach
array
medium
Minimum Number of Refueling Stops
greedyheap-priority-queue
hard
Minimum Sum of Mountain Triplets I
array
easy
Minimum Time to Reach Target With Limited Power
array
hard
Minimum Window Substring
sliding-window
hard
Missing Number
medium
Most Frequent Element
easy
Move Zeroes
arrays-and-hashingtwo-pointers
easy
Multiple Check
easy
N-ary Tree Preorder Traversal
stack
easy
N-Queens
backtracking
hard
N-Queens II
backtracking
hard
Next Greater Element
stack
medium
Non-Overlapping Intervals
intervals
medium
Number of 1 Bits
bit-manipulation
easy
Number of Distinct Roll Sequences
dynamic-programming
hard
Number of Equivalent Domino Pairs
array
easy
Number of Islands
graphdfsbfsmatrix
medium
Number of Provinces
depth-first-search
medium
Number of Recent Calls
queue
easy
Number of Visible People in a Queue
stack
hard
Odd Even Linked List
linked-list
medium
Online Stock Span
stack
medium
Pacific Atlantic Water Flow
graphdfs
medium
Palindrome Checker
easy
Palindrome Linked List
linked-listtwo-pointers
easy
Palindrome Number
arrays-and-hashing
easy
Path Sum
trees
easy
Permutation In String
sliding-window
medium
Plus One
arrays-and-hashing
easy
Pow(x, n)
math
medium
Power of Two
math
easy
Product of Array Except Self
arrays-and-hashing
medium
Prototype Pattern
design-patterns
easy
Put Marbles in Bags
arraygreedysortingheap-priority-queue
hard
Rank Transform of a Matrix
union-findmatrix
hard
Ransom Note
hash-table
easy
Rearranging Fruits
arrayhash-mapgreedysorting
hard
Reconstruct Itinerary
advanced-graphs
hard
Redundant Connection II
graphunion-find
hard
Regular Expression Matching
2d-dynamic-programming
hard
Remove Digit From Number to Maximize Result
string
easy
Remove Duplicates from Sorted Array
two-pointers
easy
Remove Element
arrays-and-hashingtwo-pointers
easy
Remove Nth Node From End of List
linked-list
medium
Reorder Linked List
linked-list
medium
Repeated DNA Sequences
hash-mapsliding-window
medium
Replace Words
trie
medium
Reverse Integer
bit-manipulation
medium
Reverse Linked List
linked-listpointers
easy
Reverse Nodes in K-Group
linked-list
hard
Reverse String II
two-pointers
easy
Reverse Vowels of a String
stringtwo-pointers
easy
Richest Customer Wealth
array
easy
Roman to Integer
arrays-and-hashing
easy
Rotate Image
array
medium
Rotting Oranges
graphbfsmatrix
medium
Same Tree
trees
easy
Search a 2D Matrix
binary-search
medium
Search in Rotated Sorted Array
binary-search
medium
Search Insert Position
binary-searcharray
easy
Select K Disjoint Special Substrings
hash-table
medium
Serialize and Deserialize Binary Tree
trees
hard
Shortest Matching Substring
two-pointers
hard
Shortest Path With At Most K Consecutive Identical Characters
string
medium
Shut the Box
matrixbfs3d-geometryenumeration
hard
Simplify Path
stackstring
medium
Single Number
bit-manipulation
easy
Sliding Window Maximum
sliding-window
hard
Sort Colors
arrays-and-hashingtwo-pointers
medium
Sort List
linked-list
hard
Sort Matrix by Diagonals
array
medium
Steps to Make Array Non-decreasing
array
medium
String Comparison
easy
String Matching
easy
String Reversal
easy
String Transformation
math
hard
Subsets
backtracking
medium
Subtree of Another Tree
trees
easy
Sudoku Solver
backtracking
hard
Sum of Digits Times Seven
easy
Sum of Two Integers
bit-manipulation
medium
Sum of Unique Elements
array
easy
Sum Two Integers
easy
Summary Ranges
intervals
easy
Swim in Rising Water
graphbfsheap-priority-queue
hard
Symmetric Tree
trees
easy
Top K Frequent Elements
arrays-and-hashing
medium
Trapping Rain Water
two-pointers
hard
Tribonacci Sequence
dynamic-programming
medium
Two Sum
arrayhash-map
easy
Two Sum II - Input Array Is Sorted
two-pointers
medium
Unique Paths
dynamic-programming
medium
Valid Anagram
stringhash-mapsorting
easy
Valid Binary Strings With Cost Limit
string
medium
Valid Parentheses
stack
easy
Valid Parenthesis String
stackgreedy
medium
Valid Sudoku
arrays-and-hashing
medium
Validate Binary Search Tree
trees
medium
Word Ladder
graph
hard
Word Pattern
arrays-and-hashing
easy
Word Search II
tries
hard