Apple-Logo
Apple
Previous Year Questions
Two Sum
Easy
LRU Cache
Medium
Frog Jump
Hard
Spiral Matrix
Medium
Add Two Numbers
Medium
Peeking Iterator
Medium
Median of Two Sorted Arrays
Hard
Maximum Subarray
Easy
Flatten Nested List Iterator
Medium
Trapping Rain Water
Hard
Perfect Rectangle
Hard
Reverse Linked List
Easy
Find Median from Data Stream
Hard
Number of Islands
Medium
Longest Palindromic Substring
Medium
The Skyline Problem
Hard
Find in Mountain Array
Hard
Interleaving String
Hard
Largest Palindrome Product
Hard
UTF-8 Validation
Medium
Product of Array Except Self
Medium
Sparse Matrix Multiplication
Medium
String to Integer (atoi)
Medium
Serialize and Deserialize N-ary Tree
Hard
Design Tic-Tac-Toe
Medium
Merge Intervals
Medium
3Sum
Medium
Happy Number
Easy
Longest Increasing Path in a Matrix
Hard
Group Anagrams
Medium
Merge k Sorted Lists
Hard
Longest Substring Without Repeating Characters
Medium
Merge Two Sorted Lists
Easy
Word Break
Medium
Android Unlock Patterns
Medium
Valid Parentheses
Easy
Alien Dictionary
Hard
Word Search II
Hard
Max Points on a Line
Hard
Search in Rotated Sorted Array
Medium
Rotate Image
Medium
Valid Anagram
Easy
Reverse Integer
Easy
Count Primes
Easy
Letter Combinations of a Phone Number
Medium
Basic Calculator II
Medium
Fizz Buzz
Easy
Best Time to Buy and Sell Stock
Easy
Concatenated Words
Hard
First Unique Character in a String
Easy
Knight Probability in Chessboard
Medium
Zigzag Iterator
Medium
Reverse String
Easy
Insert Delete GetRandom O(1)
Medium
Integer to Roman
Medium
Coin Change
Medium
Boundary of Binary Tree
Medium
Decode String
Medium
Valid Sudoku
Medium
Serialize and Deserialize Binary Tree
Hard
Lowest Common Ancestor of a Binary Tree
Medium
Valid Palindrome
Easy
Flatten 2D Vector
Medium
Jump Game II
Hard
Permutations
Medium
Number of 1 Bits
Easy
Longest Common Prefix
Easy
Next Permutation
Medium
Jewels and Stones
Easy
Find Pivot Index
Easy
Palindrome Pairs
Hard
Min Stack
Easy
Nth Highest Salary
Medium
Meeting Rooms II
Medium
Integer to English Words
Hard
LFU Cache
Hard
Rectangle Overlap
Easy
Meeting Scheduler
Medium
Roman to Integer
Easy
Combine Two Tables
Easy
Battleships in a Board
Medium
Snakes and Ladders
Medium
Flood Fill
Easy
Time Based Key-Value Store
Medium
Perfect Squares
Medium
Copy List with Random Pointer
Medium
Longest Absolute File Path
Medium
Excel Sheet Column Title
Easy
Merge Sorted Array
Easy
Linked List Cycle
Easy
4Sum
Medium
Find Duplicate File in System
Medium
N-Queens
Hard
Number of Distinct Islands
Medium
Binary Tree Level Order Traversal
Medium
Minimum Window Substring
Hard
Spiral Matrix II
Medium
Number of Digit One
Hard
Missing Number
Easy
Tenth Line
Easy
Word Break II
Hard
Largest BST Subtree
Medium
Longest Valid Parentheses
Hard
Count and Say
Easy
Shuffle an Array
Medium
Word Ladder
Medium
3Sum Closest
Medium
Top K Frequent Words
Medium
Design HashMap
Easy
Regular Expression Matching
Hard
Swap Nodes in Pairs
Medium
Move Zeroes
Easy
Largest Number
Medium
Reconstruct Itinerary
Medium
Valid Phone Numbers
Easy
Find First and Last Position of Element in Sorted Array
Medium
Text Justification
Hard
Implement Queue using Stacks
Easy
Excel Sheet Column Number
Easy
Binary Watch
Easy
Longest Increasing Subsequence
Medium
Decode Ways
Medium
Rotate String
Easy
Sliding Window Maximum
Hard
My Calendar I
Medium
Island Perimeter
Easy
Number of Squareful Arrays
Hard
K Closest Points to Origin
Medium
Combination Sum
Medium
Sort Colors
Medium
Single Number
Easy
First Missing Positive
Hard
Design Hit Counter
Medium
Container With Most Water
Medium
Predict the Winner
Medium
Maximal Square
Medium
Rectangle Area
Medium
Count of Smaller Numbers After Self
Hard
Repeated DNA Sequences
Medium
String Compression
Easy
Generate Parentheses
Medium
Remove Duplicate Letters
Hard
Maximum Frequency Stack
Hard
Add Strings
Easy
Find the Celebrity
Medium
Two Sum II - Input array is sorted
Easy
Find K Closest Elements
Medium
Insert Delete GetRandom O(1) - Duplicates allowed
Hard
Reverse Linked List II
Medium
Exclusive Time of Functions
Medium
Fibonacci Number
Easy
Compare Version Numbers
Medium
Implement strStr()
Easy
Delete Node in a Linked List
Easy
Maximum Depth of Binary Tree
Easy
Diagonal Traverse
Medium
Sqrt(x)
Easy
Kth Largest Element in an Array
Medium
Design Snake Game
Medium
Clone Graph
Medium
Palindrome Number
Easy
Interval List Intersections
Medium
Majority Element II
Medium
Convert Sorted Array to Binary Search Tree
Easy
Image Smoother
Easy
Binary Tree Maximum Path Sum
Hard
ZigZag Conversion
Medium
Cherry Pickup
Hard
Majority Element
Easy
New 21 Game
Medium
Unique Paths
Medium
Contains Duplicate III
Medium
Sudoku Solver
Hard
Diameter of Binary Tree
Easy
Reverse Words in a String III
Easy
Intersection of Two Arrays
Easy
Triangle
Medium
Binary Search Tree Iterator
Medium
Valid Number
Hard
Reverse Nodes in k-Group
Hard
Binary Tree Longest Consecutive Sequence II
Medium
Rank Scores
Medium
Edit Distance
Hard
Combinations
Medium
Coin Change 2
Medium
Power of Two
Easy
Palindrome Linked List
Easy
Search a 2D Matrix II
Medium
Online Election
Medium
Search a 2D Matrix
Medium
Palindrome Partitioning III
Hard
Reverse Words in a String
Medium
Multiply Strings
Medium
Second Highest Salary
Easy
Reverse Bits
Easy
Random Pick with Weight
Medium
Jump Game
Medium
Design Search Autocomplete System
Hard
Shortest Distance to a Character
Easy
Divide Two Integers
Medium
Palindromic Substrings
Medium
Smallest Range Covering Elements from K Lists
Hard
Implement Rand10() Using Rand7()
Medium
Insert Interval
Hard
Daily Temperatures
Medium
Ransom Note
Easy
Remove Duplicates from Sorted List
Easy
Substring with Concatenation of All Words
Hard
Remove Boxes
Hard
Populating Next Right Pointers in Each Node
Medium
Defanging an IP Address
Easy
Longest Univalue Path
Easy
Longest Consecutive Sequence
Hard
Construct Quad Tree
Medium
Longest Duplicate Substring
Hard
Partition List
Medium
Binary Tree Right Side View
Medium
Split a String in Balanced Strings
Easy
Squares of a Sorted Array
Easy
Pascal's Triangle
Easy
Climbing Stairs
Easy
House Robber
Easy
Logger Rate Limiter
Easy
Intersection of Two Arrays II
Easy
Print in Order
Easy
Add and Search Word - Data structure design
Medium
4Sum II
Medium
Transpose Matrix
Easy
Restore IP Addresses
Medium
Symmetric Tree
Easy
Department Highest Salary
Medium
Remove Duplicates from Sorted List II
Medium
Delete Node in a BST
Medium
Contains Duplicate II
Easy
Subsets
Medium
Flatten Binary Tree to Linked List
Medium
Trapping Rain Water II
Hard
Find All Numbers Disappeared in an Array
Easy
Integer Break
Medium
Subarray Sum Equals K
Medium
Minimum Moves to Equal Array Elements
Easy
Partition Equal Subset Sum
Medium
Pacific Atlantic Water Flow
Medium
Reorder List
Medium
Find Peak Element
Medium
Kth Smallest Element in a BST
Medium
Course Schedule
Medium
Counting Bits
Medium
Scramble String
Hard
Palindrome Permutation
Easy
Expression Add Operators
Hard
Design Circular Queue
Medium
Paint House
Easy
Construct Binary Tree from Preorder and Inorder Traversal
Medium
Validate Binary Search Tree
Medium
Find the Duplicate Number
Medium
Reverse Vowels of a String
Easy
Kill Process
Medium
Set Matrix Zeroes
Medium
Remove Duplicates from Sorted Array
Easy
Implement Trie (Prefix Tree)
Medium
Consecutive Numbers
Medium
Word Search
Medium
Linked List Cycle II
Medium
Non-overlapping Intervals
Medium
Single Element in a Sorted Array
Medium
Add Two Numbers II
Medium
Trim a Binary Search Tree
Easy
Sliding Window Median
Hard
Find Largest Value in Each Tree Row
Medium
Remove Nth Node From End of List
Medium
Accounts Merge
Medium
Find Minimum in Rotated Sorted Array
Medium
Merge Two Binary Trees
Easy
Search Insert Position
Easy
Find All Duplicates in an Array
Medium
Kth Smallest Element in a Sorted Matrix
Medium
Word Ladder II
Hard
01 Matrix
Medium
Best Time to Buy and Sell Stock III
Hard
Capacity To Ship Packages Within D Days
Medium
All Nodes Distance K in Binary Tree
Medium
Binary Tree Inorder Traversal
Medium
Best Time to Buy and Sell Stock II
Easy
Unique Binary Search Trees II
Medium
Candy
Hard
Power of Three
Easy
Basic Calculator III
Hard
Balanced Binary Tree
Easy
Find Common Characters
Easy
Binary Tree Zigzag Level Order Traversal
Medium
Array Partition I
Easy
Minimum Falling Path Sum
Medium
Find and Replace Pattern
Medium
Remove Invalid Parentheses
Hard
Sort an Array
Medium
Sum of Two Integers
Medium
Range Sum Query 2D - Immutable
Medium
Longest Harmonious Subsequence
Easy
Unique Paths II
Medium
Sum of Nodes with Even-Valued Grandparent
Medium
Gas Station
Medium
Find Winner on a Tic Tac Toe Game
Easy
Reorganize String
Medium
Max Area of Island
Medium
Pow(x;n)
Medium
To Lower Case
Easy
Task Scheduler
Medium
Fraction to Recurring Decimal
Medium
Top K Frequent Elements
Medium
The Maze
Medium
Longest Continuous Increasing Subsequence
Easy
Flatten a Multilevel Doubly Linked List
Medium
Sum of Subarray Minimums
Medium
Missing Element in Sorted Array
Medium
Permutations II
Medium
Course Schedule II
Medium
Combination Sum II
Medium
Minimum Path Sum
Medium
Remove Outermost Parentheses
Easy
Guess Number Higher or Lower
Easy
Possible Bipartition
Medium
Invert Binary Tree
Easy
Path Sum
Easy
Contains Duplicate
Easy
Longest Palindromic Subsequence
Medium
Snapshot Array
Medium
Kth Largest Element in a Stream
Easy
Minimum Absolute Difference in BST
Easy
Middle of the Linked List
Easy
Minimum Knight Moves
Medium
Range Sum of BST
Easy
Subdomain Visit Count
Easy
Add Binary
Easy
Find K Pairs with Smallest Sums
Medium
Minimum Depth of Binary Tree
Easy
N-Repeated Element in Size 2N Array
Easy
Binary Search Tree to Greater Sum Tree
Medium
Minimum Height Trees
Medium
Unique Morse Code Words
Easy
Walls and Gates
Medium
Toeplitz Matrix
Easy
Path Sum II
Medium
Sort Array By Parity
Easy
Maximum Swap
Medium
Permutation Sequence
Hard
Plus One
Easy
Contiguous Array
Medium
Search in a Binary Search Tree
Easy
Minimum Size Subarray Sum
Medium
Queue Reconstruction by Height
Medium
Same Tree
Easy
Maximum Product of Three Numbers
Easy
Best Time to Buy and Sell Stock IV
Hard
Remove Linked List Elements
Easy
Binary Tree Level Order Traversal II
Easy
Add Digits
Easy
Employees Earning More Than Their Managers
Easy
Binary Tree Paths
Easy
Most Common Word
Easy
Unique Binary Search Trees
Medium
Reorder Data in Log Files
Easy
Partition Labels
Medium
Single Number III
Medium
Best Time to Buy and Sell Stock with Cooldown
Medium
Array Nesting
Medium
Share this with your loved ones: