IO
Sheets/StriverA2Z
143 problems

StriverA2Z

Follow the StriverA2Z sheet end-to-end — a proven, ordered set of problems.

141Total problems
0Solved
0%Completion
51/69/23Easy/Med/Hard
Longest Consecutive Sequence· Hashing
Amazon
Google
Microsoft
+1
Arrays · Hashing
Subarray with given XOR· Hashing
Amazon
Arrays · Hashing · Bit Manipulation
Merge Sort Implementation· Sorting
Amazon
Microsoft
Google
Sorting · Arrays · Recursion
Quick Sort Implementation· Sorting
Amazon
Microsoft
Google
Sorting · Arrays · Recursion
Largest Element· Arrays
Arrays
Second Largest Element· Arrays
Amazon
Microsoft
Arrays
Check if an Array is Sorted· Arrays
Arrays
Remove Duplicates from Sorted Array· Arrays
Amazon
Microsoft
Meta
Arrays · Two Pointers
Left Rotate an Array by 1 Place· Arrays
Arrays
Left Rotate an Array by K Places· Arrays
Amazon
Microsoft
Arrays · Two Pointers
Move Zeros to the End of an Array· Arrays
Amazon
Meta
Microsoft
Arrays · Two Pointers
Union of Two Sorted Arrays· Arrays
Amazon
Arrays · Two Pointers
Finding the Missing Number in an Array· Arrays
Amazon
Microsoft
Adobe
Arrays · Hashing · Bit Manipulation
Maximum Consecutive Ones in an Array· Arrays
Amazon
Arrays · Sliding Window
Finding the Single Element in an Array· Arrays
Amazon
Microsoft
Google
Arrays · Bit Manipulation
Longest Sub-Array of Positive Integers with Sum K· Arrays
Amazon
Arrays · Two Pointers · Sliding Window
Longest Sub-Array with Sum K· Arrays
Amazon
Google
Arrays · Hashing · Prefix Sum
Majority Element· Arrays
Amazon
Microsoft
Google
+1
Arrays · Hashing · Greedy
Array Rearrangement· Arrays
Amazon
Arrays · Two Pointers
Find the Next Permutation· Arrays
Amazon
Microsoft
Google
Arrays · Two Pointers · Backtracking
Merge Two Sorted Array· Arrays
Amazon
Microsoft
Meta
Arrays · Two Pointers · Sorting
Grid Rotation· Arrays
Amazon
Microsoft
Apple
Arrays · Matrix
Spiral Matrix· Arrays
Amazon
Microsoft
Google
+1
Arrays · Matrix · Simulation
Pascal's Triangle· Arrays
Amazon
Microsoft
Google
+1
Arrays · Maths · Dynamic Programming
Majority Element II· Arrays
Amazon
Google
Meta
Arrays · Hashing
Missing and Repeating Elements· Arrays
Amazon
Microsoft
Adobe
Arrays · Hashing · Maths
Count The Inversions· Arrays
Amazon
Google
Adobe
Arrays · Sorting · Divide and Conquer
Lower Bound· Binary Search
Amazon
Microsoft
Binary Search · Arrays
Upper Bound· Binary Search
Amazon
Microsoft
Binary Search · Arrays
Ceil The Floor· Binary Search
Amazon
Binary Search · Arrays
First and Last Occurrence· Binary Search
Amazon
Microsoft
Google
+1
Binary Search · Arrays
Number of Occurrences· Binary Search
Amazon
Binary Search · Arrays
Search Element in Rotated Sorted Array· Binary Search
Amazon
Microsoft
Google
+1
Binary Search · Arrays
Search Element in Rotated Sorted Array II· Binary Search
Amazon
Microsoft
Binary Search · Arrays
Find Minimum in Rotated Sorted Array· Binary Search
Amazon
Microsoft
Google
+1
Binary Search · Arrays
Find Single Element· Binary Search
Amazon
Microsoft
Binary Search · Arrays · Bit Manipulation
Find Peak Element· Binary Search
Amazon
Google
Meta
Binary Search · Arrays
Find Square root of N· Binary Search
Amazon
Binary Search · Maths
Find Nth root of M· Binary Search
Binary Search · Maths
Monkey Eating Bananas· Binary Search
Amazon
Google
Binary Search · Arrays · Greedy
Bouquet Formation· Binary Search
Amazon
Google
Binary Search · Arrays · Greedy
Minimum Positive Divisor· Binary Search
Amazon
Binary Search · Arrays · Greedy
Minimum Capacity to Transport Parcels· Binary Search
Amazon
Google
Microsoft
Binary Search · Arrays · Greedy
K-th Missing Number· Binary Search
Amazon
Binary Search · Arrays
Aggressive Cows· Binary Search
Amazon
Google
Binary Search · Arrays · Greedy
Book Allocation· Binary Search
Amazon
Google
Microsoft
Binary Search · Arrays · Greedy
Painters Partition· Binary Search
Amazon
Microsoft
Binary Search · Arrays · Greedy
Minimize Maximum Distance· Binary Search
Amazon
Binary Search · Arrays · Greedy
Median of Two Sorted Arrays· Binary Search
Amazon
Google
Microsoft
+1
Binary Search · Arrays
K-th element of Two Arrays· Binary Search
Amazon
Microsoft
Binary Search · Arrays
Row with Maximum 1's· Binary Search
Amazon
Binary Search · Arrays · Matrix
Search in a 2D Sorted Matrix· Binary Search
Amazon
Microsoft
Meta
Binary Search · Arrays · Matrix
Search in a 2D Sorted Matrix II· Binary Search
Amazon
Microsoft
Google
Binary Search · Arrays · Matrix
Find Peak Element II· Binary Search
Amazon
Google
Binary Search · Arrays · Matrix
Median in a row-wise sorted Matrix· Binary Search
Amazon
Binary Search · Arrays · Matrix
Bit Manipulation Techniques I· Bit Manipulation
Bit Manipulation
Fractional Knapsack· Greedy Algorithms
Amazon
Microsoft
Greedy · Arrays · Sorting
Amazon
Greedy · Dynamic Programming
Stack Implementation Using Arrays· Stacks & Queues
Stack · Arrays
Queue Implementation Using Array· Stacks & Queues
Queue · Arrays
Implement Stack Using Queue· Stacks & Queues
Amazon
Microsoft
Stack · Queue
Implement Queue Using Stack· Stacks & Queues
Amazon
Microsoft
Stack · Queue
Stack Implementation Using Linked List· Stacks & Queues
Stack · Linked List
Queue Implementation Using Linked List· Stacks & Queues
Queue · Linked List
Next Greater Element· Stacks & Queues
Amazon
Microsoft
Google
Stack · Monotonic Stack · Arrays
Next Greater Element II· Stacks & Queues
Amazon
Microsoft
Stack · Monotonic Stack · Arrays
Nearest Smaller Element· Stacks & Queues
Amazon
Microsoft
Stack · Monotonic Stack · Arrays
Trapping Rainwater· Stacks & Queues
Amazon
Google
Microsoft
+2
Arrays · Stack · Two Pointers
Largest Rectangle in Histogram· Stacks & Queues
Amazon
Google
Microsoft
+1
Arrays · Stack · Monotonic Stack
Amazon
Microsoft
Stack · Monotonic Stack · Design
Convert Array To Linked List· Linked List
Linked List · Arrays
Insertion At Head· Linked List
Linked List
Insertion At Tail· Linked List
Linked List
Insertion At Kth Position· Linked List
Linked List
Insertion Before a Node With Value X· Linked List
Linked List
Delete Head· Linked List
Linked List
Delete Tail· Linked List
Linked List
Delete Kth Node· Linked List
Linked List
Delete Node With Value X· Linked List
Linked List
Length of Linked List· Linked List
Linked List
Search In Linked List· Linked List
Linked List
Convert Array To Doubly Linked List· Linked List
Linked List · Arrays
Insertion At Head (DLL)· Linked List
Linked List
Insertion At Tail (DLL)· Linked List
Linked List
Insert Before Kth Node (DLL)· Linked List
Linked List
Deletion At Head (DLL)· Linked List
Linked List
Deletion at Tail (DLL)· Linked List
Linked List
Delete Kth Node (DLL)· Linked List
Linked List
Reverse a Doubly Linked List· Linked List
Amazon
Microsoft
Linked List
Middle of the Linked List· Linked List
Amazon
Microsoft
Google
Linked List · Two Pointers
Even and Odd Linked List· Linked List
Amazon
Microsoft
Linked List
Sort a LinkedList of 0's 1's and 2's· Linked List
Amazon
Linked List · Two Pointers · Sorting
Add 1 to Linked List· Linked List
Amazon
Microsoft
Linked List · Recursion · Maths
Delete All Occurrences in a DLL· Linked List
Linked List
Finding Pairs with Given Sum in a DLL· Linked List
Amazon
Linked List · Two Pointers
Removing Duplicates From A Sorted DLL· Linked List
Linked List
Rotate the Linked List· Linked List
Amazon
Microsoft
Linked List
Flatten a Linked List· Linked List
Amazon
Microsoft
Linked List · Recursion · Sorting
Level Order Traversal· Binary Trees
Amazon
Microsoft
Google
+1
Trees · BFS · Queue
Height of a Binary Tree· Binary Trees
Amazon
Microsoft
Trees · Recursion · DFS
Boundary Traversal of Binary Tree· Binary Trees
Amazon
Trees · DFS · Recursion
Vertical Order Traversal of Binary Tree· Binary Trees
Amazon
Microsoft
Google
Trees · BFS · Hashing
Top View of a Binary Tree· Binary Trees
Amazon
Microsoft
Trees · BFS · Hashing
Bottom View of a Binary Tree· Binary Trees
Amazon
Microsoft
Trees · BFS · Hashing
Left View of Binary Tree· Binary Trees
Amazon
Microsoft
Trees · DFS · BFS
Flattening a Binary Tree into a Right-Skewed List· Binary Trees
Amazon
Microsoft
Trees · Recursion · DFS
BFS Traversal· Graphs
Amazon
Microsoft
Graph · BFS · Queue
DFS Traversal· Graphs
Amazon
Microsoft
Graph · DFS · Recursion
Detect Cycle in Undirected Graph (BFS)· Graphs
Amazon
Graph · BFS
Detect Cycle in Undirected Graph (DFS)· Graphs
Amazon
Graph · DFS
Detect Cycle In A Directed Graph· Graphs
Amazon
Microsoft
Graph · DFS · Topological Sort
Topological Sort· Graphs
Amazon
Microsoft
Google
Graph · DFS · Topological Sort
Kahn's Algorithm· Graphs
Amazon
Microsoft
Google
Graph · BFS · Topological Sort
Shortest Path in Undirected Graph· Graphs
Amazon
Graph · BFS
Shortest Path DAG· Graphs
Amazon
Graph · Topological Sort · Dynamic Programming
Dijkstra's Algorithm· Graphs
Amazon
Microsoft
Google
Graph · Heap · BFS
Bellman-Ford Algorithm· Graphs
Amazon
Google
Graph · Dynamic Programming
Floyd Warshall· Graphs
Amazon
Microsoft
Google
Graph · Dynamic Programming
Prim's Algorithm Implementation· Graphs
Amazon
Microsoft
Graph · Heap · Greedy
Disjoint Sets Implementation· Graphs
Amazon
Microsoft
Google
Union Find · Graph
Kruskal's Algorithm Implementation· Graphs
Amazon
Microsoft
Graph · Union Find · Greedy
Find Bridges· Graphs
Amazon
Google
Graph · DFS
Articulation Points· Graphs
Amazon
Google
Graph · DFS
Strongly Connected Components· Graphs
Amazon
Google
Graph · DFS · Topological Sort
Amazon
Dynamic Programming · Recursion
Amazon
Dynamic Programming · Recursion
Amazon
Microsoft
Dynamic Programming · Arrays · Recursion
Partition with Minimum Difference· Dynamic Programming
Amazon
Dynamic Programming · Arrays
Counting Subsets with Target Sum· Dynamic Programming
Amazon
Dynamic Programming · Arrays
Count Partitions with Given Difference· Dynamic Programming
Dynamic Programming · Arrays
Unbounded Knapsack· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Arrays
Print the Longest Common Subsequence· Dynamic Programming
Amazon
Dynamic Programming · Strings
Longest Common Substring· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Strings
Minimum Insertions to Make Palindrome· Dynamic Programming
Amazon
Google
Dynamic Programming · Strings
Counting Subsequences· Dynamic Programming
Amazon
Dynamic Programming · Strings
Print the Longest Increasing Subsequence· Dynamic Programming
Amazon
Dynamic Programming · Arrays
Minimum Matrix Multiplication Cost· Dynamic Programming
Amazon
Google
Dynamic Programming · Recursion
Minimum Cost to Divide a Rod· Dynamic Programming
Amazon
Dynamic Programming · Recursion
Distinct Substrings in a String· Tries
Amazon
Trie · Strings
Pattern Searching (Rabin-Karp Algorithm)· Strings — Advanced Algorithms
Amazon
Google
Strings · Rabin Karp · Hashing
KMP Pattern Matching Algorithm· Strings — Advanced Algorithms
Amazon
Google
Microsoft
Strings · KMP