← Microsoft roles

Interview question tracker

Microsoft Coding Interview Questions — Last 3 months

Practice 239 coding questions from Microsoft company-tagged LeetCode lists in the source’s last 3 months reporting window. Explore reported interview questions and track your progress.

Company-wide data from Fahad7177-jeh/leetcode-company-wise-questions; see its AGPL-3.0 license. All-time questions also use dataengineervishal/leetcode-companywise-questions (MIT license).

Reporting periods reflect source data, not verified interview dates. Questions can recur; inclusion does not guarantee they will appear in your interview.

Updated weekly · Latest source check: ⓘLatest successful check of the sources used by this company. A check does not necessarily mean the questions changed.

One question at a time.

Top questions 239

DoneQuestionLeetCode
Two SumSolve
Add Two NumbersSolve
Best Time to Buy and Sell StockSolve
Group AnagramsSolve
Longest Palindromic SubstringSolve
Longest Substring Without Repeating CharactersSolve
LRU CacheSolve
Median of Two Sorted ArraysSolve
Remove Duplicates from Sorted ArraySolve
Roman to IntegerSolve
Subarray Sum Equals KSolve
Trapping Rain WaterSolve
3SumSolve
Battleships in a BoardSolve
Container With Most WaterSolve
Count the Number of Infection SequencesSolve
Daily TemperaturesSolve
Design Authentication ManagerSolve
Find Minimum in Rotated Sorted ArraySolve
Find Peak ElementSolve
Jump Game IISolve
Longest Common PrefixSolve
Majority ElementSolve
Maximum SubarraySolve
Meeting Rooms IISolve
Merge IntervalsSolve
Minimum Difficulty of a Job ScheduleSolve
Minimum Operations to Make Array Equal to TargetSolve
Minimum Operations to Reduce an Integer to 0Solve
Next PermutationSolve
Number of IslandsSolve
Palindrome NumberSolve
Reverse IntegerSolve
Reverse Nodes in k-GroupSolve
Rising TemperatureSolve
Rotate ImageSolve
Search in Rotated Sorted ArraySolve
Serialize and Deserialize Binary TreeSolve
Spiral MatrixSolve
Valid ParenthesesSolve
Average Time of Process per MachineSolve
Calculate Money in Leetcode BankSolve
Climbing StairsSolve
Coin ChangeSolve
Contains DuplicateSolve
Course Schedule IISolve
Decode StringSolve
Find Median from Data StreamSolve
Find the Duplicate NumberSolve
First Missing PositiveSolve
First Unique Character in a StringSolve
Generate ParenthesesSolve
Largest Rectangle in HistogramSolve
Linked List CycleSolve
Longest Repeating Character ReplacementSolve
Lowest Common Ancestor of a Binary TreeSolve
Maximum Product SubarraySolve
Merge k Sorted ListsSolve
Merge Sorted ArraySolve
Merge Two Sorted ListsSolve
Minimum Edge Reversals So Every Node Is ReachableSolve
Minimum Initial Energy to Finish TasksSolve
Minimum Number of Steps to Make Two Strings AnagramSolve
Multiply StringsSolve
N-QueensSolve
PermutationsSolve
Product of Array Except SelfSolve
Regular Expression MatchingSolve
Remove Nth Node From End of ListSolve
Reverse Linked ListSolve
Rotate ArraySolve
Rotting OrangesSolve
Sliding Window MaximumSolve
Smallest String With SwapsSolve
Sort ColorsSolve
Split Array Largest SumSolve
Two Sum II - Input Array Is SortedSolve
Valid AnagramSolve
Valid SudokuSolve
Vowel SpellcheckerSolve
Word SearchSolve
4SumSolve
Accounts MergeSolve
Add BinarySolve
Add Two IntegersSolve
Article Views ISolve
Assign CookiesSolve
Asteroid CollisionSolve
Average Selling PriceSolve
Basic CalculatorSolve
Best Time to Buy and Sell Stock IISolve
Binary SearchSolve
Broken CalculatorSolve
Cheapest Flights Within K StopsSolve
Check if the Sentence Is PangramSolve
Clone GraphSolve
Combine Two TablesSolve
Concatenation of ArraySolve
Construct Binary Tree from Preorder and Inorder TraversalSolve
Convert Integer to the Sum of Two No-Zero IntegersSolve
Convert Sorted Array to Binary Search TreeSolve
Copy List with Random PointerSolve
Count Binary SubstringsSolve
Count Servers that CommunicateSolve
Course ScheduleSolve
Create Hello World FunctionSolve
Customer Who Visited but Did Not Make Any TransactionsSolve
Decode WaysSolve
Design Circular QueueSolve
Design HashMapSolve
Design Hit CounterSolve
Design Memory AllocatorSolve
Design Task ManagerSolve
Diagonal TraverseSolve
Divide Two IntegersSolve
Edit DistanceSolve
Evaluate DivisionSolve
Evaluate Reverse Polish NotationSolve
Excel Sheet Column NumberSolve
Excel Sheet Column TitleSolve
Final Prices With a Special Discount in a ShopSolve
Find All Anagrams in a StringSolve
Find All Duplicates in an ArraySolve
Find First and Last Position of Element in Sorted ArraySolve
Find if Path Exists in GraphSolve
Find K Closest ElementsSolve
Find K Pairs with Smallest SumsSolve
Find the Index of the First Occurrence in a StringSolve
Fizz BuzzSolve
Flatten a Multilevel Doubly Linked ListSolve
Flood FillSolve
Game of LifeSolve
Gas StationSolve
H-IndexSolve
Happy NumberSolve
Implement Trie (Prefix Tree)Solve
Insert Delete GetRandom O(1)Solve
Insert IntervalSolve
Insert into a Binary Search TreeSolve
Integer to RomanSolve
Interleaving StringSolve
Intersection of Two ArraysSolve
Intersection of Two Arrays IISolve
Investments in 2016Solve
Isomorphic StringsSolve
Jump GameSolve
Koko Eating BananasSolve
Kth Largest Element in an ArraySolve
Kth Missing Positive NumberSolve
Kth Smallest Element in a BSTSolve
Largest Odd Number in StringSolve
Length of Last WordSolve
Longest Common SubsequenceSolve
Longest Consecutive SequenceSolve
Longest Increasing SubsequenceSolve
Longest Palindromic SubsequenceSolve
Longest String ChainSolve
Longest Substring with At Least K Repeating CharactersSolve
Making A Large IslandSolve
Max Consecutive Ones IIISolve
Maximal Network RankSolve
Maximum Average Subarray ISolve
Maximum Depth of Binary TreeSolve
Maximum Number of Non-overlapping Palindrome SubstringsSolve
Maximum Number of Words You Can TypeSolve
Maximum ORSolve
Maximum Palindromes After OperationsSolve
Middle of the Linked ListSolve
Min StackSolve
Minimize Malware SpreadSolve
Minimum Genetic MutationSolve
Minimum Knight MovesSolve
Minimum Number of Refueling StopsSolve
Minimum Path SumSolve
Minimum Score Triangulation of PolygonSolve
Minimum Value to Get Positive Step by Step SumSolve
Missing NumberSolve
Monthly Transactions ISolve
Move ZeroesSolve
N-Queens IISolve
Next Greater Element ISolve
Next Greater Element IISolve
Number of People Aware of a SecretSolve
Number of ProvincesSolve
Number of Visible People in a QueueSolve
Odd Even Linked ListSolve
Online Stock SpanSolve
Open the LockSolve
Palindrome PartitioningSolve
Palindromic SubstringsSolve
Partition Equal Subset SumSolve
Pascal's TriangleSolve
Path Sum IISolve
Perfect NumberSolve
Permutations IISolve
Populating Next Right Pointers in Each NodeSolve
Power Grid MaintenanceSolve
Product Sales Analysis IIISolve
Ransom NoteSolve
Rearrange Words in a SentenceSolve
Recover Binary Search TreeSolve
Recyclable and Low Fat ProductsSolve
Remove ElementSolve
Remove Linked List ElementsSolve
Reorganize StringSolve
Replace Employee ID With The Unique IdentifierSolve
Restore IP AddressesSolve
Reverse Linked List IISolve
Reverse Vowels of a StringSolve
Reverse Words in a StringSolve
Robot Bounded In CircleSolve
Rotate ListSolve
Running Sum of 1d ArraySolve
Same TreeSolve
Search a 2D Matrix IISolve
Search Insert PositionSolve
Shifting LettersSolve
Single Element in a Sorted ArraySolve
Single NumberSolve
Smallest Number With All Set BitsSolve
Sorting the SentenceSolve
Sqrt(x)Solve
String to Integer (atoi)Solve
Subarrays with K Different IntegersSolve
SubsetsSolve
Successful Pairs of Spells and PotionsSolve
Task SchedulerSolve
Text JustificationSolve
The Two Sneaky Numbers of DigitvilleSolve
Top K Frequent ElementsSolve
Trapping Rain Water IISolve
Twisted Mirror Path CountSolve
Valid PalindromeSolve
Valid Perfect SquareSolve
Wildcard MatchingSolve
Word BreakSolve
Word LadderSolve
Word Search IISolve
Zigzag ConversionSolve