Striver A2Z Sheet

Log in

Practice — 02 / Striver Sheet

Striver
A2Z Sheet.

495 problems across 20 modules — the sheet almost every engineering student uses for placements. Keep it simple: solve each problem on its original platform, then mark it here and watch your progress tracker fill up.

Practice tracker Self-reported progress — not an auto-judge. Sheet structure: Striver's A2Z DSA course (takeUforward).

Source note: this sheet follows the structure of Striver's public A2Z DSA course (takeUforward). Each problem links to its original platform, and all problems and content belong to their respective owners — STUDY-BUDDY does not claim ownership of the sheet or its problems, and no permission beyond public linking is claimed.

Log in to mark problems solved and track your progress.

No problem matches that search.

STEP 01

Beginner Problems

0/83 solved

Fundamentals of Programming

Language Basics

Logic Building (Patterns)

Patterns

Time Complexity

Standard Libraries & Collections

STL Medium Learn →

Concept Basics

Basic Maths

Count all Digits of a Number Easy Solve ↗
Count number of odd digits in a number Easy Solve ↗
Reverse a number Easy Solve ↗
Palindrome Number Easy Solve ↗
Return the Largest Digit in a Number Easy Solve ↗
Factorial of a given number Easy Solve ↗
Check if the Number is Armstrong Easy Solve ↗
Check for Perfect Number Easy Solve ↗
Check for Prime Number Easy Solve ↗
Count of Prime Numbers till N Easy Solve ↗
GCD of Two Numbers Easy Solve ↗
LCM of two numbers Easy Solve ↗
Divisors of a Number Easy Solve ↗

Basic Arrays

Sum of Array Elements Easy Solve ↗
Count of odd numbers in Array Easy Solve ↗
Check if the Array is Sorted I Easy Solve ↗
Reverse an array Easy Solve ↗

Basic Hashing

Highest Occurring Element in an Array Medium Solve ↗
Second Highest Occurring Element Medium Solve ↗
Sum of Highest and Lowest Frequency Medium Solve ↗

Basic Strings

Reverse a String II Easy Solve ↗
Palindrome Check Medium Solve ↗
Largest Odd Number in a String Medium Solve ↗
Longest Common Prefix Medium Solve ↗
Isomorphic Strings Easy Solve ↗
Rotate String Medium Solve ↗
Valid Anagram Easy Solve ↗
Sort Characters by Frequency Medium Solve ↗

Basic Recursion

Sum of First N Numbers Easy Solve ↗
Factorial of a Given Number Easy Solve ↗
Sum of Array Elements II Easy Solve ↗
Reverse a String I Easy Solve ↗
Check if String is Palindrome or Not Easy Solve ↗
Check if a Number is Prime or Not Medium Solve ↗
Reverse an array 2 Medium Solve ↗
Check if the Array is Sorted II Easy Solve ↗
Sum of Digits in a Given Number Easy Solve ↗
Fibonacci Number Medium Solve ↗
STEP 02

Sorting

0/7 solved

Algorithms

Selection Sort Medium Solve ↗
Bubble Sort Medium Solve ↗
Insertion Sorting Medium Solve ↗
Merge Sorting Medium Solve ↗
Quick Sorting Medium Solve ↗
Recursive Bubble Sort Medium Solve ↗
Recursive Insertion Sort Medium Solve ↗
STEP 03

Arrays

0/32 solved

Fundamentals

Linear Search Easy Solve ↗
Largest Element Easy Solve ↗
Second Largest Element Easy Solve ↗
Maximum Consecutive Ones Easy Solve ↗
Left Rotate Array by One Easy Solve ↗
Left Rotate Array by K Places Medium Solve ↗

Logic Building

Move Zeros to End Easy Solve ↗
Remove duplicates from sorted array Easy Solve ↗
Find missing number Easy Solve ↗
Union of two sorted arrays Medium Solve ↗
Intersection of two sorted arrays Medium Solve ↗

FAQs(Medium)

Majority Element-I Medium Solve ↗
Leaders in an Array Medium Solve ↗
Rearrange array elements by sign Medium Solve ↗
Print the matrix in spiral manner Medium Solve ↗
Pascal's Triangle I Medium Solve ↗
Pascal's Triangle II Medium Solve ↗
Pascal's Triangle III Medium Solve ↗
Rotate matrix by 90 degrees Medium Solve ↗
Set Matrix Zeroes Medium Solve ↗
Two Sum Easy Solve ↗
3 Sum Medium Solve ↗
4 Sum Hard Solve ↗
Sort an array of 0's 1's and 2's Medium Solve ↗
Kadane's Algorithm Medium Solve ↗
Next Permutation Medium Solve ↗

FAQs(Hard)

Majority Element-II Medium Solve ↗
Find the repeating and missing number Medium Solve ↗
Count Inversions Hard Solve ↗
Reverse Pairs Hard Solve ↗
Maximum Product Subarray in an Array Medium Solve ↗
Merge two sorted arrays without extra space Medium Solve ↗
STEP 04

Hashing

0/6 solved

Theory

FAQs

Longest Consecutive Sequence in an Array Medium Solve ↗
Longest subarray with sum K Medium Solve ↗
Largest Subarray with Sum 0 Medium Solve ↗
Count subarrays with given sum Medium Solve ↗
Count subarrays with given xor K Hard Solve ↗
STEP 05

Binary Search

0/32 solved

Fundamentals

Search X in sorted array Easy Solve ↗
Lower Bound Medium Solve ↗
Upper Bound Medium Solve ↗

Logic Building

Search insert position Easy Solve ↗
Floor and Ceil in Sorted Array Medium Solve ↗
First and last occurrence Medium Solve ↗
Search in rotated sorted array-I Medium Solve ↗
Search in rotated sorted array-II Medium Solve ↗
Find minimum in Rotated Sorted Array Medium Solve ↗
Find out how many times the array is rotated Medium Solve ↗
Single element in sorted array Medium Solve ↗
Count Occurrences in a Sorted Array Medium Solve ↗

On answers

Find square root of a number Medium Solve ↗
Find Nth root of a number Medium Solve ↗
Find the smallest divisor Medium Solve ↗
Koko eating bananas Hard Solve ↗
Minimum days to make M bouquets Hard Solve ↗
Capacity to Ship Packages Within D Days Hard Solve ↗
Kth Missing Positive Number Hard Solve ↗
Painter's Partition Hard Solve ↗

FAQs

Aggressive Cows Hard Solve ↗
Book Allocation Problem Hard Solve ↗
Find peak element Medium Solve ↗
Median of 2 sorted arrays Hard Solve ↗
Kth element of 2 sorted arrays Hard Solve ↗
Minimize Max Distance to Gas Station Hard Solve ↗
Split array - largest sum Hard Solve ↗

2D Arrays

Find row with maximum 1's Medium Solve ↗
Search in a 2D Matrix Medium Solve ↗
Search in 2D matrix - II Medium Solve ↗
Find Peak Element - II Medium Solve ↗
Matrix Median Hard Solve ↗
STEP 06

Strings (Basic and Medium)

0/7 solved

Parentheses

Remove Outermost Parentheses Medium Solve ↗
Maximum Nesting Depth of the Parentheses Medium Solve ↗

String Conversions

Roman to Integer Easy Solve ↗
String to Integer (atoi) Medium Solve ↗

Substring Problems

Count Number of Substrings Theory Solve ↗
Longest Palindromic Substring Medium Solve ↗
Sum of Beauty of All Substrings Medium Solve ↗
STEP 07

Recursion

0/22 solved

Implementation Problems

Pow(x,n) Medium Solve ↗
Generate Parentheses Medium Solve ↗
Power Set Medium Solve ↗
Count Good Numbers Medium Solve ↗
Reverse a Stack Medium Solve ↗

Subsequence Pattern Problems

Check if there exists a subsequence with sum K Medium Solve ↗
Count all subsequences with sum K Medium Solve ↗
Generate Binary Strings Without Consecutive 1s Medium Solve ↗

FAQs (Medium)

Combination Sum Medium Solve ↗
Combination Sum II Medium Solve ↗
Subsets I Medium Solve ↗
Subsets II Medium Solve ↗
Combination Sum III Hard Solve ↗

Hard

Letter Combinations of a Phone Number Hard Solve ↗

FAQs (Hard)

Palindrome partitioning Hard Solve ↗
Word Search Hard Solve ↗
N Queen Hard Solve ↗
Rat in a Maze Hard Solve ↗
M Coloring Problem Hard Solve ↗
Sudoku Solver Hard Solve ↗
Expression Add Operators Hard Solve ↗
STEP 08

Linked-List

0/49 solved

Fundamentals (Single LL)

Traversal in Linked List Easy Solve ↗
Deletion of the head of LL Medium Solve ↗
Deletion of the tail of Linked List Medium Solve ↗
Deletion of the Kth element of Linked List Medium Solve ↗
Delete the element with value X Medium Solve ↗
Insertion at the head of Linked List Medium Solve ↗
Insertion at the tail of Linked List Medium Solve ↗
Insertion at the Kth position of Linked List Medium Solve ↗
Insertion before the value X in Linked List Medium Solve ↗
Find the length of the Linked List Easy Solve ↗
Search in Linked List Medium Solve ↗

Fundamentals (Doubly LL)

Convert Array to Doubly Linked List Medium Solve ↗
Delete Tail of Doubly Linked List Medium Solve ↗
Delete Kth Element of Doubly Linked List Medium Solve ↗
Removing given node in Doubly Linked List Medium Solve ↗
Insert node before head in Doubly Linked List Medium Solve ↗
Insert node before tail in Doubly Linked List Medium Solve ↗
Insert node before (kth node) in Doubly Linked List Medium Solve ↗
Insert before given node in Doubly Linked List Medium Solve ↗
Delete head of Doubly Linked List Medium Solve ↗
Reverse a Doubly Linked List Medium Solve ↗

Logic Building

Add two numbers in Linked List Medium Solve ↗
Segregate odd and even nodes in Linked List Medium Solve ↗
Sort a Linked List of 0's 1's and 2's Medium Solve ↗
Remove Nth node from the back of the LL Medium Solve ↗
Reverse a LL Medium Solve ↗

FAQs (Medium)

Add one to a number represented by LL Medium Solve ↗
Find Middle of Linked List Easy Solve ↗
Delete the middle node in LL Medium Solve ↗
Check if LL is palindrome or not Medium Solve ↗
Find the intersection point of Y LL Medium Solve ↗
Detect a loop in LL Medium Solve ↗
Find the starting point in LL Medium Solve ↗
Length of loop in LL Medium Solve ↗

FAQs (Hard)

Reverse LL in group of given size K Hard Solve ↗
Rotate a LL Medium Solve ↗
Merge two Sorted Lists Easy Solve ↗
Flattening of LL Hard Solve ↗
Sort LL Medium Solve ↗
Clone a LL with random and next pointer Hard Solve ↗

FAQS (DLL)

Delete all occurrences of a key in DLL Medium Solve ↗
Remove duplicates from sorted DLL Medium Solve ↗
Find Pairs with Given Sum in Doubly Linked List Medium Solve ↗
STEP 09

Bit Manipulation

0/14 solved

Theory

Bit Fundamentals

Check if the i-th bit is Set or Not Easy Solve ↗
Check if a Number is Odd or Not Easy Solve ↗
Check if a Number is Power of 2 or Not Easy Solve ↗
Count the Number of Set Bits Easy Solve ↗
Set the Rightmost Unset Bit Theory Solve ↗
Swap Two Numbers Easy Solve ↗

Problems

Minimum Bit Flips to Convert Number Easy Solve ↗
Single Number - I Easy Solve ↗
Single Number - II Medium Solve ↗
Single Number - III Hard Solve ↗
Divide two numbers without multiplication and division Medium Solve ↗
Power Set Bit Manipulation Medium Solve ↗
XOR of numbers in a given range Medium Solve ↗
STEP 10

Greedy Algorithms

0/14 solved

Easy

Assign Cookies Medium Solve ↗
Lemonade Change Medium Solve ↗
Fractional Knapsack Medium Solve ↗
Jump Game - I Medium Solve ↗

Scheduling and Interval Problems

Shortest Job First Medium Solve ↗
Job sequencing Problem Medium Solve ↗
N meetings in one room Medium Solve ↗
Non-overlapping Intervals Medium Solve ↗
Insert Interval Medium Solve ↗
Merge Intervals Medium Solve ↗
Minimum number of platforms required for a railway Medium Solve ↗

