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.
- 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 |
|---|---|---|---|
| 1 | Binary Tree Cameras Tree · Traversal · Binary Tree | 55.21% | Hard |
| 2 | Boundary Traversal Tree · Traversal · Binary Tree | 45.21% | Hard |
| 3 | Compare Leaf Traversal Tree · Traversal · Binary Tree | 77.95% | Medium |
| 4 | Binary Tree Post Order Traversal Tree · Recursion · Traversal | 79.59% | Easy |
| 5 | Inorder Successor in BST Tree · Traversal · Binary Tree | 60.12% | Medium |
| 6 | Kth Largest Element in BST Tree · Traversal · Binary Tree | 70.53% | Medium |
| 7 | Construct Tree from Inorder + Postorder Tree · Traversal · Binary Tree | 65.12% | Medium |
| 8 | Top View of Binary Tree Tree · Traversal · Binary Tree | 60.21% | Medium |
| 9 | Convert Sorted Array to BST Tree · Traversal · Binary Tree | 74.56% | Medium |
| 10 | Find Maximum in BST Tree · Traversal · Binary Tree | 85.54% | Easy |
| 11 | Find Minimum in BST Tree · Traversal · Binary Tree | 85.18% | Easy |
| 12 | Find Distance Between Two Nodes Tree · Traversal · Binary Tree | 62.45% | Medium |
| 13 | All Paths With Given Sum Tree · Traversal · Binary Tree | 74.23% | Medium |
| 14 | Maximum Root to Leaf Path Sum Tree · Traversal · Binary Tree | 72.15% | Medium |
| 15 | Count Non-Leaf Nodes In Binary Tree Tree · Traversal · Binary Tree | 60.48% | Easy |
| 16 | Minimum Depth of Binary Tree Tree · Traversal · Binary Tree | 60.25% | Medium |
| 17 | Construct Tree from Inorder + Preorder Tree · Traversal · Binary Tree | 70.00% | Medium |
| 18 | Right View of Binary Tree Tree · Traversal · Binary Tree | 74.36% | Medium |
| 19 | Lowest Common Ancestor in BST Tree · Traversal · Binary Tree | 70.50% | Medium |
| 20 | Kth Smallest Element in BST Tree · Traversal · Binary Tree | 76.77% | Medium |
| 21 | Maximum Path Sum in Binary Tree Tree · Traversal · Binary Tree | 58.59% | Hard |
| 22 | Delete Node In BST Tree · Traversal · Binary Tree | 65.20% | Medium |
| 23 | Validate BST Tree · Traversal · Binary Tree | 45.23% | Medium |
| 24 | Search / Insert into BST Tree · Traversal · Binary Tree | 89.54% | Easy |
| 25 | Find Nodes at Distance K from Given Node Tree · Traversal · Binary Tree | 65.95% | Hard |
| 26 | Lowest Common Ancestor of Binary Tree Tree · Traversal · Binary Tree | 78.59% | Medium |
| 27 | Print All Root To Leaf Paths Tree · Traversal · Binary Tree | 68.59% | Hard |
| 28 | Root To Leaf Path Sum Tree · Traversal · Binary Tree | 78.56% | Medium |
| 29 | Diameter of Binary Tree Tree · Traversal · Binary Tree | 73.45% | Medium |
| 30 | Check Binary Tree Is Balanced Tree · Traversal · Binary Tree | 78.95% | Medium |
| 31 | Check if Tree is Symmetric Tree · Traversal · Binary Tree | 74.98% | Medium |
| 32 | Check if Two Trees are Identical Tree · Traversal · Binary Tree | 76.59% | Medium |
| 33 | Count Leaf Nodes In Binary Tree Tree · Traversal · Binary Tree | 74.59% | Medium |
| 34 | Count Total Nodes in Binary Tree Tree · Traversal · Binary Tree | 75.68% | Medium |
| 35 | Height / Max Depth of Binary Tree Tree · Traversal · Binary Tree | 75.36% | Medium |
| 36 | Binary Tree Zigzag Level Order Traversal Tree · Recursion · Traversal | 71.48% | Medium |
| 37 | Binary Tree Level Order Traversal Tree · Recursion · Traversal | 79.68% | Easy |
| 38 | Binary Tree Preorder Traversal Tree · Recursion · Binary Tree | 79.85% | Easy |
| 39 | Number of Turns in Binary Tree Tree | 50.00% | Hard |
| 40 | Find Largest Value in Each Tree Row Tree | 50.00% | Medium |
| 41 | Maximum Width of Binary Tree Tree | 50.00% | Easy |
Practice that builds the habit
Three steps, repeated every day.
- 1
Pick a pattern
Start from an idea such as two pointers or BFS, then move through easy, medium and hard.
- 2
Code and run
Write in your language, run on sample cases and submit against every hidden test.
- 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.


