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
  • 41problems
  • 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
1Binary Tree Cameras Tree · Traversal · Binary Tree55.21%Hard
2Boundary Traversal Tree · Traversal · Binary Tree45.21%Hard
3Compare Leaf Traversal Tree · Traversal · Binary Tree77.95%Medium
4Binary Tree Post Order Traversal Tree · Recursion · Traversal79.59%Easy
5Inorder Successor in BST Tree · Traversal · Binary Tree60.12%Medium
6Kth Largest Element in BST Tree · Traversal · Binary Tree70.53%Medium
7Construct Tree from Inorder + Postorder Tree · Traversal · Binary Tree65.12%Medium
8Top View of Binary Tree Tree · Traversal · Binary Tree60.21%Medium
9Convert Sorted Array to BST Tree · Traversal · Binary Tree74.56%Medium
10Find Maximum in BST Tree · Traversal · Binary Tree85.54%Easy
11Find Minimum in BST Tree · Traversal · Binary Tree85.18%Easy
12Find Distance Between Two Nodes Tree · Traversal · Binary Tree62.45%Medium
13All Paths With Given Sum Tree · Traversal · Binary Tree74.23%Medium
14Maximum Root to Leaf Path Sum Tree · Traversal · Binary Tree72.15%Medium
15Count Non-Leaf Nodes In Binary Tree Tree · Traversal · Binary Tree60.48%Easy
16Minimum Depth of Binary Tree Tree · Traversal · Binary Tree60.25%Medium
17Construct Tree from Inorder + Preorder Tree · Traversal · Binary Tree70.00%Medium
18Right View of Binary Tree Tree · Traversal · Binary Tree74.36%Medium
19Lowest Common Ancestor in BST Tree · Traversal · Binary Tree70.50%Medium
20Kth Smallest Element in BST Tree · Traversal · Binary Tree76.77%Medium
21Maximum Path Sum in Binary Tree Tree · Traversal · Binary Tree58.59%Hard
22Delete Node In BST Tree · Traversal · Binary Tree65.20%Medium
23Validate BST Tree · Traversal · Binary Tree45.23%Medium
24Search / Insert into BST Tree · Traversal · Binary Tree89.54%Easy
25Find Nodes at Distance K from Given Node Tree · Traversal · Binary Tree65.95%Hard
26Lowest Common Ancestor of Binary Tree Tree · Traversal · Binary Tree78.59%Medium
27Print All Root To Leaf Paths Tree · Traversal · Binary Tree68.59%Hard
28Root To Leaf Path Sum Tree · Traversal · Binary Tree78.56%Medium
29Diameter of Binary Tree Tree · Traversal · Binary Tree73.45%Medium
30Check Binary Tree Is Balanced Tree · Traversal · Binary Tree78.95%Medium
31Check if Tree is Symmetric Tree · Traversal · Binary Tree74.98%Medium
32Check if Two Trees are Identical Tree · Traversal · Binary Tree76.59%Medium
33Count Leaf Nodes In Binary Tree Tree · Traversal · Binary Tree74.59%Medium
34Count Total Nodes in Binary Tree Tree · Traversal · Binary Tree75.68%Medium
35Height / Max Depth of Binary Tree Tree · Traversal · Binary Tree75.36%Medium
36Binary Tree Zigzag Level Order Traversal Tree · Recursion · Traversal71.48%Medium
37Binary Tree Level Order Traversal Tree · Recursion · Traversal79.68%Easy
38Binary Tree Preorder Traversal Tree · Recursion · Binary Tree79.85%Easy
39Number of Turns in Binary Tree Tree50.00%Hard
40Find Largest Value in Each Tree Row Tree50.00%Medium
41Maximum Width of Binary Tree Tree50.00%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