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
  • 43problems
  • 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
1Find the Missing Term in a Geometric Progression Introduction · Data Structures Basics · Array88.72%Basic
2Find the Missing Term in an Arithmetic Progression Introduction · Data Structures Basics · Array82.87%Basic
3Find GCD of Multiple Numbers Data Structures Basics · Array · Basics98.77%Basic
4Find LCM of Multiple Numbers Data Structures Basics · Array · Basics87.89%Basic
5Find the Longest Consecutive Sequence of the Same Digit Data Structures Basics · Array · String84.75%Basic
6Remove All Occurrences of a Digit Data Structures Basics · Array · String78.62%Basic
7Find the Second Smallest of Four Numbers Data Structures Basics · Array · Sorting Algorithms89.85%Basic
8Find the Second Largest of Four Numbers Data Structures Basics · Array · Searching Algorithms89.48%Basic
9Permutation of an Array Array · Recursion68.00%Medium
10Missing And Repeating Array24.83%Easy
11Search In Rotated Sorted Array Array · Searching Algorithms37.64%Medium
12Longest Common Prefix Array · String44.20%Easy
13Count Inversions Array · Sorting Algorithms16.93%Medium
142Sum - Pair With Given Sum Array · Hashing · Hashmap30.61%Easy
15Maximize Number of 1's Array · Binary Search50.00%Medium
16Maximum fruit gathering by birds Array50.00%Easy
17Sum of elements of smallest subarray greater than x Array50.00%Easy
18Minimum sum Array · Sorting Algorithms17.14%Medium
19Number of Pairs Array21.82%Medium
20Find Transition Point Array · Searching Algorithms37.90%Easy
210-1 Knapsack Problem Array · Dynamic Programming50.00%Medium
22Rod Cutting Array · Dynamic Programming50.00%Medium
23Stock buy and sell Array · Dynamic Programming29.18%Medium
24Maximum Meetings in One Room Array · Sorting Algorithms33.57%Medium
25Distinct Paths II Array · Recursion · Dynamic Programming50.00%Medium
26Minimum Path Sum Array · Dynamic Programming · 2D Array50.00%Medium
27Distinct Paths Array · Recursion · Dynamic Programming50.00%Medium
28Longest Increasing Subsequence Array · Dynamic Programming20.00%Medium
29Longest Common Subsequence Array · String · Dynamic Programming50.00%Medium
30Cake Distribution Problem Array · Searching Algorithms64.62%Hard
31Search Insert Position Array · Sorting Algorithms48.03%Easy
323 Sum Array · Sorting Algorithm35.80%Medium
33Making A Large Island Graph · BFS · DFS52.36%Hard
34Stepping Numbers BFS · DFS48.44%Medium
35Course Schedule Graph · BFS · DFS51.77%Medium
36You and your books Array · Dynamic Programming50.00%Easy
37Next Smallest Palindrome Array19.63%Hard
38Count Smaller elements Array38.16%Hard
39Find Kth Rotation Array · Stack · Searching Algorithm23.16%Easy
40Merge Sorted Arrays Array · Sorting Algorithms32.01%Easy
41Missing In Array Array · Searching Algorithms29.59%Easy
42Maximum Product Of Two Numbers Array · Sorting Algorithms81.34%Basic
43Maximum Subarray Sum Array36.28%Medium

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