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
  • 297problems
  • 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
51Check Whether Three Numbers Form a Geometric Progression Data Structures Basics · Comparisons82.80%Basic
52Classify a Triangle Using Sides and Angles Data Structures Basics · Comparisons73.99%Basic
53Rotate Digits of a Number to the Right Data Structures Basics · String · Basics86.67%Basic
54Calculate Movie Ticket Price Based on Age, Day and Seat Type Data Structures Basics96.93%Basic
55Find the Second Largest of Four Numbers Data Structures Basics · Array · Searching Algorithms89.48%Basic
56Find the Middle Value Among Three Distinct Numbers Comparisons82.79%Basic
57Sort Three Numbers Using Conditional Statements Data Structures Basics · Sorting Algorithms · Sorting Algorithm93.23%Basic
58Check Whether Three Angles Form a Valid Triangle Data Structures Basics · Comparisons91.52%Basic
59Create a Menu-Driven Scientific Calculator Data Structures Basics100.00%Basic
60Game with String Heap53.96%Medium
61Kth largest element Heap64.92%Medium
62Min Number of Jumps Dynamic Programming50.48%Medium
63House Robber Dynamic Programming51.45%Medium
64Min Cost Climbing Stairs Dynamic Programming65.21%Easy
65Odd Even Graph Check Graph63.45%Medium
66Redundant Connection Graph68.71%Medium
67Detect Cycle in Undirected Graph (DFS) Graph67.77%Medium
68Path Existence Between Two Nodes Graph80.12%Easy
69Detect Cycle in Directed Graph (DFS) Graph67.67%Medium
70Level of Each Node Graph74.21%Medium
71BFS Traversal Graph83.12%Easy
72DFS Traversal Graph · DFS · Traversal85.64%Easy
73Flood Fill Recursion69.00%Medium
74Number of Islands Recursion66.00%Medium
75Remove Duplicates From A String String · Stack61.68%Easy
76Remove Consecutive Duplicates Recursion60.00%Easy
77Find Element in a Sorted Array Binary Search80.00%Easy
78Binary Tree Cameras Tree · Traversal · Binary Tree55.21%Hard
79Boundary Traversal Tree · Traversal · Binary Tree45.21%Hard
80Compare Leaf Traversal Tree · Traversal · Binary Tree77.95%Medium
81Binary Tree Post Order Traversal Tree · Recursion · Traversal79.59%Easy
82Inorder Successor in BST Tree · Traversal · Binary Tree60.12%Medium
83Kth Largest Element in BST Tree · Traversal · Binary Tree70.53%Medium
84Construct Tree from Inorder + Postorder Tree · Traversal · Binary Tree65.12%Medium
85Top View of Binary Tree Tree · Traversal · Binary Tree60.21%Medium
86Convert Sorted Array to BST Tree · Traversal · Binary Tree74.56%Medium
87Find Maximum in BST Tree · Traversal · Binary Tree85.54%Easy
88Find Minimum in BST Tree · Traversal · Binary Tree85.18%Easy
89Find Distance Between Two Nodes Tree · Traversal · Binary Tree62.45%Medium
90All Paths With Given Sum Tree · Traversal · Binary Tree74.23%Medium
91Maximum Root to Leaf Path Sum Tree · Traversal · Binary Tree72.15%Medium
92Count Non-Leaf Nodes In Binary Tree Tree · Traversal · Binary Tree60.48%Easy
93Minimum Depth of Binary Tree Tree · Traversal · Binary Tree60.25%Medium
94Construct Tree from Inorder + Preorder Tree · Traversal · Binary Tree70.00%Medium
95Right View of Binary Tree Tree · Traversal · Binary Tree74.36%Medium
96Lowest Common Ancestor in BST Tree · Traversal · Binary Tree70.50%Medium
97Kth Smallest Element in BST Tree · Traversal · Binary Tree76.77%Medium
98Maximum Path Sum in Binary Tree Tree · Traversal · Binary Tree58.59%Hard
99Delete Node In BST Tree · Traversal · Binary Tree65.20%Medium
100Validate BST Tree · Traversal · Binary Tree45.23%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