Codedale
Codedale
Home
Jobs
Roadmaps
Companies
Career Paths
DSA Sheet
Toggle navigation menu
Codedale
Toggle theme
Sign in
Microsoft
Previous Year Questions
Copy List with Random Pointer
Medium
Two Sum
Easy
LRU Cache
Medium
Spiral Matrix
Medium
Integer to English Words
Hard
Find the Celebrity
Medium
Design Tic-Tac-Toe
Medium
Add Two Numbers
Medium
Trapping Rain Water
Hard
Reverse Linked List
Easy
Longest Palindromic Substring
Medium
String to Integer (atoi)
Medium
Number of Islands
Medium
Median of Two Sorted Arrays
Hard
Reverse Words in a String II
Medium
Merge Sorted Array
Easy
Merge Two Sorted Lists
Easy
Letter Combinations of a Phone Number
Medium
The Skyline Problem
Hard
Compare Version Numbers
Medium
Reverse Nodes in k-Group
Hard
Search a 2D Matrix II
Medium
Meeting Rooms II
Medium
Regular Expression Matching
Hard
Maximum Subarray
Easy
Search in Rotated Sorted Array
Medium
Serialize and Deserialize Binary Tree
Hard
Lowest Common Ancestor of a Binary Tree
Medium
Add Two Numbers II
Medium
Populating Next Right Pointers in Each Node
Medium
Merge k Sorted Lists
Hard
Valid Parentheses
Easy
Remove K Digits
Medium
Reverse Words in a String III
Easy
Remove Comments
Medium
Sort Colors
Medium
Swap Nodes in Pairs
Medium
Reverse Words in a String
Medium
Encode and Decode TinyURL
Medium
Rotate Image
Medium
Validate Binary Search Tree
Medium
Excel Sheet Column Title
Easy
Construct Binary Tree from Preorder and Inorder Traversal
Medium
Battleships in a Board
Medium
Rectangle Area
Medium
Excel Sheet Column Number
Easy
Best Time to Buy and Sell Stock
Easy
Basic Calculator
Hard
Maximum Length of a Concatenated String with Unique Characters
Medium
Wildcard Matching
Hard
Valid Tic-Tac-Toe State
Medium
Boundary of Binary Tree
Medium
Gas Station
Medium
Generate Parentheses
Medium
Set Matrix Zeroes
Medium
Serialize and Deserialize N-ary Tree
Hard
String Compression
Easy
Delete Node in a BST
Medium
Roman to Integer
Easy
Lowest Common Ancestor of a Binary Search Tree
Easy
Binary Tree Zigzag Level Order Traversal
Medium
Word Search II
Hard
Populating Next Right Pointers in Each Node II
Medium
Reverse String
Easy
Implement Trie (Prefix Tree)
Medium
Multiply Strings
Medium
Inorder Successor in BST
Medium
Group Anagrams
Medium
Simplify Path
Medium
Recover Binary Search Tree
Hard
3Sum
Medium
Linked List Cycle
Easy
Implement Queue using Stacks
Easy
Integer to Roman
Medium
Sudoku Solver
Hard
Edit Distance
Hard
Find Median from Data Stream
Hard
Intersection of Two Linked Lists
Easy
Valid Sudoku
Medium
Longest Substring Without Repeating Characters
Medium
Reorder List
Medium
Minimum Window Substring
Hard
Permutations
Medium
Binary Tree Level Order Traversal
Medium
Min Stack
Easy
Merge Intervals
Medium
N-Queens
Hard
Binary Search Tree Iterator
Medium
Restore IP Addresses
Medium
Exclusive Time of Functions
Medium
Design HashMap
Easy
Product of Array Except Self
Medium
Max Points on a Line
Hard
Word Break
Medium
Next Permutation
Medium
Rotate List
Medium
Rectangle Overlap
Easy
Design Search Autocomplete System
Hard
Basic Calculator II
Medium
Word Ladder
Medium
Coin Change
Medium
Find the Closest Palindrome
Hard
Spiral Matrix II
Medium
Search a 2D Matrix
Medium
Shuffle an Array
Medium
Majority Element II
Medium
Find Minimum in Rotated Sorted Array
Medium
Dungeon Game
Hard
Reverse Linked List II
Medium
Serialize and Deserialize BST
Medium
Largest Number
Medium
Longest Consecutive Sequence
Hard
Palindrome Linked List
Easy
Sliding Window Maximum
Hard
Moving Average from Data Stream
Easy
Count Primes
Easy
Validate IP Address
Medium
Candy
Hard
Find the Duplicate Number
Medium
Word Ladder II
Hard
Clone Graph
Medium
24 Game
Hard
Linked List Cycle II
Medium
Odd Even Linked List
Medium
Sort List
Medium
Implement Stack using Queues
Easy
Move Zeroes
Easy
Binary Tree Maximum Path Sum
Hard
Tag Validator
Hard
First Missing Positive
Hard
Missing Number
Easy
Binary Tree Inorder Traversal
Medium
Maximal Rectangle
Hard
Minesweeper
Medium
Meeting Rooms
Easy
Frog Jump
Hard
Kth Largest Element in an Array
Medium
Rotate Array
Easy
The Maze
Medium
Circular Array Loop
Medium
Insert Delete GetRandom O(1)
Medium
Largest Rectangle in Histogram
Hard
Remove Nth Node From End of List
Medium
Majority Element
Easy
Text Justification
Hard
Max Area of Island
Medium
Word Search
Medium
Delete Node in a Linked List
Easy
Decode Ways
Medium
Maximum Product Subarray
Medium
Longest Valid Parentheses
Hard
Container With Most Water
Medium
Game of Life
Medium
Palindrome Removal
Hard
Sqrt(x)
Easy
Reverse Integer
Easy
Implement strStr()
Easy
Gray Code
Medium
Valid Anagram
Easy
Search in a Sorted Array of Unknown Size
Medium
LFU Cache
Hard
Count and Say
Easy
Basic Calculator III
Hard
4 Keys Keyboard
Medium
Longest Substring with At Most K Distinct Characters
Hard
Kth Smallest Element in a Sorted Matrix
Medium
Alien Dictionary
Hard
Palindrome Number
Easy
Design Circular Queue
Medium
Remove Duplicates from Sorted Array
Easy
Design Hit Counter
Medium
Word Break II
Hard
Best Time to Buy and Sell Stock III
Hard
Trim a Binary Search Tree
Easy
Android Unlock Patterns
Medium
Balanced Binary Tree
Easy
Inorder Successor in BST II
Medium
Implement Rand10() Using Rand7()
Medium
Subsets
Medium
Super Egg Drop
Hard
One Edit Distance
Medium
Unique Paths
Medium
Decode String
Medium
Number of 1 Bits
Easy
Find All Duplicates in an Array
Medium
Course Schedule
Medium
Combination Sum
Medium
Find Duplicate Subtrees
Medium
Subarray Sum Equals K
Medium
Valid Palindrome
Easy
Partition List
Medium
Knight Probability in Chessboard
Medium
Minimum Path Sum
Medium
Design Phone Directory
Medium
Search in Rotated Sorted Array II
Medium
Fizz Buzz
Easy
Pacific Atlantic Water Flow
Medium
Flatten Binary Tree to Linked List
Medium
Combinations
Medium
Evaluate Reverse Polish Notation
Medium
Divide Two Integers
Medium
Longest Increasing Subsequence
Medium
Max Stack
Easy
First Unique Character in a String
Easy
Palindromic Substrings
Medium
All Nodes Distance K in Binary Tree
Medium
Rearrange String k Distance Apart
Hard
Remove Duplicates from Sorted List II
Medium
Flood Fill
Easy
Summary Ranges
Medium
Employee Free Time
Hard
Trapping Rain Water II
Hard
Kth Smallest Element in a BST
Medium
Zigzag Iterator
Medium
Add Strings
Easy
Subtree of Another Tree
Easy
Pascal's Triangle
Easy
Convert Binary Search Tree to Sorted Doubly Linked List
Medium
Print Binary Tree
Medium
Climbing Stairs
Easy
Swap For Longest Repeated Character Substring
Medium
Walls and Gates
Medium
Coin Change 2
Medium
Reverse Pairs
Hard
Diameter of Binary Tree
Easy
Remove Duplicates from Sorted List
Easy
Jump Game II
Hard
Binary Tree Right Side View
Medium
Range Sum Query 2D - Immutable
Medium
Palindrome Permutation II
Medium
Two Sum II - Input array is sorted
Easy
Reorganize String
Medium
All O`one Data Structure
Hard
Longest Palindromic Subsequence
Medium
Closest Binary Search Tree Value
Easy
Symmetric Tree
Easy
Reverse Only Letters
Easy
Next Greater Element III
Medium
Longest Duplicate Substring
Hard
Best Time to Buy and Sell Stock II
Easy
Largest BST Subtree
Medium
Convert Sorted Array to Binary Search Tree
Easy
Knight Dialer
Medium
Shortest Palindrome
Hard
Jump Game
Medium
Binary Tree Vertical Order Traversal
Medium
Wiggle Sort
Medium
Top K Frequent Words
Medium
Partition to K Equal Sum Subsets
Medium
Palindrome Permutation
Easy
Find Peak Element
Medium
Substring with Concatenation of All Words
Hard
Pow(x;n)
Medium
Find All Numbers Disappeared in an Array
Easy
Path Sum
Easy
Remove Duplicate Letters
Hard
Arithmetic Slices
Medium
Find All Anagrams in a String
Medium
My Calendar I
Medium
Random Pick with Weight
Medium
Diagonal Traverse
Medium
Factorial Trailing Zeroes
Easy
Convert a Number to Hexadecimal
Easy
Check Completeness of a Binary Tree
Medium
Longest Substring with At Most Two Distinct Characters
Medium
Cousins in Binary Tree
Easy
Unique Paths II
Medium
Reconstruct Itinerary
Medium
Day of the Week
Easy
Path Sum II
Medium
Fraction to Recurring Decimal
Medium
Integer Replacement
Medium
Split Array With Same Average
Hard
Longest Common Prefix
Easy
Web Crawler
Medium
Invert Binary Tree
Easy
Encode N-ary Tree to Binary Tree
Hard
Valid Triangle Number
Medium
Minimum Window Subsequence
Hard
Longest Repeating Substring
Medium
Flatten a Multilevel Doubly Linked List
Medium
Single Number
Easy
Permutation in String
Medium
Rotting Oranges
Medium
Valid Number
Hard
Minimum Knight Moves
Medium
Construct Binary Tree from Inorder and Postorder Traversal
Medium
Convert Sorted List to Binary Search Tree
Medium
Ransom Note
Easy
Maximal Square
Medium
Insertion Sort List
Medium
Snakes and Ladders
Medium
Find Pivot Index
Easy
Combination Sum II
Medium
Count Unique Characters of All Substrings of a Given String
Hard
Unique Binary Search Trees II
Medium
Bulb Switcher III
Medium
Top K Frequent Elements
Medium
Russian Doll Envelopes
Hard
Interleaving String
Hard
Parallel Courses
Hard
Insert into a Sorted Circular Linked List
Medium
Next Closest Time
Medium
Sum Root to Leaf Numbers
Medium
Pancake Sorting
Medium
Single Element in a Sorted Array
Medium
Happy Number
Easy
Intersection of Two Arrays
Easy
House Robber
Easy
Number of Distinct Islands
Medium
4Sum
Medium
K Empty Slots
Hard
Count of Smaller Numbers After Self
Hard
Combination Sum III
Medium
ZigZag Conversion
Medium
Longest Increasing Path in a Matrix
Hard
Range Sum Query 2D - Mutable
Hard
Triangle
Medium
Insert Interval
Hard
Partition Equal Subset Sum
Medium
Binary Tree Paths
Easy
Design Bounded Blocking Queue
Medium
Shortest Word Distance
Easy
Fibonacci Number
Easy
Max Chunks To Make Sorted II
Hard
Maximum Depth of Binary Tree
Easy
Insert into a Binary Search Tree
Medium
Flatten Nested List Iterator
Medium
Power of Two
Easy
Shortest Distance from All Buildings
Hard
Continuous Subarray Sum
Medium
Read N Characters Given Read4 II - Call multiple times
Hard
Isomorphic Strings
Easy
Binary Tree Level Order Traversal II
Easy
1-bit and 2-bit Characters
Easy
Word Pattern
Easy
Island Perimeter
Easy
Maximum Vacation Days
Hard
Minimum Size Subarray Sum
Medium
Course Schedule II
Medium
Contains Duplicate II
Easy
Bulls and Cows
Easy
Repeated DNA Sequences
Medium
Peeking Iterator
Medium
Friend Circles
Medium
Path Sum III
Medium
Sliding Puzzle
Hard
Vertical Order Traversal of a Binary Tree
Medium
Guess the Word
Hard
Valid Perfect Square
Easy
Find Duplicate File in System
Medium
Letter Case Permutation
Medium
Maximum Size Subarray Sum Equals k
Medium
Valid Palindrome II
Easy
Robot Room Cleaner
Hard
Evaluate Division
Medium
Two Sum IV - Input is a BST
Easy
Maximum Width of Binary Tree
Medium
Count Complete Tree Nodes
Medium
Accounts Merge
Medium
Palindrome Partitioning
Medium
Encode and Decode Strings
Medium
Find K Pairs with Smallest Sums
Medium
Distribute Coins in Binary Tree
Medium
Smallest Range Covering Elements from K Lists
Hard
Find And Replace in String
Medium
Water and Jug Problem
Medium
Design a Stack With Increment Operation
Medium
Minimum Area Rectangle
Medium
3Sum Closest
Medium
Max Chunks To Make Sorted
Medium
Second Highest Salary
Easy
Perfect Squares
Medium
Expression Add Operators
Hard
Longest Common Subsequence
Medium
Number of Islands II
Hard
Contains Duplicate
Easy
Design Linked List
Medium
Shortest Distance in a Plane
Medium
Task Scheduler
Medium
Binary Search
Easy
Backspace String Compare
Easy
Print in Order
Easy
Number of Connected Components in an Undirected Graph
Medium
Contiguous Array
Medium
Daily Temperatures
Medium
Find Largest Value in Each Tree Row
Medium
Second Minimum Node In a Binary Tree
Easy
K-diff Pairs in an Array
Easy
K Closest Points to Origin
Medium
Construct Binary Search Tree from Preorder Traversal
Medium
House Robber II
Medium
Peak Index in a Mountain Array
Easy
Sparse Matrix Multiplication
Medium
Cinema Seat Allocation
Medium
Queue Reconstruction by Height
Medium
Find First and Last Position of Element in Sorted Array
Medium
Find K Closest Elements
Medium
Subsets II
Medium
Binary Search Tree to Greater Sum Tree
Medium
Is Graph Bipartite?
Medium
Contains Duplicate III
Medium
Maximum Frequency Stack
Hard
Insert Delete GetRandom O(1) - Duplicates allowed
Hard
Print Words Vertically
Medium
Third Maximum Number
Easy
Print Zero Even Odd
Medium
Sum of Subarray Minimums
Medium
Most Common Word
Easy
Paint House
Easy
Remove Element
Easy
Kth Largest Element in a Stream
Easy
Sort Array By Parity
Easy
First Bad Version
Easy
Logger Rate Limiter
Easy
Maximum Average Subarray I
Easy
Unique Binary Search Trees
Medium
Permutation Sequence
Hard
Path In Zigzag Labelled Binary Tree
Medium
Non-overlapping Intervals
Medium
Sliding Window Median
Hard
Letter Tile Possibilities
Medium
Next Greater Element II
Medium
Binary Tree Preorder Traversal
Medium
Implement Magic Dictionary
Medium
Longest Arithmetic Sequence
Medium
Binary Tree Coloring Game
Medium
Find N Unique Integers Sum up to Zero
Easy
Intersection of Two Arrays II
Easy
Concatenated Words
Hard
Rotate String
Easy
Permutations II
Medium
Course Schedule III
Hard
Minimum Depth of Binary Tree
Easy
Same Tree
Easy
Flipping an Image
Easy
Reveal Cards In Increasing Order
Medium
Reverse String II
Easy
Asteroid Collision
Medium
Meeting Scheduler
Medium
Shortest Common Supersequence
Hard
Range Sum Query - Immutable
Easy
Time Based Key-Value Store
Medium
Add Binary
Easy
Repeated Substring Pattern
Easy
Longest Mountain in Array
Medium
Middle of the Linked List
Easy
Squares of a Sorted Array
Easy
Maximum Swap
Medium
Target Sum
Medium
Range Sum of BST
Easy
Max Consecutive Ones III
Medium
Add and Search Word - Data structure design
Medium
Search Insert Position
Easy
Rotated Digits
Easy
Leaf-Similar Trees
Easy
Uncommon Words from Two Sentences
Easy
Shortest Bridge
Medium
2 Keys Keyboard
Medium
Unique Email Addresses
Easy
Max Consecutive Ones
Easy
Add Digits
Easy
Remove Linked List Elements
Easy
Shortest Path in Binary Matrix
Medium
Transpose Matrix
Easy
Verifying an Alien Dictionary
Easy
Distribute Candies
Easy
Critical Connections in a Network
Hard
Minimum Number of Arrows to Burst Balloons
Medium
Next Greater Element I
Easy
Counting Bits
Medium
Angle Between Hands of a Clock
Medium
Next Greater Node In Linked List
Medium
Relative Sort Array
Easy
Longest Continuous Increasing Subsequence
Easy
Number of Dice Rolls With Target Sum
Medium
Cheapest Flights Within K Stops
Medium
Network Delay Time
Medium
Minimum Remove to Make Valid Parentheses
Medium
Shuffle the Array
Easy
Find Bottom Left Tree Value
Medium
Design Excel Sum Formula
Hard
Maximum Binary Tree
Medium
Bulb Switcher II
Medium
Minimum Number of Refueling Stops
Hard
Possible Bipartition
Medium
Online Stock Span
Medium
Equal Rational Numbers
Hard
Clumsy Factorial
Medium
Partition Array Into Three Parts With Equal Sum
Easy
Previous Permutation With One Swap
Medium
Find Smallest Common Element in All Rows
Medium
Statistics from a Large Sample
Medium
Delete Tree Nodes
Medium
Maximum of Absolute Value Expression
Medium
Design Skiplist
Hard
Find the Start and End Number of Continuous Ranges
Medium
Jump Game III
Medium
Minimum Flips to Make a OR b Equal to c
Medium
Maximum Product of Splitted Binary Tree
Medium
Find the Longest Substring Containing Vowels in Even Counts
Medium
Get the Second Most Recent Activity
Hard
Find Lucky Integer in an Array
Easy
The k-th Lexicographical String of All Happy Strings of Length n
Medium
Reformat The String
Easy
Count Good Nodes in Binary Tree
Medium
Max Dot Product of Two Subsequences
Hard
Find All The Lonely Nodes
Easy
Stone Game IV
Hard
Delete N Nodes After M Nodes of a Linked List
Easy
Count Odd Numbers in an Interval Range
Easy
Water Bottles
Easy
Kth Missing Positive Number
Easy
Shuffle String
Easy
Share this with your loved ones: