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
  • 142problems
  • 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
1Game with String Heap53.96%Medium
2Kth largest element Heap64.92%Medium
3Min Number of Jumps Dynamic Programming50.48%Medium
4House Robber Dynamic Programming51.45%Medium
5Odd Even Graph Check Graph63.45%Medium
6Redundant Connection Graph68.71%Medium
7Detect Cycle in Undirected Graph (DFS) Graph67.77%Medium
8Detect Cycle in Directed Graph (DFS) Graph67.67%Medium
9Level of Each Node Graph74.21%Medium
10Flood Fill Recursion69.00%Medium
11Number of Islands Recursion66.00%Medium
12Compare Leaf Traversal Tree · Traversal · Binary Tree77.95%Medium
13Inorder Successor in BST Tree · Traversal · Binary Tree60.12%Medium
14Kth Largest Element in BST Tree · Traversal · Binary Tree70.53%Medium
15Construct Tree from Inorder + Postorder Tree · Traversal · Binary Tree65.12%Medium
16Top View of Binary Tree Tree · Traversal · Binary Tree60.21%Medium
17Convert Sorted Array to BST Tree · Traversal · Binary Tree74.56%Medium
18Find Distance Between Two Nodes Tree · Traversal · Binary Tree62.45%Medium
19All Paths With Given Sum Tree · Traversal · Binary Tree74.23%Medium
20Maximum Root to Leaf Path Sum Tree · Traversal · Binary Tree72.15%Medium
21Minimum Depth of Binary Tree Tree · Traversal · Binary Tree60.25%Medium
22Construct Tree from Inorder + Preorder Tree · Traversal · Binary Tree70.00%Medium
23Right View of Binary Tree Tree · Traversal · Binary Tree74.36%Medium
24Lowest Common Ancestor in BST Tree · Traversal · Binary Tree70.50%Medium
25Kth Smallest Element in BST Tree · Traversal · Binary Tree76.77%Medium
26Delete Node In BST Tree · Traversal · Binary Tree65.20%Medium
27Validate BST Tree · Traversal · Binary Tree45.23%Medium
28Lowest Common Ancestor of Binary Tree Tree · Traversal · Binary Tree78.59%Medium
29Root To Leaf Path Sum Tree · Traversal · Binary Tree78.56%Medium
30Diameter of Binary Tree Tree · Traversal · Binary Tree73.45%Medium
31Check Binary Tree Is Balanced Tree · Traversal · Binary Tree78.95%Medium
32Check if Tree is Symmetric Tree · Traversal · Binary Tree74.98%Medium
33Check if Two Trees are Identical Tree · Traversal · Binary Tree76.59%Medium
34Count Leaf Nodes In Binary Tree Tree · Traversal · Binary Tree74.59%Medium
35Count Total Nodes in Binary Tree Tree · Traversal · Binary Tree75.68%Medium
36Height / Max Depth of Binary Tree Tree · Traversal · Binary Tree75.36%Medium
37Binary Tree Zigzag Level Order Traversal Tree · Recursion · Traversal71.48%Medium
38Intersection of Two Linked Lists Linked List75.00%Medium
39Sort A Linked List (Merge Sort) Linked List58.00%Medium
40Merge K Sorted Lists Linked List70.00%Medium
41Merge Two Sorted Linked Lists Link List59.00%Medium
42Swap Nodes in Pairs Linked List65.00%Medium
43Reverse Sublist (Between Left & Right) Linked List67.00%Medium
44Reverse Linked List in K Groups Linked List60.00%Medium
45Reverse Linked List in Pairs Linked List63.00%Medium
46Kth Smallest Pair Distance Binary Search65.00%Medium
47Find K Closest Elements Binary Search76.00%Medium
48Kth Smallest Element In A Matrix Binary Search70.00%Medium
49Remove Nth Node From End Linked List73.00%Medium
50Check if Linked List is Palindrome Linked List67.00%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