Hard

Valid Paranthesis Checker Hard Solve ↗
Candy Hard Solve ↗
Jump Game II Hard Solve ↗
STEP 11

Sliding Window / 2 Pointer

0/13 solved

Pattern and Template

Theory Medium Learn →

Constant Window

Maximum Points You Can Obtain from Cards Medium Solve ↗

Longest and Smallest Window Problems

Longest Substring Without Repeating Characters Medium Solve ↗
Max Consecutive Ones III Medium Solve ↗
Fruit Into Baskets Medium Solve ↗
Longest Substring With At Most K Distinct Characters Hard Solve ↗
Longest Repeating Character Replacement Hard Solve ↗
Minimum Window Substring Hard Solve ↗
Minimum Window Subsequence Hard Solve ↗

Counting Subarrays / Substrings Problems

Number of Substrings Containing All Three Characters Medium Solve ↗
Binary Subarrays With Sum Medium Solve ↗
Count number of Nice subarrays Hard Solve ↗
Subarrays with K Different Integers Hard Solve ↗
STEP 12

Stack / Queues

0/31 solved

Implementation

Implement Stack using Arrays Medium Solve ↗
Implement Queue using Arrays Medium Solve ↗
Implement Stack using Queue Medium Solve ↗
Implement Queue using Stack Medium Solve ↗
Implement stack using Linkedlist Medium Solve ↗
Implement queue using Linkedlist Medium Solve ↗
Balanced Paranthesis Medium Solve ↗

Prefix, Infix and Postfix Conversions

Infix to Postfix Conversion Medium Solve ↗
Infix to Prefix Conversion Medium Solve ↗
Prefix to Infix Conversion Medium Solve ↗
Prefix to Postfix Conversion Medium Solve ↗
Postfix to Infix Conversion Medium Solve ↗
Postfix to Prefix Conversion Medium Solve ↗

Monotonic Stack

Next Greater Element Medium Solve ↗
Next Greater Element - 2 Medium Solve ↗
Asteroid Collision Medium Solve ↗
Sum of Subarray Minimums Medium Solve ↗
Sum of Subarray Ranges Medium Solve ↗
Remove K Digits Medium Solve ↗
Next Smaller Element Medium Solve ↗

FAQs

Implement Min Stack Medium Solve ↗
Sliding Window Maximum Hard Solve ↗
Trapping Rainwater Hard Solve ↗
Largest rectangle in a histogram Hard Solve ↗
Maximum Rectangles Hard Solve ↗
Stock span problem Medium Solve ↗
Celebrity Problem Medium Solve ↗
LRU Cache Hard Solve ↗
LFU Cache Hard Solve ↗
Number of Greater Elements to the Right Medium Solve ↗
STEP 13

Binary Trees

0/32 solved

Theory/Traversals

Inorder Traversal Easy Solve ↗
Preorder Traversal Easy Solve ↗
Postorder Traversal Easy Solve ↗
Level Order Traversal Medium Solve ↗
Pre, Post, Inorder in one traversal Medium Solve ↗

Medium Problems

Maximum Depth in BT Medium Solve ↗
Check if two trees are identical or not Medium Solve ↗
Check for balanced binary tree Medium Solve ↗
Diameter of Binary Tree Medium Solve ↗
Maximum path sum Hard Solve ↗
Check for symmetrical BTs Medium Solve ↗
Children Sum Property in Binary Tree Medium Solve ↗

FAQs

Zig Zag or Spiral Traversal Medium Solve ↗
Boundary Traversal Medium Solve ↗
Vertical Order Traversal Hard Solve ↗
Top View of BT Medium Solve ↗
Bottom view of BT Medium Solve ↗
Right/Left View of BT Medium Solve ↗
Print root to leaf path in BT Medium Solve ↗
LCA in BT Hard Solve ↗
Maximum Width of BT Hard Solve ↗
Print all nodes at a distance of K in BT Hard Solve ↗
Minimum time taken to burn the BT from a given Node Hard Solve ↗
Count total nodes in a complete BT Medium Solve ↗
Flatten Binary Tree to Linked List Hard Solve ↗

Construction Problems

