DSA interview practice problems
300 problems across arrays, trees, graphs, dynamic programming and more. Solve the free set on your own in Practice Mode. When you want to rehearse the real thing, open any problem in AI Interview Mode and talk it through with a voice interviewer.
Pick a problem.
Free problems open straight into the solver. The rest run as AI interviews.
All 300 problems
Binary Search
Free practice
EasyBinary searchGoogle, Amazon, Microsoft +2Binary Tree Level Order Traversal
Free practice
MediumTreesAmazon, Google, Microsoft +2Group Anagrams
Free practice
MediumStringsAmazon, Google, Facebook +2Longest Substring Without Repeating Characters
Free practice
MediumStringsAmazon, Google, Microsoft +2Merge Two Sorted Lists
Free practice
EasyLinked listsAmazon, Google, Microsoft +2Number of Islands
Free practice
MediumGraphsAmazon, Google, Microsoft +2Product of Array Except Self
Free practice
MediumArraysAmazon, Microsoft, Apple +2Top K Frequent Elements
Free practice
MediumHeapAmazon, Meta, Google +5Trapping Rain Water
Free practice
HardArraysGoogle, Amazon, Meta +4Two Sum
Free practice
EasyArraysGoogle, Amazon, Meta +2Valid Parentheses
Free practice
EasyStacks & queuesGoogle, Amazon, Meta +2Word Ladder
Free practice
HardGraphsAmazon, Meta, Google +43Sum
Locked · AI interview only
MediumArraysGoogle, Amazon, Meta +3Add Bold Tag in String
Locked · AI interview only
MediumTrieGoogle, Amazon, Meta +1Alien Dictionary Smallest Order
Locked · AI interview only
HardStringsGoogle, Meta, Amazon +4All Ancestors of a Node in a Directed Acyclic Graph
Locked · AI interview only
MediumGraphsGoogle, Amazon, MicrosoftAll Nodes Distance K In Binary Tree
Locked · AI interview only
MediumTreesAmazon, Meta, Google +3All Subset Sums
Locked · AI interview only
EasyBacktrackingAmazon, Microsoft, AdobeApply Operations to Make Two Strings Equal
Locked · AI interview only
MediumDPGoogle, Amazon, MicrosoftArray Nesting
Locked · AI interview only
MediumArraysApple, Google, AmazonAssembly Line Scheduling
Locked · AI interview only
MediumDPAmazon, Microsoft, OracleAutocomplete Top K by Frequency
Locked · AI interview only
MediumTrieGoogle, Amazon, Meta +3Balanced Binary Tree
Locked · AI interview only
EasyTreesAmazon, Google, Meta +2Best Time to Buy and Sell Stock
Locked · AI interview only
EasyArraysAmazon, Google, Microsoft +2Binary Tree Inorder Traversal
Locked · AI interview only
EasyTreesMicrosoft, Amazon, Google +3Binary Tree Postorder Traversal
Locked · AI interview only
EasyTreesMicrosoft, Amazon, Google +2Binary Tree Preorder Traversal
Locked · AI interview only
EasyTreesMicrosoft, Amazon, Google +2Binary Tree Right Side View
Locked · AI interview only
MediumTreesMeta, Amazon, Bloomberg +3Binary Tree Vertical Order Traversal
Locked · AI interview only
MediumTreesMeta, Amazon, Google +3Binomial Coefficient nCr Mod
Locked · AI interview only
EasyDPAmazon, Microsoft, Goldman Sachs +1Book Allocation Minimum Pages
Locked · AI interview only
MediumBinary searchAmazon, Google, Microsoft +2Can Make Arithmetic Progression From Sequence
Locked · AI interview only
EasyArraysAmazon, Google, Microsoft +1Car Pooling
Locked · AI interview only
MediumArraysAmazon, Google, Microsoft +2Check If String Is Transformable With Substring Sort Operations
Locked · AI interview only
HardStringsGoogle, AmazonChoose K Elements With Maximum Sum
Locked · AI interview only
MediumHeapGoogle, Amazon, MicrosoftCircular Array Loop
Locked · AI interview only
MediumArraysAmazon, Microsoft, GoogleClimbing Stairs
Locked · AI interview only
EasyDPAmazon, Google, Apple +2Climbing Stairs Order Does Not Matter
Locked · AI interview only
EasyDPAmazon, Microsoft, AdobeClone Graph
Locked · AI interview only
MediumGraphsMeta, Google, Amazon +2Coin Change
Locked · AI interview only
MediumDPAmazon, Google, Meta +2
Showing 40 of 300
How practice works.
- How does TechInView's AI mock interview work?
- Pick a problem and choose a mode. Practice Mode gives you an editor and test runs on your own. AI Interview Mode adds a voice interviewer who answers your clarifying questions, discusses your approach, follows your code in a shared editor, and scores the round on five dimensions: problem solving, code quality, communication, technical knowledge, and testing.
- What coding interview topics are covered?
- The library has 300 problems (52 easy, 183 medium, 65 hard) covering arrays, strings, trees, graphs, dynamic programming, linked lists, stacks and queues, binary search, heaps, backtracking, sliding window, and tries.
- Is TechInView free to try?
- Yes. A curated set of problems is free to solve in Practice Mode, and every account gets one 5-minute voice interview preview. You do not need a credit card to sign up.