Microsoft
Loops that lean on practical engineering judgment — clean code, testing, and how you handle ambiguity matter as much as finding the optimal algorithm.
Typical loop
- 1Recruiter screen
- 2Technical phone screen
- 3Onsite: three to four coding and design rounds
- 4System design round for senior roles
- 5As-appropriate round with a senior leader
Questions
Callback's practice questions and the LeetCode questions Microsoft has been asking, filtered together.
Asked on LeetCode
1,384 questions · all time
- Construct String With Repeat LimitmediumHash TableStringGreedyHeap (Priority Queue)+1frequency 19.5
- Count Days Without MeetingsmediumArraySortingfrequency 19.5
- Count Elements With Maximum FrequencyeasyArrayHash TableCountingfrequency 19.5
- Count Subarrays With Majority Element ImediumArrayHash TableDivide and ConquerSegment Tree+3frequency 19.5
- Defanging an IP AddresseasyStringfrequency 19.5
- Department Highest SalarymediumDatabasefrequency 19.5
- Design TwittermediumHash TableLinked ListDesignHeap (Priority Queue)frequency 19.5
- Design a Text EditorhardLinked ListStringStackDesign+2frequency 19.5
- Double a Number Represented as a Linked ListmediumLinked ListMathStackfrequency 19.5
- Find Unique Binary StringmediumArrayHash TableStringBacktrackingfrequency 19.5
- Find a Peak Element IImediumArrayBinary SearchMatrixfrequency 19.5
- Find in Mountain ArrayhardArrayBinary SearchInteractiveTernary Searchfrequency 19.5
- Find the Highest AltitudeeasyArrayPrefix Sumfrequency 19.5
- Find the Maximum Achievable NumbereasyMathfrequency 19.5
- Find the Winner of an Array GamemediumArraySimulationfrequency 19.5
- Frog JumphardArrayDynamic Programmingfrequency 19.5
- Fruits Into Baskets IIeasyArrayBinary SearchSegment TreeSimulation+1frequency 19.5
- Height CheckereasyArraySortingCounting SortBubble Sortfrequency 19.5
- How Many Numbers Are Smaller Than the Current NumbereasyArrayHash TableSortingCounting Sortfrequency 19.5
- Investments in 2016mediumDatabasefrequency 19.5
- Island PerimetereasyArrayDepth-First SearchBreadth-First SearchMatrixfrequency 19.5
- K Closest Points to OriginmediumArrayMathDivide and ConquerGeometry+4frequency 19.5
- K-th Symbol in GrammarmediumMathBit ManipulationRecursionfrequency 19.5
- Keys and RoomsmediumDepth-First SearchBreadth-First SearchGraph Theoryfrequency 19.5
- Kth Smallest Product of Two Sorted ArrayshardArrayBinary Searchfrequency 19.5
- Last Stone WeighteasyArrayHeap (Priority Queue)frequency 19.5
- Lexicographical NumbersmediumDepth-First SearchTriefrequency 19.5
- Logger Rate LimitereasyHash TableDesignData Streamfrequency 19.5
- Longest Happy PrefixhardStringRolling HashString MatchingHash Function+2frequency 19.5
- Longest String ChainmediumArrayHash TableTwo PointersString+2frequency 19.5
- Matrix Diagonal SumeasyArrayMatrixfrequency 19.5
- Max Chunks To Make SortedmediumArrayStackGreedySorting+1frequency 19.5
- Max Points on a LinehardArrayHash TableMathGeometry+2frequency 19.5
- Maximum Average Pass RatiomediumArrayGreedyHeap (Priority Queue)frequency 19.5
- Maximum Candies Allocated to K ChildrenmediumArrayBinary Searchfrequency 19.5
- Maximum Difference Between Even and Odd Frequency IeasyHash TableStringCountingfrequency 19.5
- Maximum Difference Between Even and Odd Frequency IIhardStringSliding WindowEnumerationPrefix Sumfrequency 19.5
- Maximum Frequency StackhardHash TableStackDesignOrdered Setfrequency 19.5
- Maximum Manhattan Distance After K ChangesmediumHash TableMathStringCountingfrequency 19.5
- Maximum Matrix SummediumArrayGreedyMatrixfrequency 19.5
- Maximum SwapmediumMathGreedyfrequency 19.5
- Memoizemediumfrequency 19.5
- Minimum Knight MovesmediumBreadth-First SearchHeuristic SearchBidirectional SearchA* Searchfrequency 19.5
- Minimum Moves to Make Array ComplementarymediumArrayHash TablePrefix Sumfrequency 19.5
- Minimum Operations to Make Binary Array Elements Equal to One ImediumArrayBit ManipulationQueueSliding Window+1frequency 19.5
- Minimum Time to Collect All Apples in a TreemediumHash TableTreeDepth-First SearchBreadth-First Search+1frequency 19.5
- Most Stones Removed with Same Row or ColumnmediumHash TableDepth-First SearchUnion-FindGraph Theory+1frequency 19.5
- Network Delay TimemediumDepth-First SearchBreadth-First SearchGraph TheoryHeap (Priority Queue)+2frequency 19.5
- Not Boring MovieseasyDatabasefrequency 19.5
- Number of Distinct IslandsmediumArrayHash TableDepth-First SearchBreadth-First Search+4frequency 19.5