Design a Cloud File Storage System
Design a Drive-like service for durable, chunked file storage, sharing, versions, and multi-device synchronization. Audit a first-letter photo placement plan and its database-cost drivers.
PracticeMicrosoft interview practice
FastPrep has 345 coding questions tagged Microsoft, plus 39 system design and 13 low-level design questions. Filter them by interview stage and open any one to practice it.
Question list
Sorted by how many times each question was reported. Pick a stage to see only its questions.
Showing 345 of 345 Microsoft questions.
| Question | Difficulty | Stage | Reports |
|---|---|---|---|
| Least Recently Used CacheHash TableDesign | Medium | OA · Phone · Onsite | 12 reports · last Oct 2026 |
| Maximum Escape Game ScoreArrayHash Table | Medium | OA | 7 reports · last Nov 2026 |
| Authentication SystemHash TableDesign | Medium | OA | 6 reports · last Nov 2026 |
| Reverse a Singly Linked ListLinked ListRecursion | Easy | Onsite | 6 reports · last Jul 2026 |
| Minimum Cost K-Capable ModelsArrayGreedy | Medium | OA | 5 reports · last Nov 2026 |
| Minimum Non-Adjacent Selection CapabilityArrayBinary Search | Medium | OA | 5 reports · last Oct 2026 |
| Valid ParenthesesStackString | Easy | Onsite | 4 reports · last Nov 2026 |
| Maximize Pipeline Throughput Under a Scaling BudgetBinary SearchGreedy | Medium | OA | 4 reports · last Nov 2026 |
| Maximum Score with Prime JumpsArrayDynamic Programming | Medium | OA | 4 reports · last Oct 2026 |
| Maximum Valid Substring FrequencyStringHash Table | Medium | OA | 4 reports · last Oct 2026 |
| Maximum Reward PointsArrayGreedy | Medium | OA | 4 reports · last Sep 2026 |
| Retain Top K ValuesArraySorting | Easy | Phone · Onsite | 4 reports · last Aug 2026 |
| Implement Queue Using StacksStackQueue | Easy | Onsite | 4 reports · last Jul 2026 |
| Deterministic K-Means AssignmentsArrayMath | Hard | Phone · Onsite | 4 reports · last May 2026 |
| Maximum String OperationsStringGreedy | Medium | OA | 3 reports · last Nov 2026 |
| Longest Substring Without Repeating CharactersStringSliding Window | Medium | Onsite | 3 reports · last Nov 2026 |
| Maximum Interactive Team SizeArraySorting | Medium | OA | 3 reports · last Nov 2026 |
| Capacity to Ship Packages Within DaysArrayBinary Search | Medium | OA · Onsite | 3 reports · last Oct 2026 |
| K Most Recent Unique Request IDsArrayHash Table | Easy | OA | 3 reports · last Oct 2026 |
| 3SumArraySorting | Medium | Phone · Onsite | 3 reports · last Sep 2026 |
| Minimum Fuel Cost Between CitiesGraphShortest Path | Hard | OA | 3 reports · last Aug 2026 |
| Binary Tree Zigzag Level Order TraversalTreeBreadth-First Search | Medium | Onsite | 3 reports · last Aug 2026 |
| 0/1 KnapsackDynamic ProgrammingArray | Medium | OA · Onsite | 3 reports · last Aug 2026 |
| XOR MultiplicationBit ManipulationMath | Medium | OA | 3 reports · last Jul 2026 |
| Majority ElementArrayHash Table | Easy | Onsite | 3 reports · last Jul 2026 |
| Climbing StairsDynamic ProgrammingMath | Easy | Onsite | 3 reports · last Jun 2026 |
| Merge IntervalsIntervalsSorting | Medium | Onsite | 3 reports · last May 2026 |
| Build a Precision-Recall CurveArraySorting | Medium | Onsite | 3 reports · last Nov 2025 |
| Number of IslandsMatrixGraph | Medium | Onsite | 3 reports · last Mar 2025 |
| Most Visited Sprint MarkerArrayPrefix Sum | Medium | OA | 2 reports · last Nov 2026 |
| Minimum Time to Rot All OrangesArrayMatrix | Medium | Onsite | 2 reports · last Nov 2026 |
| Count Digit Replacements with No Equal Adjacent DigitsStringDynamic Programming | Medium | OA | 2 reports · last Oct 2026 |
| Group AnagramsStringArray | Medium | Onsite | 2 reports · last Oct 2026 |
| Prepare NotificationStringGreedy | Easy | OA | 2 reports · last Oct 2026 |
| Shortest Board Length to Cover HolesSortingBinary Search | Medium | OA | 2 reports · last Oct 2026 |
| Greedy and Beam Sentence DecodingHeapGreedy | Hard | Phone · Onsite | 2 reports · last Sep 2026 |
| Shopkeeper Final Price SummaryArrayStack | Medium | OA | 2 reports · last Sep 2026 |
| Minimum Jump CostArrayDynamic Programming | Medium | OA | 2 reports · last Sep 2026 |
| Implement a TrieTrieDesign | Medium | Onsite | 2 reports · last Sep 2026 |
| Maximum Decrypted ScoreArraySliding Window | Medium | OA | 2 reports · last Sep 2026 |
| Minimum Team Size From Every StartArraySliding Window | Medium | OA | 2 reports · last Sep 2026 |
| Arithmetic Expression EvaluatorStringStack | Hard | Phone | 2 reports · last Sep 2026 |
| Infer a Lexicographically Smallest Alien AlphabetStringGraph | Hard | Phone · Onsite | 2 reports · last Aug 2026 |
| Filter Anagrams of a TargetArrayString | Easy | Onsite | 2 reports · last Aug 2026 |
| Palindrome Linked List with RestorationLinked ListTwo Pointers | Medium | Onsite | 2 reports · last Aug 2026 |
| Sorted Subsets of a StringStringBacktracking | Medium | Phone | 2 reports · last Aug 2026 |
| Maximum SubarrayArrayDynamic Programming | Easy | Onsite | 2 reports · last Aug 2026 |
| Neural Network Subnetwork StrengthTreeDepth-First Search | Hard | OA | 2 reports · last Jul 2026 |
| Word Break II: All SentencesStringDynamic Programming | Hard | Phone · Onsite | 2 reports · last Jun 2026 |
| Search in Rotated Sorted ArrayArrayBinary Search | Medium | Onsite | 2 reports · last Jun 2026 |
| Array With Set AllDesignHash Table | Medium | Onsite | 2 reports · last Jun 2026 |
| Min StackStackDesign | Medium | Phone · Onsite | 2 reports · last Apr 2026 |
| All Minimum-Difference PairsArraySorting | Easy | Onsite | 2 reports · last Mar 2026 |
| Battleships in a BoardArrayMatrix | Medium | Onsite | 2 reports · last Feb 2026 |
| Longest Increasing SubsequenceArrayDynamic Programming | Medium | Onsite | 2 reports · last Dec 2025 |
| Isomorphic StringsHash TableString | Easy | Onsite | 2 reports · last Nov 2025 |
| Separate-Chaining Hash TableHash TableDesign | Medium | Onsite | 2 reports · last Sep 2025 |
| Maximum Weighted Sum with Disjoint Adjacent SwapsArrayDynamic Programming | Medium | OA | 2 reports · last Sep 2025 |
| Course Schedule FeasibilityGraphTopological Sort | Medium | Onsite | 2 reports · last Jul 2025 |
| Maximum Number PossibleStringGreedy | Easy | OA | 2 reports · last May 2025 |
| Minimum Swaps Required to Group All Red Balls TogetherArraySliding Window | Medium | OA | 2 reports · last May 2025 |
| Side Largest Square 🟧MathBinary Search | Medium | OA | 2 reports · last Feb 2025 |
| Reorder Routes to Make All Paths Lead to the City ZeroGraphBreadth-First Search | Medium | OA | 2 reports · last Jan 2025 |
| Is Graph Bipartite?GraphBreadth-First Search | Medium | Onsite | 2 reports · last Feb 2022 |
| Compute Population VarianceArrayMath | Medium | Onsite | 2 reports · last Mar 2021 |
| Config Store with Priority OverridesHash TableDesign | Easy | Phone | 1 report · last Nov 2026 |
| Bad Request AlertsArrayQueue | Easy | Onsite | 1 report · last Nov 2026 |
| Minimum Cost to Process Priority TasksRecursionBinary Search | Medium | OA | 1 report · last Nov 2026 |
| Count a User's Actions in an Event LogHash TableString | Easy | Onsite | 1 report · last Nov 2026 |
| Smallest Batch Size Within a Step LimitArrayBinary Search | Medium | Onsite | 1 report · last Nov 2026 |
| Count Subarrays with Equal Even and Odd CountsArrayHash Table | Medium | Onsite | 1 report · last Nov 2026 |
| Count Subarrays with a Perfect-Square ProductArrayHash Table | Medium | OA | 1 report · last Nov 2026 |
| Coin ChangeArrayDynamic Programming | Medium | Onsite | 1 report · last Oct 2026 |
| Daily USD Totals with Effective-Dated Exchange RatesDatabase | Medium | Onsite | 1 report · last Oct 2026 |
| Number Words to Digits in Any LanguageStackString | Medium | Onsite | 1 report · last Oct 2026 |
| Totals from a Tiered Rate TableArrayPrefix Sum | Medium | Onsite | 1 report · last Oct 2026 |
| Corporation Reporting LinesDesignHash Table | Medium | Phone | 1 report · last Oct 2026 |
| Fewest Buses with the Full RouteGraphBreadth-First Search | Hard | Onsite | 1 report · last Oct 2026 |
| Pizza Price CalculatorHash TableArray | Easy | Onsite | 1 report · last Oct 2026 |
| Random Forest Classifier from ScratchTreeRecursion | Hard | Phone | 1 report · last Oct 2026 |
| Find Available Meeting RoomsArrayIntervals | Medium | OA | 1 report · last Oct 2026 |
| Maximum Sum of a K-StarGraphHeap | Medium | OA | 1 report · last Oct 2026 |
| Set Matrix ZeroesArrayMatrix | Medium | Onsite | 1 report · last Oct 2026 |
| Balance a Chemical EquationStringParsing | Hard | OA | 1 report · last Oct 2026 |
| Generate Fixed-Size CombinationsBacktrackingCombinatorics | Medium | Onsite | 1 report · last Oct 2026 |
| Match a Descendant Selector in a DOM TreeTreeDepth-First Search | Medium | Onsite | 1 report · last Oct 2026 |
| Minimum Changes for a Beautiful StringStringDynamic Programming | Medium | OA | 1 report · last Oct 2026 |
| Earliest Time to Schedule a MeetingArrayString | Medium | OA | 1 report · last Oct 2026 |
| Minimum Server Connection CostsArraySorting | Medium | OA | 1 report · last Oct 2026 |
| Copy a Doubly Linked List with a Special PointerLinked ListHash Table | Medium | Onsite | 1 report · last Oct 2026 |
| Maximum Alloy Production Within BudgetArrayBinary Search | Medium | OA | 1 report · last Oct 2026 |
| Count Nondecreasing Digit-Sum ArraysDynamic ProgrammingCombinatorics | Hard | OA | 1 report · last Oct 2026 |
| Minimum Operations to Reduce an Integer to ZeroGreedyBit Manipulation | Medium | OA | 1 report · last Oct 2026 |
| Amount of Time to Infect a TreeGraphBreadth-First Search | Medium | Onsite | 1 report · last Oct 2026 |
| K-Second Message SuppressionArrayHash Table | Easy | Onsite | 1 report · last Oct 2026 |
| Max Consecutive Ones IIIArraySliding Window | Medium | Onsite | 1 report · last Oct 2026 |
| Maximum Subarray Sum Across K ConcatenationsArrayDynamic Programming | Medium | Onsite | 1 report · last Oct 2026 |
| Reconstruct One Sentence From a DictionaryStringDynamic Programming | Medium | Onsite | 1 report · last Oct 2026 |
| Reduce Array Size to At Most HalfArrayGreedy | Medium | Onsite | 1 report · last Oct 2026 |
| Foreground Region SizesMatrixBreadth-First Search | Medium | Onsite | 1 report · last Sep 2026 |
| Top K Frequent ElementsHash TableHeap | Medium | Phone | 1 report · last Sep 2026 |
| Grid Paths with Override PassesDynamic ProgrammingMatrix | Medium | OA | 1 report · last Sep 2026 |
| Weighted LFU CacheHash TableHeap | Hard | OA | 1 report · last Sep 2026 |
| Copy File Bytes with Partial WritesSimulationArray | Easy | Onsite | 1 report · last Sep 2026 |
| Longest Repeating Character ReplacementStringSliding Window | Medium | Onsite | 1 report · last Sep 2026 |
| First Duplicate ValueArrayHash Table | Easy | Onsite | 1 report · last Sep 2026 |
| Keyed Bounded Executor ScheduleHeapQueue | Hard | Onsite | 1 report · last Sep 2026 |
| Convert Hexadecimal to Dotted IPv4MathString | Easy | Onsite | 1 report · last Sep 2026 |
| Parse a Signed Integer in Any BaseMathString | Medium | Onsite | 1 report · last Sep 2026 |
| Reconstruct Digits from Jumbled English WordsHash TableMath | Medium | Onsite | 1 report · last Sep 2026 |
| Stable Unique Column RenamesHash TableString | Medium | Onsite | 1 report · last Sep 2026 |
| Asteroid CollisionArrayStack | Medium | OA | 1 report · last Sep 2026 |
| Minimize Adjacent Squared-Difference Cost with One InsertionArrayMath | Medium | OA | 1 report · last Sep 2026 |
| Validate and Complete Racer PrecedenceGraphTopological Sort | Medium | Onsite | 1 report · last Sep 2026 |
| Word SearchMatrixDepth-First Search | Medium | Onsite | 1 report · last Sep 2026 |
| Count Binary SubstringsStringTwo Pointers | Easy | OA | 1 report · last Sep 2026 |
| Count Numbers with the Same Set-Bit CountBit ManipulationCombinatorics | Medium | OA | 1 report · last Sep 2026 |
| Equalize Arrays with Prefix and Suffix IncrementsArrayGreedy | Medium | OA | 1 report · last Sep 2026 |
| Longest Substring with At Most K Distinct CharactersStringSliding Window | Medium | OA | 1 report · last Sep 2026 |
| Sort Words by LengthStringSorting | Easy | Onsite | 1 report · last Sep 2026 |
| Maximum Non-Overlapping IntervalsIntervalsGreedy | Medium | Onsite | 1 report · last Sep 2026 |
| Employee Hierarchy Cycle and Depth AnalysisGraphDepth-First Search | Medium | Phone | 1 report · last Sep 2026 |
| Most Visited String SectorsArraySimulation | Easy | Phone | 1 report · last Sep 2026 |
| Minimum Length Good SubarrayArrayHash Table | Medium | OA | 1 report · last Aug 2026 |
| Roll the StringStringArray | Medium | OA | 1 report · last Aug 2026 |
| Suffix Maximum Frequency QueriesArrayDynamic Programming | Easy | Phone | 1 report · last Aug 2026 |
| Maximum Stock Profit with At Most Two TransactionsArrayDynamic Programming | Medium | Onsite | 1 report · last Aug 2026 |
| Subtract Forward-Order Linked-List NumbersLinked ListStack | Medium | Onsite | 1 report · last Aug 2026 |
| Generate a Spiral MatrixMatrixSimulation | Medium | Onsite | 1 report · last Aug 2026 |
| Spiral Matrix TraversalMatrixSimulation | Medium | Onsite | 1 report · last Aug 2026 |
| Lowest Common Ancestor in Ordered and Unordered TreesTreeDepth-First Search | Medium | Phone | 1 report · last Aug 2026 |
| String to Integer (atoi)StringParsing | Medium | Onsite | 1 report · last Aug 2026 |
| Enumerate Valid Clock TimesArrayBacktracking | Easy | OA | 1 report · last Jul 2026 |
| Minimum Window SubstringStringSliding Window | Hard | Onsite | 1 report · last Jul 2026 |
| Binary String Swap TimeStringSimulation | Medium | OA | 1 report · last Jul 2026 |
| Minimum Effort Task ScheduleArrayDynamic Programming | Hard | OA | 1 report · last Jul 2026 |
| Trapping Rain WaterArrayTwo Pointers | Hard | Onsite | 1 report · last Jul 2026 |
| Maximum Pipeline ThroughputBinary SearchGreedy | Medium | OA | 1 report · last Jul 2026 |
| Maximum Strong Team SubarrayArrayDynamic Programming | Medium | OA | 1 report · last Jul 2026 |
| Alphabetically Smallest PalindromeStringGreedy | Medium | OA | 1 report · last Jul 2026 |
| CPU Scheduling SimulatorSimulationQueue | Medium | Onsite | 1 report · last Jul 2026 |
| Count Collisions with Ball XArraySimulation | Easy | Phone | 1 report · last Jul 2026 |
| Maximum Strength of Every NeuronTreeGraph | Hard | OA | 1 report · last Jul 2026 |
| Remove Linked List ElementsLinked ListRecursion | Easy | Onsite | 1 report · last Jul 2026 |
| Two SumArrayHash Table | Easy | Onsite | 1 report · last Jul 2026 |
| Escape Game - Maximize ScoreArrayHash Table | Medium | OA | 1 report · last Jul 2026 |
| Palindrome NumberMath | Easy | Onsite | 1 report · last Jul 2026 |
| Largest Combination With Bitwise AND Greater Than ZeroArrayBit Manipulation | Medium | Onsite | 1 report · last Jun 2026 |
| Binary Tree Level Order TraversalTreeBreadth-First Search | Medium | Onsite | 1 report · last Jun 2026 |
| Minimum Starting Coins to Buy All ProductsArrayGreedy | Hard | OA | 1 report · last Jun 2026 |
| Minimum Absolute DifferenceArraySorting | Easy | Onsite | 1 report · last May 2026 |
| Apply a Sequence of Array RotationsArrayMath | Medium | Onsite | 1 report · last May 2026 |
| Rank Open BusinessesArraySorting | Easy | Phone | 1 report · last May 2026 |
| Continuous Subarray Sum MultipleArrayHash Table | Medium | Onsite | 1 report · last May 2026 |
| Longest Valid ParenthesesStringStack | Hard | Onsite | 1 report · last May 2026 |
| In-Memory SQL with CSV InitializationDesignParsing | Hard | Onsite | 1 report · last May 2026 |
| Order Records by Matching Start and EndHash TableLinked List | Easy | Onsite | 1 report · last May 2026 |
| Find All Anagrams in a StringStringSliding Window | Medium | Onsite | 1 report · last Apr 2026 |
| Beam Search and Nucleus DecodingArraySorting | Hard | Onsite | 1 report · last Apr 2026 |
| Max Points on a LineGeometryHash Table | Hard | Onsite | 1 report · last Apr 2026 |
| Self-Attention and Causal Masked Self-AttentionMatrixSimulation | Hard | Onsite | 1 report · last Apr 2026 |
| Maximum Data Transfer TimeTreeDepth-First Search | Medium | OA | 1 report · last Mar 2026 |
| Visible Profiles CountGraphDepth-First Search | Medium | OA | 1 report · last Mar 2026 |
| Inorder Successor in a Binary TreeTree | Hard | Onsite | 1 report · last Mar 2026 |
| 100 DoorsMathSimulation | Easy | Onsite | 1 report · last Mar 2026 |
| Rectangle OverlapMathGeometry | Easy | Onsite | 1 report · last Mar 2026 |
| Excel Training Data and Model Response AuditArrayMatrix | Easy | Phone | 1 report · last Mar 2026 |
| Redundant ConnectionGraphUnion Find | Medium | Onsite | 1 report · last Mar 2026 |
| Fill a Time Window with SongsArrayDynamic Programming | Medium | OA | 1 report · last Mar 2026 |
| Recover Corrupted Master Page | Unrated | Onsite | 1 report · last Feb 2026 |
| Balanced Permutation SubarraysArray | Medium | OA | 1 report · last Feb 2026 |
| Final Price DiscountArrayStack | Easy | OA | 1 report · last Feb 2026 |
| Dog Retrieval Precision and RecallArrayHash Table | Easy | Onsite | 1 report · last Feb 2026 |
| Generate ParenthesesStringBacktracking | Medium | Onsite | 1 report · last Feb 2026 |
| Unique Digit Permutations Without Leading ZeroStringMath | Medium | Onsite | 1 report · last Feb 2026 |
| Organization Chart by LevelBreadth-First SearchTree | Easy | Onsite | 1 report · last Feb 2026 |
| Resumable Batched Data LoaderArrayHash Table | Medium | Onsite | 1 report · last Feb 2026 |
| Streaming Inference Stop Sequence DetectionStringTrie | Hard | Onsite | 1 report · last Feb 2026 |
| Unique Difference PatternArrayString | Easy | OA | 1 report · last Jan 2026 |
| House RobberArrayDynamic Programming | Medium | OA | 1 report · last Jan 2026 |
| Score Difference When Even Picks Reverse the ListArrayTwo Pointers | Easy | OA | 1 report · last Jan 2026 |
| Add BinaryStringMath | Easy | Onsite | 1 report · last Jan 2026 |
| Multiply Without the Multiplication OperatorMathBit Manipulation | Easy | Onsite | 1 report · last Jan 2026 |
| Valid SudokuArrayHash Table | Medium | Onsite | 1 report · last Jan 2026 |
| Verify Postorder Sequence of a BSTTreeStack | Medium | Onsite | 1 report · last Jan 2026 |
| Mean, Median and Mode of a StreamDesignHeap | Medium | Onsite | 1 report · last Jan 2026 |
| User and Group Membership IndexHash TableDesign | Medium | Onsite | 1 report · last Jan 2026 |
| Integer Square RootMathBinary Search | Easy | Onsite | 1 report · last Dec 2025 |
| Reverse Nodes in k-GroupLinked ListRecursion | Hard | Onsite | 1 report · last Dec 2025 |
| Validate Binary Search TreeTreeDepth-First Search | Medium | Onsite | 1 report · last Dec 2025 |
| Longest Profit DurationArrayStack | Medium | Onsite | 1 report · last Nov 2025 |
| Find Peak ElementArrayBinary Search | Medium | Onsite | 1 report · last Nov 2025 |
| Memory AllocatorDesignArray | Medium | Onsite | 1 report · last Nov 2025 |
| Diagonal Matrix IteratorArrayMatrix | Medium | Onsite | 1 report · last Nov 2025 |
| Minimum Path SumArrayDynamic Programming | Medium | Onsite | 1 report · last Nov 2025 |
| Gas StationArrayGreedy | Medium | Onsite | 1 report · last Oct 2025 |
| Open the LockBreadth-First SearchHash Table | Medium | Onsite | 1 report · last Oct 2025 |
| Minimum Size Subarray SumArraySliding Window | Medium | OA | 1 report · last Oct 2025 |
| Distinct Number Line Moves | Unrated | OA | 1 report · last Oct 2025 |
| Dijkstra's Shortest PathsGraphShortest Path | Medium | Onsite | 1 report · last Oct 2025 |
| Longest Palindrome from Two WordsDynamic ProgrammingString | Hard | Onsite | 1 report · last Oct 2025 |
| Union of Two ArraysArrayHash Table | Easy | Onsite | 1 report · last Sep 2025 |
| Contains DuplicateArrayHash Table | Easy | Onsite | 1 report · last Sep 2025 |
| Merge Two Descending Linked ListsLinked ListTwo Pointers | Easy | Onsite | 1 report · last Sep 2025 |
| Sort a Linked List in Descending OrderLinked ListSorting | Medium | Onsite | 1 report · last Sep 2025 |
| Cut the SticksArraySorting | Easy | OA | 1 report · last Sep 2025 |
| Quick SortArraySorting | Medium | Onsite | 1 report · last Sep 2025 |
| Remove Redundant Task DependenciesGraphTopological Sort | Medium | Onsite | 1 report · last Sep 2025 |
| Longest Palindromic Substring LengthStringDynamic Programming | Medium | Onsite | 1 report · last Aug 2025 |
| Combination Sum With Unlimited ReuseArrayBacktracking | Medium | Onsite | 1 report · last Aug 2025 |
| Most Frequent CharacterStringHash Table | Easy | OA | 1 report · last Aug 2025 |
| Rotate a Square Matrix 90 DegreesArrayMatrix | Medium | Onsite | 1 report · last Aug 2025 |
| Make Pixel Columns Strictly IncreasingArrayMatrix | Easy | OA | 1 report · last Aug 2025 |
| Smallest Prime at Least NMath | Easy | Onsite | 1 report · last Aug 2025 |
| Minimum Round Trip LengthsGraphShortest Path | Medium | OA | 1 report · last Aug 2025 |
| Programmer StringsStringSliding Window | Medium | OA | 1 report · last Aug 2025 |
| Merge Two Sorted ListsLinked ListTwo Pointers | Easy | Onsite | 1 report · last Aug 2025 |
| Find the Intersection Node of Two Linked ListsLinked ListTwo Pointers | Easy | Onsite | 1 report · last Jul 2025 |
| Generate All String PermutationsStringBacktracking | Medium | Onsite | 1 report · last Jul 2025 |
| Digital Root of a Numeric StringMathString | Easy | Onsite | 1 report · last Jul 2025 |
| Stack with Middle OperationsStackLinked List | Medium | Onsite | 1 report · last Jul 2025 |
| Get Minimum TimeDynamic ProgrammingMatrix | Medium | OA | 1 report · last Jun 2025 |
| Count Subarrays with Bitwise OR PresentArrayBit Manipulation | Hard | OA | 1 report · last Jun 2025 |
| Get Max Or SumArrayBit Manipulation | Medium | OA | 1 report · last Jun 2025 |
| Check That Every Node Equals Its Descendant SumTreeDepth-First Search | Easy | Onsite | 1 report · last May 2025 |
| Word LadderStringHash Table | Hard | Onsite | 1 report · last May 2025 |
| Valid AnagramStringHash Table | Easy | Onsite | 1 report · last May 2025 |
| Valid Mixed Case LettersStringHash Table | Easy | OA | 1 report · last May 2025 |
| Shortest BridgeMatrixDepth-First Search | Medium | Onsite | 1 report · last May 2025 |
| Equalize Server LatencyTreeGreedy | Medium | OA | 1 report · last Apr 2025 |
| Convert a Float to a StringStringMath | Medium | Onsite | 1 report · last Apr 2025 |
| Minimum Cars to RemoveArraySliding Window | Hard | OA | 1 report · last Apr 2025 |
| Balance the Game BoardStringSimulation | Medium | OA | 1 report · last Mar 2025 |
| Maximize Types After Freeing ShelvesSliding WindowHash Table | Medium | OA | 1 report · last Mar 2025 |
| Find Upstream Tasks of a Failed TaskGraphBreadth-First Search | Easy | Onsite | 1 report · last Mar 2025 |
| Wildcard Pattern MatchingStringDynamic Programming | Medium | Onsite | 1 report · last Mar 2025 |
| Count Characters Before UppercaseStringHash Table | Easy | OA | 1 report · last Feb 2025 |
| Maximize Number of Produced CarsArrayBinary Search | Medium | OA | 1 report · last Feb 2025 |
| Minimum Tokens RemainingMathBit Manipulation | Easy | OA | 1 report · last Feb 2025 |
| Implement a Self-Balancing BST (AVL Tree)TreeDesign | Hard | Onsite | 1 report · last Jan 2025 |
| Compressed Representation SizeStringDynamic Programming | Hard | OA | 1 report · last Jan 2025 |
| Serialize and Deserialize a Binary TreeTreeDepth-First Search | Hard | Onsite | 1 report · last Jan 2025 |
| Metro Fare With a Daily CapArraySimulation | Easy | OA | 1 report · last Jan 2025 |
| Maximize Sum of Two Non-Overlapping FragmentsArrayPrefix Sum | Hard | OA | 1 report · last Dec 2024 |
| Maximum Sum with TilesDynamic ProgrammingArray | Medium | OA | 1 report · last Dec 2024 |
| Island Perimeter (Round 3, LC 463 :)MatrixSimulation | Easy | Onsite | 1 report · last Dec 2024 |
| Word Pattern II (Round 1, LC 291 :)StringBacktracking | Medium | Onsite | 1 report · last Dec 2024 |
| Find Max Sum with Same First and Last DigitArrayHash Table | Easy | OA | 1 report · last Dec 2024 |
| Minimum Replacements Required to Make a Matrix BalancedMatrixGreedy | Hard | OA | 1 report · last Dec 2024 |
| Three Partition ArrayArrayTwo Pointers | Easy | Phone | 1 report · last Dec 2024 |
| Reverse an IntegerMath | Easy | OA | 1 report · last Nov 2024 |
| Maximum Equal Deletion SumDynamic ProgrammingArray | Hard | OA | 1 report · last Nov 2024 |
| Maximize Number of Produced CarsArrayBinary Search | Medium | OA | 1 report · last Nov 2024 |
| Sparse Valid One-Dimensional ConvolutionArraySimulation | Medium | Onsite | 1 report · last Oct 2024 |
| Calculate Leftover StacksArraySimulation | Easy | OA | 1 report · last Oct 2024 |
| Find Minimum CostGreedyMath | Medium | OA | 1 report · last Oct 2024 |
| Find Fair IndexesArrayPrefix Sum | Easy | OA | 1 report · last Oct 2024 |
| Median of Two Sorted ArraysArrayBinary Search | Hard | Onsite | 1 report · last Oct 2024 |
| Great SubsequencesDynamic ProgrammingMath | Hard | OA | 1 report · last Sep 2024 |
| To Good ArraysDynamic ProgrammingCombinatorics | Hard | OA | 1 report · last Sep 2024 |
| XOR ColoringBit ManipulationMath | Hard | OA | 1 report · last Sep 2024 |
| Check Path PresenceGraphHash Table | Easy | OA | 1 report · last Sep 2024 |
| Find Suitable LocationsMatrixBreadth-First Search | Medium | OA | 1 report · last Sep 2024 |
| Maximum Number of Moves with Same ResultArrayDynamic Programming | Medium | OA | 1 report · last Sep 2024 |
| Minimum Domino RemovalsDynamic ProgrammingArray | Medium | OA | 1 report · last Aug 2024 |
| Shortest Compressed String After RemovalStringDynamic Programming | Hard | OA | 1 report · last Aug 2024 |
| Product of XOR of All Good PairsArrayBit Manipulation | Medium | OA | 1 report · last Aug 2024 |
| Minimize Difference Between Two NumbersGreedyString | Hard | OA | 1 report · last Aug 2024 |
| Optimal Path in a GridDynamic ProgrammingMatrix | Medium | OA | 1 report · last Aug 2024 |
| Longest Path With Different Adjacent CharactersTreeDepth-First Search | Medium | OA | 1 report · last Jul 2024 |
| Get Alphabetically Smallest StringStringGreedy | Easy | OA | 1 report · last Jun 2024 |
| Total Waiting Time for Handmade ItemsArraySimulation | Medium | OA | 1 report · last Jun 2024 |
| Maximum CellsMatrixGreedy | Hard | OA | 1 report · last Jun 2024 |
| The Longest SpikeGreedySorting | Medium | OA | 1 report · last May 2024 |
| Find Min Num MovesMatrixGreedy | Medium | OA | 1 report · last May 2024 |
| Assign ValuesGraphGreedy | Medium | OA | 1 report · last May 2024 |
| Construct Maximum Balanced CircleSortingGreedy | Hard | OA | 1 report · last May 2024 |
| Frog Game 🐸ArrayTwo Pointers | Medium | OA | 1 report · last Apr 2024 |
| Minimum Substrings Without Repeating CharactersStringGreedy | Easy | OA | 1 report · last Apr 2024 |
| Sort Tuples by Value and Then KeySortingArray | Easy | Phone | 1 report · last Apr 2024 |
| Target-Sum Pair with Two PointersArraySorting | Easy | Phone | 1 report · last Apr 2024 |
| Str with Longest LenString | Medium | OA | 1 report · last Mar 2024 |
| Cleaning RobotMatrixSimulation | Medium | OA | 1 report · last Mar 2024 |
| Maximum Total Number of Orders FulfilledArraySorting | Easy | OA | 1 report · last Mar 2024 |
| The Crazy RulerTreeDepth-First Search | Medium | OA | 1 report · last Mar 2024 |
| Maximizing Difference in Array Elements with Moves 🐹SortingGreedy | Hard | OA | 1 report · last Feb 2024 |
| Reverse Word Order In PlaceArrayString | Medium | Phone | 1 report · last Jan 2024 |
| Count Similar Substrings (Microsoft India) 🐱StringSliding Window | Medium | OA | 1 report · last Jan 2024 |
| Find Array Uniqueness Median 🐈ArrayBinary Search | Hard | OA | 1 report · last Jan 2024 |
| Binary Tree Right Side ViewBreadth-First SearchTree | Medium | Onsite | 1 report · last Oct 2023 |
| Bayesian Posterior From Error RatesMathSimulation | Medium | Phone | 1 report · last Dec 2022 |
| Estimate Pi from Uniform SamplesArrayMath | Easy | Onsite | 1 report · last Oct 2022 |
| Nearest-Rank Percentile Without SortingArraySorting | Medium | Onsite | 1 report · last Oct 2022 |
| Running MediansArrayHeap | Hard | Onsite | 1 report · last Oct 2022 |
| Uniform Integer from Biased-Coin FlipsMathSimulation | Hard | Onsite | 1 report · last Oct 2022 |
| Count Set Bits with a Byte Lookup TableArrayBit Manipulation | Medium | Onsite | 1 report · last Oct 2022 |
| Wrap Text at 80 CharactersStringGreedy | Medium | Onsite | 1 report · last Oct 2022 |
| Gradient Descent for Linear RegressionArrayMath | Medium | Phone | 1 report · last Sep 2022 |
| Sum of Distinct Prime DivisorsMath | Medium | Onsite | 1 report · last Mar 2022 |
| Detect a Linked-List CycleLinked ListTwo Pointers | Medium | Onsite | 1 report · last Feb 2022 |
| Generate Character N-Grams from a URLStringSliding Window | Easy | Phone | 1 report · last Feb 2022 |
| Parse a Signed 32-Bit Integer with Overflow DetectionStringMath | Medium | Onsite | 1 report · last Feb 2022 |
| Rotate ArrayArrayTwo Pointers | Medium | Onsite | 1 report · last Feb 2022 |
| Autocomplete Words by PrefixArrayString | Easy | Onsite | 1 report · last Nov 2021 |
| Extra Coin Win ProbabilityMathCombinatorics | Easy | Phone | 1 report · last Nov 2021 |
| Nearest Vocabulary WordStringDynamic Programming | Medium | Onsite | 1 report · last Nov 2021 |
| Reservoir Sampling with Supplied Random DrawsArraySimulation | Medium | Onsite | 1 report · last Nov 2021 |
| Selected Tree Nodes at the Same Level and HeightTreeDepth-First Search | Medium | Onsite | 1 report · last Nov 2021 |
| Find Duplicate Files by ContentHash TableSorting | Medium | Onsite | 1 report · last Nov 2021 |
| Two-Player Gambler's Ruin Probability and SimulationMathDynamic Programming | Hard | Onsite | 1 report · last Nov 2021 |
| Unique Unordered Dice OutcomesBacktrackingDynamic Programming | Medium | Onsite | 1 report · last Oct 2021 |
| New-User Devices That Opened an AppDatabase | Easy | Onsite | 1 report · last Oct 2021 |
| Count Isolated IslandsMatrixDepth-First Search | Medium | Phone | 1 report · last Oct 2021 |
| Monotonic-Run Shuffle ScoreArraySimulation | Easy | Onsite | 1 report · last Oct 2021 |
| Check If Two String Arrays Are EquivalentArrayString | Easy | Onsite | 1 report · last Sep 2021 |
| Maximum Sum Increasing SubsequenceArrayDynamic Programming | Medium | Onsite | 1 report · last Sep 2021 |
| Observed-User Percentage by AppDatabase | Medium | Phone | 1 report · last Sep 2021 |
| All Unique Two-Sum PairsArrayTwo Pointers | Medium | Onsite | 1 report · last Mar 2021 |
| Find All Primes Less Than NMathArray | Medium | Onsite | 1 report · last Mar 2021 |
| Even Values at Even IndicesArray | Easy | Phone | 1 report · last Feb 2021 |
| Cascade Deletion of Target-Valued LeavesTreeDepth-First Search | Medium | Phone | 1 report · last Feb 2021 |
| Bold a Visible HTML SubstringStringParsing | Medium | Onsite | 1 report · last Dec 2020 |
| Convert a BST to a Doubly Linked ListTreeDepth-First Search | Medium | Onsite | 1 report · last Dec 2020 |
| Factorial Trailing ZeroesMath | Medium | Onsite | 1 report · last Dec 2020 |
| Consecutive Number RangesArraySorting | Medium | Phone | 1 report · last Dec 2020 |
| First Missing PositiveArrayHash Table | Hard | Phone | 1 report · last Nov 2020 |
| Duplicate ZerosArrayTwo Pointers | Easy | Onsite | 1 report · last Nov 2020 |
| Italicize Matching Word RegionsStringArray | Medium | Onsite | 1 report · last Sep 2020 |
| Longest Shared Free Time With One ChangeArraySliding Window | Medium | Onsite | 1 report · last Sep 2020 |
| Categorical Sampling with Recorded DrawsBinary SearchPrefix Sum | Medium | Phone | 1 report · last Jun 2020 |
| Fibonacci NumberMathDynamic Programming | Medium | Onsite | 1 report · last Apr 2020 |
| Softmax Cross-Entropy LossArrayMath | Medium | Onsite | 1 report · last Feb 2020 |
| Top K Query SuggestionsStringSorting | Medium | Phone | 1 report · last Feb 2020 |
| Print Vertical Asterisk BarsArrayString | Easy | Onsite | 1 report · last Jan 2020 |
| Word Search with Eight-Direction AdjacencyArrayMatrix | Medium | Onsite | 1 report · last Jan 2020 |
| Best Time to Buy and Sell StockArrayDynamic Programming | Easy | Onsite | Not yet reported |
| Exclusive Time of FunctionsArrayStack | Medium | Onsite | Not yet reported |
| Find Pivot IndexArrayPrefix Sum | Easy | Onsite | Not yet reported |
| Kth Largest Element in an ArrayArrayHeap | Medium | Onsite | Not yet reported |
| Longest Common SubsequenceStringDynamic Programming | Medium | Onsite | Not yet reported |
| Next Larger Value in a BSTTreeBinary Search | Medium | Onsite | Not yet reported |
| Permutation in StringStringSliding Window | Medium | Onsite | Not yet reported |
| Shuffle With Given Random DrawsArrayMath | Medium | Onsite | Not yet reported |
| Split a String by a DelimiterStringParsing | Easy | Onsite | Not yet reported |
| Text Editor OperationsStringStack | Medium | OA | Not yet reported |
At a glance
FastPrep has 345 Microsoft coding interview questions: 127 questions from the online assessment (OA), 37 questions from phone screens and 192 questions from onsite rounds. A question can be reported in more than one stage. Most are medium (207 medium, 86 easy and 50 hard). The most common topics are Array, String, Hash Table, Math and Dynamic Programming. The latest report is from Nov 2026.
127 questions · 80 medium, 23 easy and 23 hard
Topics: Array, Greedy and Dynamic Programming
Latest report: Nov 2026
37 questions · 17 medium, 13 easy and 7 hard
Topics: Array, Simulation and Sorting
Latest report: Nov 2026
192 questions · 116 medium, 51 easy and 24 hard
Topics: Array, String and Hash Table
Latest report: Nov 2026
By stage and level
01 · Preparation plan
The Microsoft catalog is broad enough to reward deliberate rotation. Start with a parser, move to a dependency problem, and then reason about state over time. Use the separate design collection to extend those implementation choices into service boundaries; do not treat the largest stage group as a prediction of your interview. This is a suggested practice order, not Microsoft's interview process. Your invitation and recruiter come first.
Use the expression evaluator to separate token recognition from operator precedence. A clear grammar makes nested input easier to reason about than a collection of special cases.
The employee hierarchy exercise is useful for distinguishing a valid tree from malformed reporting relationships. Explain why cycle detection must happen before computing a reliable depth.
Treat the authentication-system exercise as a contract for issuing, renewing, and expiring state. After implementation, use the public service-design exercises to discuss where that state belongs.
02 · Design and project questions
Beyond coding questions, FastPrep has 39 system design and 13 low-level design questions tagged Microsoft.
Design a Drive-like service for durable, chunked file storage, sharing, versions, and multi-device synchronization. Audit a first-letter photo placement plan and its database-cost drivers.
PracticeDesign event ingestion, candidate retrieval, ranking, and serving for a bounded personalized user-item catalog.
PracticeDesign an authoritative inventory service that supports safe point adjustments and large asynchronous file-based updates.
PracticeDesign a reliable multi-channel notification platform for a high-cardinality internal producer fleet, with durable event handoff, fair admission, provider isolation, and recoverable poison messages.
PracticeDesign a permission-aware RAG service that answers questions over a large document vault with verifiable citations.
PracticeMove a cart through checkout and order stages while preventing concurrent inventory oversell.
PracticeModel order placement with all-or-nothing stock reservation, payment outcomes, and a guarded order state machine.
PracticeDesign the frontend for an internal app where employees check their own financial records: an at-a-glance dashboard and a long, searchable history table that stays fast, honest about partial failures, and fully accessible.
PracticeLearn query-to-link relevance from historical clicks while separating weak feedback, candidate coverage and safe online ranking.
PracticeDesign a multi-tenant backend that ingests versioned documents and serves low-latency text search with filters, stable pagination, and safe index rebuilds.
PracticeAccept high-volume log streams, durably buffer them, make recent and historical data queryable, and tail newly arriving records to authorized readers.
PracticeMatch two players and execute authoritative turn-based games through retry-safe APIs across multiple regions.
PracticeDesign a single-retailer shopping API whose login, session, cart, and order boundaries remain secure and retry-safe at scale.
PracticeDesign company-managed product pages with trackable share links, anonymous milestone rewards, and trustworthy engagement analytics.
PracticeModel infrastructure assets and typed relationships, then validate and construct traversable attack paths.
PracticeIngest HR snapshots, train an imbalance-aware attrition model, and deliver auditable explanations to authorized reviewers.
PracticeMonitor a geographically distributed lab-machine fleet with timely health state, alerts, history, and partition-aware recovery.
PracticeModel an in-memory hierarchical file system with explicit path, entry, listing, and concurrency contracts.
PracticeModel elevator cars, hall and cabin requests, dispatch assignment, movement state, and safe fault handling.
PracticeCoordinate local desktop notifications from multiple applications with durable intent, user policy, bounded delivery, and restart-safe state.
PracticeDesign a location search service that returns nearby restaurants in stable distance order.
PracticeDesign a voice receptionist that conducts bounded conversations and hands calls to people or workflows.
PracticeDesign a globally available service for reliable one-to-one internet voice calls.
PracticeShard very large input-embedding and language-model output matrices while controlling memory, communication, skew, and sampling cost.
PracticeModel idempotent vehicle entry and exit events, one open journey per vehicle, deterministic toll calculation, and a path to partitioned durable processing.
PracticeModel bank accounts and implement safe in-memory transfers, then add an account kind without rewriting the core.
PracticeDesign a high-concurrency service that connects a support ticket to related user tickets and the affected system's historical status.
PracticeDesign a large-marketplace search service that filters by price and taxonomy, serves stable ranked pages, and safely incorporates versioned catalog changes.
PracticeIssue, deliver, and verify short-lived one-time passwords while isolating tenant policy, abuse, and data.
PracticeContinuously crawl an allowed web corpus and build a fresh, deduplicated inverted index for keyword search.
PracticeDesign a partitioned cache with concurrent access, per-entry expiration, and approximate local recency eviction.
PracticeRecommend timely local sports coverage with retrieval-grounded summaries, safe fallbacks, and measurable model cost and quality.
PracticeDesign a desktop notification center with ordering, dismissal, and per-application state.
PracticeDesign and implement a library circulation system with titles, physical copies, members, loans, holds, extensible policies, and atomic checkout and return behavior.
PracticeDesign a multi-region multiplayer game that matches players and runs low-latency authoritative sessions.
PracticeModel a one-row parking lot where parking, parking in a requested spot, leaving and finding a car all take constant time.
PracticeImprove an assistant's factual and abstention consistency across equivalent prompts with reviewed SFT data, reward design, and independent evaluation.
PracticeModel a car rental flow whose pricing rules, car states and notifications can change without rewriting the booking code.
PracticeDesign the data, temporal representation, joint training and independent evaluation needed to build a first video-language question-answering model.
PracticeModel a two-player tic-tac-toe game on an n x n board: turns, moves, refused moves, wins and draws.
PracticeInfer a safe, calibrated task intent from changing partial input without confusing intent with text completion.
PracticeModel a small stock exchange: limit orders, price-time matching, partial fills, held cash and shares, and cancellation.
PracticeDesign an online ranker and its model lifecycle for caller-supplied candidates.
PracticeTurn an analyst's natural-language question into a grounded, authorized Kusto query with a safe preview path.
PracticeImprove the latency and unit cost of an existing streaming LLM service while protecting answer quality and safe rollout.
PracticeLet creators upload AR camera lens projects, build them into small phone-ready packages in the background, publish them, and let camera users find and download them quickly.
PracticeAutomatically compare reproducible tabular classification pipelines, select a model, and enforce a finite search budget despite retries and worker failures.
PracticeClassify websites from domain and page signals while measuring crowd-label quality and protecting minority classes.
PracticeRetrieve and rank relevant text and image ads for a query while learning safely from sparse, biased feedback.
PracticeBuild a bounded in-memory cache that preserves exact least-recently-used eviction when several threads share it.
PracticeBuild, evaluate, and release an object-detection model for cars, bicycles, and trucks under severe scenario and class imbalance.
PracticePredict useful next spreadsheet commands from an ordered session history without leaking future actions or exposing private workbook content.
Practice03 · About these questions
Each question on this page is tagged Microsoft in FastPrep's problem bank. The report count and month show how often and how recently it was reported from Microsoft interviews.
Past reports help you choose what to practice first. They can't tell you which questions, format or platform your own interview will use.
04 · FAQ
For hiring news and timelines, see the Microsoft hiring insights page.
The 345 Microsoft coding questions on FastPrep come from the online assessment (127 questions), phone screens (37 questions) and onsite rounds (192 questions). Some questions were reported in more than one stage. Stages differ by role, level and date, so check your invitation for your own process.
127 of the 345 Microsoft coding questions on FastPrep come from the online assessment. By difficulty: 80 medium, 23 easy and 23 hard. Common OA topics: Array, Greedy and Dynamic Programming. The latest OA report is from Nov 2026.
Most Microsoft coding questions on FastPrep are medium. By difficulty, the 343 rated questions are 207 medium, 86 easy and 50 hard.
Across 345 Microsoft coding questions, the most common topics are Array (147 questions), String (84 questions), Hash Table (65 questions), Math (58 questions) and Dynamic Programming (50 questions).
The most reported questions are “Least Recently Used Cache” (12 reports), “Maximum Escape Game Score” (7 reports) and “Authentication System” (6 reports).
No. The available practice spans timed coding, explanation-heavy problems, and design exercises. Use assessment-labeled records for implementation rehearsal, then switch to dependencies and stateful APIs when your role calls for discussion. This is a software-engineering study path, not a guide to every Microsoft role or a fixed sequence of rounds.
No. FastPrep is an independent interview prep site and is not affiliated with Microsoft. These are practice questions from FastPrep's problem bank, not official, private or leaked Microsoft questions.
Each question's stage comes from the reports behind it. A question can be reported from more than one stage, and the process can change by role, level, location and year, so treat the stage as a guide, not a promise.
The stage named in your invitation or recruiter message. If you don't know the stage yet, start with the stage that has the most questions, then practice explaining and testing your code out loud.
No. Report counts, stages and dates show what came up before and help you choose what to practice first. They can't predict the questions, order, timing or platform of your own interview.
Next step
Start with the stage named in your invitation. Past reports show what came up before, not what you will be asked.
Back to the question list