Think in patterns.
Solve like it’s the interview.
hand-picked DSA problems in C#, Java, Python, C++ and JavaScript. Run your code, climb the leaderboard and keep your streak alive.
- 46problems
- 12core patterns
- 5languages
- 2 Lakh+learners trained
Bubble sort
ArraysO(n²)Running
Compare neighbours, swap when out of order.
Inorder traversal
TreesDFSO(n)
Visit order:
Breadth-first search
GraphsQueueO(V+E)
Level order:
Longest common subsequence
Dynamic ProgrammingO(mn)
dp[i][j] = best length for the first i and j characters.
Browse by pattern
Master the idea once, solve the whole family.
| # | Title | Acceptance | Difficulty |
|---|---|---|---|
| 1 | Calculate a^b Using Exponentiation by Squaring Data Structures Basics · Searching Algorithms · Sorting Algorithms | 86.53% | Basic |
| 2 | Find All Numbers Having Exactly K Divisors Data Structures Basics · Searching Algorithms · Basics | 77.99% | Basic |
| 3 | Find the Sum of Divisors Data Structures Basics · Hash Table | 78.12% | Basic |
| 4 | Find the Longest Consecutive Sequence of the Same Digit Data Structures Basics · Array · String | 84.75% | Basic |
| 5 | Check Whether Digits Alternate in Parity Data Structures Basics · String · Searching Algorithms | 78.04% | Basic |
| 6 | Check Whether Digits Are Strictly Decreasing Data Structures Basics · String · Searching Algorithms | 87.15% | Basic |
| 7 | Check Whether Digits Are Strictly Increasing Data Structures Basics · Searching Algorithms | 96.12% | Basic |
| 8 | Check Whether All Digits Are Distinct Data Structures Basics · String · Searching Algorithms | 79.18% | Basic |
| 9 | Find the Most Frequent Digit Data Structures Basics · Searching Algorithms | 84.69% | Basic |
| 10 | Find the Smallest and Second-Smallest Distinct Digits Data Structures Basics · Searching Algorithms | 91.98% | Basic |
| 11 | Find the Second Largest of Four Numbers Data Structures Basics · Array · Searching Algorithms | 89.48% | Basic |
| 12 | Sort Three Numbers Using Conditional Statements Data Structures Basics · Sorting Algorithms · Sorting Algorithm | 93.23% | Basic |
| 13 | Find Element in a Sorted Array Binary Search | 80.00% | Easy |
| 14 | Kth Smallest Pair Distance Binary Search | 65.00% | Medium |
| 15 | Find K Closest Elements Binary Search | 76.00% | Medium |
| 16 | Kth Smallest Element In A Matrix Binary Search | 70.00% | Medium |
| 17 | Kth Smallest In Multiplication Table Binary Search | 75.00% | Medium |
| 18 | Square Root of A Number Binary Search | 63.00% | Medium |
| 19 | Median Of Two Sorted Arrays Binary Search | 71.00% | Medium |
| 20 | Lower Bound Binary Search | 75.00% | Medium |
| 21 | Magnetic Force Between Two Balls Binary Search | 60.00% | Medium |
| 22 | Find Smallest Divisor Given A Threshold Binary Search | 67.00% | Medium |
| 23 | Minimise Maximum Distance To Go To Gas Station Binary Search | 64.00% | Medium |
| 24 | Capacity To Ship Packages Within D Days Binary Search | 65.00% | Medium |
| 25 | Median In Row-Wise Sorted Array Binary Search | 69.00% | Medium |
| 26 | Search in A Sorted 2D Matrix II Binary Search | 70.00% | Medium |
| 27 | Search in a 2D Matrix Recursion · Binary Search | 86.00% | Medium |
| 28 | Split Array Largest Sum Binary Search | 59.00% | Medium |
| 29 | Aggressive Cows Binary Search | 70.00% | Medium |
| 30 | Allocate Minimum Pages Binary Search | 62.00% | Medium |
| 31 | Minimum Speed to Arrive on Time Binary Search | 69.00% | Medium |
| 32 | Koko Eating Bananas Binary Search | 68.00% | Medium |
| 33 | Find Rotation Count Binary Search | 75.00% | Easy |
| 34 | Search in Rotated Array II Binary Search | 79.00% | Easy |
| 35 | Upper Bound Binary Search | 80.00% | Easy |
| 36 | Check if Element Exists Binary Search | 87.00% | Easy |
| 37 | Binary Search (Iterative) Binary Search | 79.00% | Easy |
| 38 | Search In Rotated Sorted Array Array · Searching Algorithms | 37.64% | Medium |
| 39 | Maximize Number of 1's Array · Binary Search | 50.00% | Medium |
| 40 | Find Transition Point Array · Searching Algorithms | 37.90% | Easy |
| 41 | Super Primes Searching Algorithms | 24.90% | Medium |
| 42 | Pair Sum Closest to 0 Searching Algorithms | 19.61% | Easy |
| 43 | Cake Distribution Problem Array · Searching Algorithms | 64.62% | Hard |
| 44 | 3 Sum Array · Sorting Algorithm | 35.80% | Medium |
| 45 | Smallest factorial number Searching Algorithms | 38.79% | Medium |
| 46 | Missing In Array Array · Searching Algorithms | 29.59% | Easy |
Practice that builds the habit
Three steps, repeated every day.
- 1
Pick a pattern
Start from an idea such as two pointers or BFS, then move through easy, medium and hard.
- 2
Code and run
Write in your language, run on sample cases and submit against every hidden test.
- 3
Climb the board
Every solve earns points. Keep a daily streak and see where you stand this month.
Want a plan, not just problems?
The DSA bootcamp adds structured lessons, live mentorship and mock interviews on top of this practice platform.


