Getting started
29 questionsBuild DSA basics with counting, loops, functions, and small numerical problems. Run examples and trace your own solutions in DSAWiser’s code visualizer.
- Basic29
Sample questions
DSA question sets + code visualization
Start with Basic questions. Build the foundations, learn the patterns, then progress to Easy, Medium, and Hard.
Write your solution and visualize your code step by step.
Try the demos without an account. Sign up to practice with your own code.
Supported languagesJavaScript · TypeScript · Python · Java · C++ · C · Go · Rust
function countNodes(node) { if (!node) return 0; const left = countNodes(node.left); const right = countNodes(node.right); return 1 + left + right;}Visit node 8. Count its left and right subtrees.
Your own practice workspace
Pick a question, write your solution, and visualize your code step by step.
7 of 26 question sets shown
Build DSA basics with counting, loops, functions, and small numerical problems. Run examples and trace your own solutions in DSAWiser’s code visualizer.
Sample questions
Explore 150 DSA questions in Two Pointers. Practice with DSAWiser’s code editor and visualizer.
Sample questions
Build recursion skills with DSA practice problems covering base cases, call stacks, backtracking, trees, and dynamic programming. Trace your code in DSAWiser.
Sample questions
Explore 150 DSA questions in Sliding Window. Practice with DSAWiser’s code editor and visualizer.
Sample questions
Explore 153 DSA questions in Monotonic Stack. Practice with DSAWiser’s code editor and visualizer.
Sample questions
Explore 197 DSA questions in Greedy. Practice with DSAWiser’s code editor and visualizer.
Sample questions
Explore 225 DSA questions in Dynamic Programming. Practice with DSAWiser’s code editor and visualizer.
Sample questions
Want a worked example? How to trace a Two Sum solution
Create a free account, write a solution, and inspect it with the visualizer.