Bootcamps
Masterclasses
Menu
Courses
Account
Login / Sign Up

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.

Start practicing
  • 45problems
  • 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
1Calculate a^b Using Exponentiation by Squaring Data Structures Basics · Searching Algorithms · Sorting Algorithms86.53%Basic
2Find All Numbers Having Exactly K Divisors Data Structures Basics · Searching Algorithms · Basics77.99%Basic
3Find the Sum of Divisors Data Structures Basics · Hash Table78.12%Basic
4Find the Longest Consecutive Sequence of the Same Digit Data Structures Basics · Array · String84.75%Basic
5Check Whether Digits Alternate in Parity Data Structures Basics · String · Searching Algorithms78.04%Basic
6Check Whether Digits Are Strictly Decreasing Data Structures Basics · String · Searching Algorithms87.15%Basic
7Check Whether Digits Are Strictly Increasing Data Structures Basics · Searching Algorithms96.12%Basic
8Check Whether All Digits Are Distinct Data Structures Basics · String · Searching Algorithms79.18%Basic
9Find the Most Frequent Digit Data Structures Basics · Searching Algorithms84.69%Basic
10Find the Smallest and Second-Smallest Distinct Digits Data Structures Basics · Searching Algorithms91.98%Basic
11Find the Second Largest of Four Numbers Data Structures Basics · Array · Searching Algorithms89.48%Basic
12Find Element in a Sorted Array Binary Search80.00%Easy
13Kth Smallest Pair Distance Binary Search65.00%Medium
14Find K Closest Elements Binary Search76.00%Medium
15Kth Smallest Element In A Matrix Binary Search70.00%Medium
16Kth Smallest In Multiplication Table Binary Search75.00%Medium
17Square Root of A Number Binary Search63.00%Medium
18Median Of Two Sorted Arrays Binary Search71.00%Medium
19Lower Bound Binary Search75.00%Medium
20Magnetic Force Between Two Balls Binary Search60.00%Medium
21Find Smallest Divisor Given A Threshold Binary Search67.00%Medium
22Minimise Maximum Distance To Go To Gas Station Binary Search64.00%Medium
23Capacity To Ship Packages Within D Days Binary Search65.00%Medium
24Median In Row-Wise Sorted Array Binary Search69.00%Medium
25Search in A Sorted 2D Matrix II Binary Search70.00%Medium
26Search in a 2D Matrix Recursion · Binary Search86.00%Medium
27Split Array Largest Sum Binary Search59.00%Medium
28Aggressive Cows Binary Search70.00%Medium
29Allocate Minimum Pages Binary Search62.00%Medium
30Minimum Speed to Arrive on Time Binary Search69.00%Medium
31Koko Eating Bananas Binary Search68.00%Medium
32Find Rotation Count Binary Search75.00%Easy
33Search in Rotated Array II Binary Search79.00%Easy
34Upper Bound Binary Search80.00%Easy
35Check if Element Exists Binary Search87.00%Easy
36Binary Search (Iterative) Binary Search79.00%Easy
37Search In Rotated Sorted Array Array · Searching Algorithms37.64%Medium
38Maximize Number of 1's Array · Binary Search50.00%Medium
39Find Transition Point Array · Searching Algorithms37.90%Easy
40Super Primes Searching Algorithms24.90%Medium
41Pair Sum Closest to 0 Searching Algorithms19.61%Easy
42Cake Distribution Problem Array · Searching Algorithms64.62%Hard
433 Sum Array · Sorting Algorithm35.80%Medium
44Smallest factorial number Searching Algorithms38.79%Medium
45Missing In Array Array · Searching Algorithms29.59%Easy

Practice that builds the habit

Three steps, repeated every day.

  1. 1

    Pick a pattern

    Start from an idea such as two pointers or BFS, then move through easy, medium and hard.

  2. 2

    Code and run

    Write in your language, run on sample cases and submit against every hidden test.

  3. 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.

Asked at companies like
  • Microsoft
  • Google
  • Amazon
  • Adobe
  • Oracle
  • Samsung
  • Cisco
  • IBM