CrackIt
DSA
System Design
Core CS
SQL
SE
Aptitude
HR
Sign in with Google
DSA Questions
225 questions · sorted by topic progression · click any question to open on LeetCode
225 / 225
0
Difficulty
easy
medium
hard
Topic
arrays
strings
two pointers
sliding window
binary search
stacks
queues
linked lists
trees
heaps
graphs
backtracking
greedy
dp
math
Company
google
amazon
microsoft
meta
flipkart
swiggy
zomato
atlassian
salesforce
adobe
goldman_sachs
jpmorgan
morgan_stanley
bny_mellon
deutsche_bank
wells_fargo
Two Sum
arrays
10 co.
easy
Best Time to Buy and Sell Stock
arrays
7 co.
easy
Contains Duplicate
arrays
6 co.
easy
Maximum Subarray
arrays
dp
11 co.
easy
Move Zeroes
arrays
two pointers
5 co.
easy
Single Number
arrays
3 co.
easy
Intersection of Two Arrays II
arrays
3 co.
easy
Plus One
arrays
2 co.
easy
Merge Sorted Array
arrays
two pointers
6 co.
easy
Pascal's Triangle
arrays
dp
3 co.
easy
Valid Anagram
strings
7 co.
easy
Valid Palindrome
strings
two pointers
6 co.
easy
Reverse String
strings
two pointers
3 co.
easy
First Unique Character in a String
strings
4 co.
easy
Implement strStr()
strings
two pointers
4 co.
easy
Longest Common Prefix
strings
4 co.
easy
Roman to Integer
strings
math
4 co.
easy
Count and Say
strings
3 co.
easy
3Sum
arrays
two pointers
7 co.
medium
Product of Array Except Self
arrays
5 co.
medium
Find Minimum in Rotated Sorted Array
arrays
binary search
5 co.
medium
Search in Rotated Sorted Array
arrays
binary search
6 co.
medium
Container With Most Water
arrays
two pointers
5 co.
medium
Rotate Array
arrays
3 co.
medium
Subarray Sum Equals K
arrays
4 co.
medium
Sort Colors
arrays
two pointers
5 co.
medium
Next Permutation
arrays
two pointers
3 co.
medium
Jump Game
arrays
greedy
6 co.
medium
Spiral Matrix
arrays
5 co.
medium
Set Matrix Zeroes
arrays
4 co.
medium
Two Sum II
arrays
two pointers
3 co.
medium
4Sum
arrays
two pointers
2 co.
medium
Remove Duplicates from Sorted Array
arrays
two pointers
5 co.
easy
Trapping Rain Water
arrays
two pointers
8 co.
hard
Squares of a Sorted Array
arrays
two pointers
3 co.
easy
Longest Substring Without Repeating Characters
strings
sliding window
9 co.
medium
Minimum Window Substring
strings
sliding window
6 co.
hard
Permutation in String
strings
sliding window
4 co.
medium
Longest Repeating Character Replacement
strings
sliding window
4 co.
medium
Maximum Sum Subarray of Size K
arrays
sliding window
3 co.
medium
Binary Search
arrays
binary search
6 co.
easy
Search a 2D Matrix
arrays
binary search
6 co.
medium
Koko Eating Bananas
arrays
binary search
2 co.
medium
Median of Two Sorted Arrays
arrays
binary search
5 co.
hard
Find Peak Element
arrays
binary search
5 co.
medium
Time Based Key-Value Store
arrays
binary search
3 co.
medium
Valid Parentheses
stacks
9 co.
easy
Min Stack
stacks
6 co.
medium
Evaluate Reverse Polish Notation
stacks
3 co.
medium
Daily Temperatures
stacks
5 co.
medium
Car Fleet
stacks
2 co.
medium
Largest Rectangle in Histogram
stacks
6 co.
hard
Next Greater Element I
stacks
2 co.
easy
Implement Queue using Stacks
stacks
queues
4 co.
easy
Reverse Linked List
linked lists
10 co.
easy
Merge Two Sorted Lists
linked lists
7 co.
easy
Linked List Cycle
linked lists
two pointers
8 co.
easy
Remove Nth Node From End of List
linked lists
two pointers
4 co.
medium
Reorder List
linked lists
two pointers
4 co.
medium
LRU Cache
linked lists
8 co.
medium
Merge K Sorted Lists
linked lists
heaps
6 co.
hard
Copy List with Random Pointer
linked lists
5 co.
medium
Find the Duplicate Number
linked lists
two pointers
3 co.
medium
Reverse Nodes in k-Group
linked lists
4 co.
hard
Invert Binary Tree
trees
6 co.
easy
Maximum Depth of Binary Tree
trees
6 co.
easy
Symmetric Tree
trees
4 co.
easy
Path Sum
trees
3 co.
easy
Binary Tree Level Order Traversal
trees
9 co.
medium
Validate Binary Search Tree
trees
7 co.
medium
Lowest Common Ancestor of BST
trees
7 co.
medium
Binary Tree Right Side View
trees
5 co.
medium
Count Good Nodes in Binary Tree
trees
3 co.
medium
Kth Smallest Element in BST
trees
4 co.
medium
Construct Binary Tree from Preorder and Inorder
trees
5 co.
medium
Binary Tree Maximum Path Sum
trees
6 co.
hard
Serialize and Deserialize Binary Tree
trees
5 co.
hard
Diameter of Binary Tree
trees
6 co.
easy
Balanced Binary Tree
trees
5 co.
easy
Kth Largest Element in an Array
heaps
arrays
8 co.
medium
Top K Frequent Elements
heaps
arrays
8 co.
medium
Find Median from Data Stream
heaps
6 co.
hard
Task Scheduler
heaps
greedy
5 co.
medium
K Closest Points to Origin
heaps
arrays
4 co.
medium
Number of Islands
graphs
12 co.
medium
Clone Graph
graphs
6 co.
medium
Max Area of Island
graphs
4 co.
medium
Pacific Atlantic Water Flow
graphs
5 co.
medium
Surrounded Regions
graphs
3 co.
medium
Rotting Oranges
graphs
6 co.
medium
Course Schedule
graphs
8 co.
medium
Course Schedule II
graphs
5 co.
medium
Graph Valid Tree
graphs
4 co.
medium
Number of Connected Components
graphs
3 co.
medium
Redundant Connection
graphs
3 co.
medium
Word Ladder
graphs
5 co.
hard
Walls and Gates
graphs
5 co.
medium
Alien Dictionary
graphs
5 co.
hard
Swim in Rising Water
graphs
2 co.
hard
Network Delay Time
graphs
5 co.
medium
Subsets
backtracking
5 co.
medium
Combination Sum
backtracking
6 co.
medium
Permutations
backtracking
5 co.
medium
Word Search
backtracking
6 co.
medium
Palindrome Partitioning
backtracking
4 co.
medium
Letter Combinations of a Phone Number
backtracking
5 co.
medium
N-Queens
backtracking
4 co.
hard
Subsets II
backtracking
3 co.
medium
Jump Game II
greedy
arrays
6 co.
medium
Gas Station
greedy
4 co.
medium
Hand of Straights
greedy
2 co.
medium
Partition Labels
greedy
3 co.
medium
Valid Parenthesis String
greedy
stacks
4 co.
medium
Merge Intervals
greedy
arrays
11 co.
medium
Insert Interval
greedy
arrays
6 co.
medium
Non-overlapping Intervals
greedy
arrays
4 co.
medium
Climbing Stairs
dp
8 co.
easy
Min Cost Climbing Stairs
dp
3 co.
easy
House Robber
dp
5 co.
medium
House Robber II
dp
4 co.
medium
Longest Palindromic Substring
dp
strings
5 co.
medium
Palindromic Substrings
dp
strings
3 co.
medium
Decode Ways
dp
strings
6 co.
medium
Coin Change
dp
9 co.
medium
Maximum Product Subarray
dp
arrays
5 co.
medium
Word Break
dp
strings
9 co.
medium
Longest Increasing Subsequence
dp
8 co.
medium
Partition Equal Subset Sum
dp
4 co.
medium
Unique Paths
dp
5 co.
medium
Longest Common Subsequence
dp
strings
6 co.
medium
Best Time to Buy and Sell Stock with Cooldown
dp
arrays
3 co.
medium
Coin Change II
dp
4 co.
medium
Target Sum
dp
backtracking
4 co.
medium
Interleaving String
dp
strings
4 co.
medium
Longest Increasing Path in a Matrix
dp
graphs
4 co.
hard
Distinct Subsequences
dp
strings
3 co.
hard
Edit Distance
dp
strings
6 co.
medium
Burst Balloons
dp
5 co.
hard
Regular Expression Matching
dp
strings
5 co.
hard
Cheapest Flights Within K Stops
graphs
6 co.
medium
Path with Maximum Probability
graphs
3 co.
medium
Reconstruct Itinerary
graphs
4 co.
hard
Min Cost to Connect All Points
graphs
4 co.
medium
Find Critical and Pseudo-Critical Edges
graphs
3 co.
hard
Reverse Bits
math
4 co.
easy
Number of 1 Bits
math
4 co.
easy
Counting Bits
dp
math
3 co.
easy
Missing Number
math
arrays
4 co.
easy
Sum of Two Integers
math
4 co.
medium
Pow(x, n)
math
4 co.
medium
Group Anagrams
strings
8 co.
medium
Longest Palindrome
strings
3 co.
easy
Encode and Decode Strings
strings
5 co.
medium
Find All Anagrams in a String
strings
sliding window
4 co.
medium
Minimum Number of Arrows to Burst Balloons
greedy
arrays
3 co.
medium
Basic Calculator II
stacks
strings
4 co.
medium
Implement Trie
trees
5 co.
medium
Design Add and Search Words Data Structure
trees
4 co.
medium
Word Search II
trees
backtracking
4 co.
hard
Meeting Rooms
arrays
greedy
5 co.
easy
Meeting Rooms II
heaps
greedy
6 co.
medium
Flood Fill
graphs
4 co.
easy
Maximum Meetings in One Room
greedy
3 co.
medium
Minimum Platforms
greedy
arrays
5 co.
medium
Stock Buy and Sell Multiple
greedy
arrays
4 co.
medium
Rat in a Maze
backtracking
graphs
3 co.
medium
Reverse Words in a String
strings
4 co.
medium
Rotate Image
arrays
6 co.
medium
Decode String
stacks
strings
4 co.
medium
Random Pick with Weight
math
binary search
4 co.
medium
Design HashMap
arrays
4 co.
easy
Insert Delete GetRandom O(1)
arrays
5 co.
medium
LFU Cache
linked lists
5 co.
hard
Alien Dictionary Verify Order
strings
3 co.
easy
Sliding Window Maximum
sliding window
queues
6 co.
hard
Word Break II
dp
backtracking
5 co.
hard
Number of Ways to Reorder Array to Get Same BST
trees
dp
2 co.
hard
Maximum Width of Binary Tree
trees
4 co.
medium
Flatten Binary Tree to Linked List
trees
linked lists
5 co.
medium
Populating Next Right Pointers in Each Node
trees
4 co.
medium
Check Completeness of a Binary Tree
trees
3 co.
medium
All Nodes Distance K in Binary Tree
trees
graphs
4 co.
medium
Amount of Time for Binary Tree to Be Infected
trees
graphs
3 co.
medium
Count Complete Tree Nodes
trees
binary search
3 co.
easy
Find Duplicate Subtrees
trees
3 co.
medium
Number of Provinces
graphs
5 co.
medium
Shortest Path in Binary Matrix
graphs
4 co.
medium
As Far from Land as Possible
graphs
3 co.
medium
Evaluate Division
graphs
5 co.
medium
Minimum Height Trees
graphs
trees
4 co.
medium
Keys and Rooms
graphs
3 co.
medium
Find the Town Judge
graphs
3 co.
easy
Course Schedule IV
graphs
3 co.
medium
Maximum Number of Vowels in a Substring
sliding window
strings
3 co.
medium
Minimum Size Subarray Sum
sliding window
arrays
5 co.
medium
Frequency of the Most Frequent Element
sliding window
arrays
3 co.
medium
Fruit Into Baskets
sliding window
arrays
3 co.
medium
Longest Subarray of 1s After Deleting One Element
sliding window
arrays
3 co.
medium
Maximum Consecutive Ones III
sliding window
arrays
4 co.
medium
Minimum Consecutive Cards to Pick Up
sliding window
arrays
2 co.
medium
Convert Binary Number in Linked List to Integer
linked lists
math
1 co.
easy
Asteroid Collision
stacks
arrays
3 co.
medium
Find First and Last Position of Element in Sorted Array
arrays
binary search
4 co.
medium
Game of Life
arrays
3 co.
medium
First Missing Positive
arrays
4 co.
hard
Find All Numbers Disappeared in an Array
arrays
4 co.
easy
Set Mismatch
arrays
math
3 co.
easy
Find All Duplicates in an Array
arrays
4 co.
medium
132 Pattern
stacks
arrays
3 co.
medium
Isomorphic Strings
strings
4 co.
easy
Happy Number
math
two pointers
4 co.
easy
Linked List Cycle II
linked lists
two pointers
4 co.
medium
Add Two Numbers
linked lists
math
6 co.
medium
Swap Nodes in Pairs
linked lists
4 co.
medium
Rotate List
linked lists
two pointers
4 co.
medium
Range Sum Query - Immutable
arrays
dp
4 co.
easy
Continuous Subarray Sum
arrays
math
4 co.
medium
Accounts Merge
graphs
strings
5 co.
medium
Minimum Number of Platforms
arrays
greedy
6 co.
medium
Median of Two Sorted Arrays
arrays
binary search
5 co.
hard
Count Subsequences That Satisfy the Given Sum Condition
arrays
two pointers
3 co.
medium
Design Hit Counter
queues
binary search
5 co.
medium
Maximum Product of Word Lengths
arrays
math
3 co.
medium
Number of Submatrices That Sum to Target
arrays
dp
4 co.
hard
Minimum Platforms Required
arrays
greedy
4 co.
medium