Requirements needed to construct a unique BT Medium Solve ↗
Construct a BT from Preorder and Inorder Medium Solve ↗
Construct a BT from Postorder and Inorder Medium Solve ↗
Serialize and De-serialize BT Hard Solve ↗

Traversal in Constant Space

Morris Inorder Traversal Hard Solve ↗
Morris Preorder Traversal Hard Solve ↗
STEP 14

Binary Search Trees

0/15 solved

Theory and Basics

Search in BST Easy Solve ↗
Floor and Ceil in a BST Medium Solve ↗
Minimum and Maximum in BST Theory Solve ↗

Medium

Insert a given node in BST Medium Solve ↗
Delete a node in BST Medium Solve ↗
Kth Smallest and Largest element in BST Medium Solve ↗
Check if a tree is a BST or not Medium Solve ↗
LCA in BST Medium Solve ↗
Construct a BST from a preorder traversal Medium Solve ↗
Inorder successor and predecessor in BST Medium Solve ↗

FAQs

BST iterator Medium Solve ↗
Two sum in BST Medium Solve ↗
Correct BST with two nodes swapped Hard Solve ↗
Largest BST in Binary Tree Hard Solve ↗
STEP 15

Heaps

0/20 solved

Theory and Implementation

Heapify Algorithm Medium Solve ↗
Build heap from a given Array Medium Solve ↗
Implement Min Heap Medium Solve ↗
Implement Max Heap Medium Solve ↗
Check if an array represents a min heap Medium Solve ↗
Convert Min Heap to Max Heap Medium Solve ↗
Heap Sort Hard Solve ↗
K-th Largest element in an array Hard Solve ↗

FAQs

Kth largest element in a stream of running integers Hard Solve ↗
Sort a K-Sorted Array Theory Solve ↗
Merge K sorted Lists Hard Solve ↗
Replace Elements by Their Rank Medium Solve ↗
Task Scheduler Medium Solve ↗
Hand of Straights Medium Solve ↗
Design Twitter Medium Solve ↗
Minimum Cost to Connect Sticks Medium Solve ↗
Maximum Sum Combination Medium Solve ↗
Find Median from Data Stream Hard Solve ↗
Top K Frequent Elements Medium Solve ↗
STEP 16

Graphs

0/46 solved

Theory and traversals

Traversal Techniques Medium Solve ↗
Connected Components Medium Solve ↗

Traversal Problems

Number of provinces Medium Solve ↗
Number of islands Medium Solve ↗
Flood fill algorithm Medium Solve ↗
Number of enclaves Medium Solve ↗
Rotten Oranges Medium Solve ↗
Distance of nearest cell having one Medium Solve ↗
Surrounded Regions Medium Solve ↗
Number of distinct islands Medium Solve ↗

Cycles

Detect a cycle in an undirected graph Medium Solve ↗
Bipartite graph Medium Solve ↗
Topological sort or Kahn's algorithm Medium Solve ↗
Detect a cycle in a directed graph Medium Solve ↗

Hard Problems

Find eventual safe states Hard Solve ↗
Course Schedule I Hard Solve ↗
Course Schedule II Hard Solve ↗
Alien Dictionary Hard Solve ↗
Shortest path in DAG Medium Solve ↗
Shortest path in undirected graph with unit weights Medium Solve ↗
Word ladder I Hard Solve ↗
Word ladder II Hard Solve ↗

Shortest Path Algorithms

Dijkstra's algorithm Medium Solve ↗
Print Shortest Path Medium Solve ↗
Shortest Distance in a Binary Maze Medium Solve ↗
Path with minimum effort Medium Solve ↗
Cheapest flight within K stops Hard Solve ↗
Minimum multiplications to reach end Hard Solve ↗
Number of ways to arrive at destination Hard Solve ↗
Bellman ford algorithm Hard Solve ↗
Floyd warshall algorithm Hard Solve ↗
Find the city with the smallest number of neighbors Hard Solve ↗
Network Delay Time Medium Solve ↗
Swim in Rising Water Hard Solve ↗

Minimum Spanning Tree

Disjoint Set Medium Solve ↗
Find the MST weight Medium Solve ↗

Hard Problems II

Number of operations to make network connected Medium Solve ↗
Accounts merge Medium Solve ↗
Number of islands II Hard Solve ↗
Making a large island Hard Solve ↗
Most stones removed with same row or column Hard Solve ↗

