Microsoft Coding Interview Questions

These are the 29 Microsoft coding interview questions AceOffer has reconstructed from candidate reports, sorted by how often each was reported. Top K: Largest Elements, Most Frequent, Ranked Apps and Stores leads at 7×. Every question shows when it was last reported; the catalog refreshes monthly.

Part of the full catalog of Microsoft interview questions, covering every round.

AceOffer is not affiliated with, endorsed by, or sponsored by Microsoft. Questions are reconstructed from interview experiences candidates shared, not from Microsoft materials.

Key facts

  • •29 distinct coding questions indexed
  • •85 candidate reports across those questions
  • •Most reported: Top K: Largest Elements, Most Frequent, Ranked Apps and Stores — 7× (last seen September 2026)
  • •Refreshed monthly · last updated October 2026

Which Microsoft rounds ask coding questions?

Microsoft draws coding questions from the rounds below. Counts are distinct questions, not times asked.

LeetCode-style problems (Number of Islands and its variants, LRU and LFU Cache, Merge Intervals, Lowest Common Ancestor, Spiral Matrix, Alien Dictionary, distance to a cycle) and practical ones (a sliding-window rate limiter, a per-key ordered task executor, an in-memory table from CSV).17 questions

Most reported: Number of Islands and Its Variants (Islands II, Largest Island, Region Sizes) — 7×

A coding screen, often after a project discussion: DNA fragment assembly, stop-token detection over a text stream, suffix-maximum counts, top K problems, package install order and Longest Palindromic Subsequence.6 questions

Most reported: Top K: Largest Elements, Most Frequent, Ranked Apps and Stores — 7×

Two HackerRank problems: a balanced permutation check, the maximum XOR product, counting non-decreasing arrays with given digit sums, the cheapest trip with fuel prices by city, the most frequent substring within limits, and picking k non-adjacent servers.6 questions

Most reported: OA: Balanced Permutation (Is 1..k a Contiguous Block, for Every k) — 3×

Which Microsoft coding questions get asked most?

Sorted by candidate-report frequency. Click any question for the full breakdown.

QuestionRoundReportedLast seen
Top K: Largest Elements, Most Frequent, Ranked Apps and StoresPhone Screen7×September 2026
Number of Islands and Its Variants (Islands II, Largest Island, Region Sizes)Coding7×September 2026
LRU Cache, Then Thread Safety, Expiry and ShardingCoding6×October 2026
Rate Limiter: Sliding-Window allow(), Then 100K QPSCoding5×April 2026
DNA Fragment Assembly: Chain by Tags, Then Unknown Direction, Then Several ChainsFreePhone Screen4×May 2026
In-Memory Table from CSV: Parse, Select Columns, WHERE Filters, ORDER BYCoding4×May 2026
Binary Tree Zigzag Level Order TraversalCoding4×August 2026
Merge Intervals, Then Return Every Overlapping IntervalFreeCoding4×April 2026
Stop-Token Detection over a Stream of Text Chunks (Token Split Across Chunks)Phone Screen3×February 2026
OA: Balanced Permutation (Is 1..k a Contiguous Block, for Every k)OA3×March 2026
Package Install Order from Dependencies (Topological Sort, Raise on Cycles)Phone Screen2×February 2026
For Each Query Index, Count the Maximum of the SuffixPhone Screen2×August 2026
Longest Palindromic SubsequencePhone Screen2×December 2025
Alien Dictionary (Topological Sort; Empty String if Invalid)Coding2×August 2026
Is a Number a Palindrome, Then the Next Larger PalindromeCoding2×January 2026
Palindrome Linked List in O(1) Space, Then Restore the ListCoding2×August 2026
LFU CacheCoding2×April 2026
Word Break II: Rebuild a Sentence from a Dictionary (Backtracking + Memo)Coding2×October 2026
Longest Substring Without Repeating CharactersCoding2×January 2026
Calendar: Can a New Event Be Scheduled Without Overlap (My Calendar I)Coding2×March 2026
Distance from Every Node to the Cycle in a GraphCoding2×January 2026
Lowest Common Ancestor: BST First, Then Any Binary TreeCoding2×February 2026
Spiral Matrix: Clockwise, Counter-Clockwise, Then Generate N x NCoding2×August 2026
Per-Key Ordered Task Executor (Same Key in Order, Bounded Concurrency, Shutdown)Coding2×September 2026
OA: Maximise (A xor X) * (B xor X) for X < 2^N, Modulo 1e9+7OA2×July 2026
OA: Count Non-Decreasing Arrays with Given Digit SumsOA2×October 2026
OA: Cheapest Trip When Fuel Price Differs by City (Dijkstra with State)OA2×August 2026
OA: Most Frequent Substring Within Length and Unique-Letter LimitsOA2×October 2026
OA: Pick K Non-Adjacent Servers, Minimise the Largest PickOA2×October 2026

Browse the full Microsoft catalog →

FAQ

How many coding questions does Microsoft ask?▾
AceOffer has reconstructed 29 distinct Microsoft coding interview questions from 85 verified candidate reports, each with the follow-ups candidates reported and a last-reported date.
What is the most common Microsoft coding interview question?▾
Top K: Largest Elements, Most Frequent, Ranked Apps and Stores — reported 7 times, last seen September 2026.
How fresh is AceOffer's Microsoft coding question data?▾
The catalog is refreshed monthly from new candidate reports, and every question shows when it was last reported.

Get the full Microsoft catalog

Every question, every candidate-reported follow-up, and what passers actually do. Monthly refresh.

Is this helpful?