Live Batches
Masterclasses
Menu
Free 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
  • 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
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
12Sort Three Numbers Using Conditional Statements Data Structures Basics · Sorting Algorithms · Sorting Algorithm93.23%Basic
13Find Element in a Sorted Array Binary Search80.00%Easy
14Kth Smallest Pair Distance Binary Search65.00%Medium
15Find K Closest Elements Binary Search76.00%Medium
16Kth Smallest Element In A Matrix Binary Search70.00%Medium
17Kth Smallest In Multiplication Table Binary Search75.00%Medium
18Square Root of A Number Binary Search63.00%Medium
19Median Of Two Sorted Arrays Binary Search71.00%Medium
20Lower Bound Binary Search75.00%Medium
21Magnetic Force Between Two Balls Binary Search60.00%Medium
22Find Smallest Divisor Given A Threshold Binary Search67.00%Medium
23Minimise Maximum Distance To Go To Gas Station Binary Search64.00%Medium
24Capacity To Ship Packages Within D Days Binary Search65.00%Medium
25Median In Row-Wise Sorted Array Binary Search69.00%Medium
26Search in A Sorted 2D Matrix II Binary Search70.00%Medium
27Search in a 2D Matrix Recursion · Binary Search86.00%Medium
28Split Array Largest Sum Binary Search59.00%Medium
29Aggressive Cows Binary Search70.00%Medium
30Allocate Minimum Pages Binary Search62.00%Medium
31Minimum Speed to Arrive on Time Binary Search69.00%Medium
32Koko Eating Bananas Binary Search68.00%Medium
33Find Rotation Count Binary Search75.00%Easy
34Search in Rotated Array II Binary Search79.00%Easy
35Upper Bound Binary Search80.00%Easy
36Check if Element Exists Binary Search87.00%Easy
37Binary Search (Iterative) Binary Search79.00%Easy
38Search In Rotated Sorted Array Array · Searching Algorithms37.64%Medium
39Maximize Number of 1's Array · Binary Search50.00%Medium
40Find Transition Point Array · Searching Algorithms37.90%Easy
41Super Primes Searching Algorithms24.90%Medium
42Pair Sum Closest to 0 Searching Algorithms19.61%Easy
43Cake Distribution Problem Array · Searching Algorithms64.62%Hard
443 Sum Array · Sorting Algorithm35.80%Medium
45Smallest factorial number Searching Algorithms38.79%Medium
46Missing 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