Additional Algorithms

Kosaraju's algorithm Hard Solve ↗
Bridges in graph Hard Solve ↗
Articulation point in graph Hard Solve ↗
STEP 17

Dynamic Programming

0/53 solved

Introduction

1D DP

Climbing stairs Medium Solve ↗
Frog Jump Medium Solve ↗
Frog jump with K distances Medium Solve ↗
Maximum sum of non adjacent elements Medium Solve ↗
House robber Medium Solve ↗

2D DP

Ninja's training Medium Solve ↗

DP on grids

Grid unique paths Medium Solve ↗
Unique paths II Hard Solve ↗
Minimum Falling Path Sum Medium Solve ↗
Triangle Medium Solve ↗
Cherry pickup II Hard Solve ↗
Count Square Submatrices with All Ones Solve ↗

DP on stocks

Best time to buy and sell stock Medium Solve ↗
Best time to buy and sell stock II Medium Solve ↗
Best time to buy and sell stock III Hard Solve ↗
Best time to buy and sell stock IV Hard Solve ↗
Best time to buy and sell stock with transaction fees Medium Solve ↗
Best Time to Buy and Sell Stock with Cooldown Medium Solve ↗

DP on subsequences

Subset sum equals to target Medium Solve ↗
Partition equal subset sum Medium Solve ↗
Partition a set into two subsets with minimum absolute sum difference Hard Solve ↗
Count subsets with sum K Medium Solve ↗
Count partitions with given difference Medium Solve ↗
0 and 1 Knapsack Medium Solve ↗
Minimum coins Medium Solve ↗
Target sum Medium Solve ↗
Coin change II Hard Solve ↗
Unbounded knapsack Medium Solve ↗
Rod cutting problem Hard Solve ↗

LIS

Longest Increasing Subsequence Medium Solve ↗
Print Longest Increasing Subsequence Hard Solve ↗
Largest Divisible Subset Medium Solve ↗
Longest String Chain Medium Solve ↗
Longest Bitonic Subsequence Medium Solve ↗
Number of Longest Increasing Subsequences Medium Solve ↗

DP on strings

Longest common subsequence Medium Solve ↗
Longest common substring Medium Solve ↗
Longest palindromic subsequence Medium Solve ↗
Minimum insertions to make string palindrome Hard Solve ↗
Minimum insertions or deletions to convert string A to B Medium Solve ↗
Shortest common supersequence Hard Solve ↗
Distinct subsequences Hard Solve ↗
Edit distance Hard Solve ↗
Wildcard matching Hard Solve ↗
Word Break Medium Solve ↗
Count Palindromic Subsequences Hard Solve ↗

MCM DP

Matrix chain multiplication Hard Solve ↗
Burst balloons Hard Solve ↗
Palindrome partitioning II Hard Solve ↗
Partition Array for Maximum Sum Hard Solve ↗
Minimum cost to cut the stick Hard Solve ↗
Different Ways to Evaluate a Boolean Expression Hard Solve ↗
STEP 18

Tries

0/7 solved

Theory

Trie Implementation and Operations Medium Solve ↗
Trie Implementation and Advanced Operations Medium Solve ↗

Problems

Longest Word with All Prefixes Medium Solve ↗
Number of distinct substrings in a string Hard Solve ↗
Maximum XOR of two numbers in an array Medium Solve ↗
Maximum Xor with an element from an array Hard Solve ↗
STEP 19

Strings (Advanced Algo)

0/9 solved

Medium Problems

Reverse every word in a string Medium Solve ↗
Minimum number of bracket reversals to make an expression balanced Medium Solve ↗
Count and say Medium Solve ↗

Advanced Problems (Less asked)

Rabin Karp Algorithm Hard Solve ↗
Z function Hard Solve ↗
KMP Algorithm or LPS array Hard Solve ↗
Shortest Palindrome Hard Solve ↗
Longest happy prefix Hard Solve ↗
STEP 20

Maths

0/3 solved

Sieve of Eratosthenes

Print all primes till N Medium Solve ↗
Prime factorisation of a Number Medium Solve ↗
Count primes in range L to R Hard Solve ↗