Microsoft Interview Preparation
Microsoft DS & Algo Interview Round Questions 2026
Microsoft frequently opens and closes requisitions to manage referral batches,
LRU cache can be asked either in DSA or LLD rounds
https://leetcode.com/problems/lru-cache/description/
If you are looking for Microsoft Low Level Design and AI Assisted LLD round questions then you can find them here:
https://codezym.com/lld/microsoft
Here are few thread questions that may be discussed
What is the difference between a process and a thread?
If multiple threads access the same variable and they don’t write to it, do we face any problem?
What issues arise when multiple threads access a shared variable?
What is the difference between a variable created on the heap and a variable created inside a function? If multiple threads execute the same function, and each thread has its own function-local variables, then how do conflicts arise at all?
What exactly causes race conditions in multithreaded programs?
What is Microservices Architecture?
How is Microservices Architecture different from a monolithic architecture?
If services are running on different virtual machines, how do they communicate with each other?
How does gRPC help in communication between services running on different VMs?
Why would we choose gRPC over REST for service-to-service communication?
What other communication mechanisms can be used between services apart from gRPC?
What is Event-Driven Architecture?
What do we mean by an “event” in Event-Driven Architecture?
How does Event-Driven Architecture work in a microservices system?
How is Event-Driven Architecture different from synchronous communication like REST or gRPC?
What are the benefits of using Event-Driven Architecture?
What challenges or trade-offs come with Event-Driven Architecture?
Leetcode Questions (free ones):
Reverse Nodes in k-Group
https://leetcode.com/problems/reverse-nodes-in-k-group/description/Longest Substring Without Repeating Characters
https://leetcode.com/problems/longest-substring-without-repeating-characters/Find Median from Data Stream
https://leetcode.com/problems/find-median-from-data-stream/description/Min Stack
https://leetcode.com/problems/min-stack/description/Below are questions with follow-ups that were asked during the interview round.
01
Load Balancing Requests to Available Servers
Route incoming requests to available servers while respecting when each server is busy or free.
https://codezym.com/question/321-load-balancing-server-requestsMedium
02
Climbers For Mountain Expedition
Determine how climbers can be selected or organized for an expedition while satisfying the given constraints.
https://codezym.com/question/322-climbers-for-mountain-expeditionMedium
03
Cheapest Journey Between Cities
Find the minimum-cost route between cities using the available connections and travel costs.
https://codezym.com/question/323-cheapest-journey-between-citiesMedium
04
Design LRU Cache With Time Constraint
Implement an LRU cache whose entries expire after a fixed time while preserving recency-based eviction.
https://codezym.com/question/165-design-lru-cache-time-constraintMedium
05
Longest Safe Path in a String
Find the longest valid path or segment in a string while avoiding characters or transitions marked unsafe.
https://codezym.com/question/324-longest-safe-path-in-stringEasy
06
Minimum Time at the Office After Skipping Meetings
Minimize time spent at the office by choosing which meetings may be skipped under the given rules.
https://codezym.com/question/325-min-time-at-officeMedium
07
Search Matching Lines in a Document
Search a document and return the lines that satisfy the requested words or matching criteria.
https://codezym.com/question/327-search-matching-lines-in-documentMedium
08
Design N-Stack Using a Fixed-Size Array
Support multiple independent stacks efficiently inside one fixed-size array.
https://codezym.com/question/328-n-stack-using-fixed-arrayMedium
09
Next Bigger Number with Same Digits
Rearrange the same digits to produce the smallest number that is strictly greater than the original.
https://codezym.com/question/329-next-bigger-number-same-digitsMedium
10
Floating-Point Number to String
Convert a floating-point value into its required string representation while handling formatting edge cases.
https://codezym.com/question/330-floating-point-number-to-stringMedium
11
Count Connected Groups in Undirected Graph
Count the connected components formed by the nodes and edges of an undirected graph.
https://codezym.com/question/184-count-connected-groups-undirected-graphMedium
12
Trie-Based Dynamic Multilingual Dictionary with Prefix Queries
Build a multilingual trie that supports dynamic updates and efficient prefix-based word queries.
https://codezym.com/question/331-trie-dictionary-with-prefix-queriesMedium
13
Minimum Bracket Reversals for a Balanced String
Find the fewest bracket reversals needed to make the entire string balanced.
https://codezym.com/question/332-min-bracket-reversals-for-balanced-stringMedium
14
Minimum Heater Radius for All Houses
Compute the smallest common heater radius that provides coverage to every house.
https://codezym.com/question/333-min-heater-radius-for-all-housesEasy
15
Add Two Large Numbers Represented as Strings
Add two arbitrarily large non-negative integers supplied as strings.
https://codezym.com/question/334-add-two-large-numbersEasy
16
Design Stack With Peek And Pop Maximum Element
Design a stack with normal operations plus efficient access to and removal of its current maximum element.
https://codezym.com/question/186-design-stack-peek-pop-maximum-elementMedium
17
Compile Packages with Dependencies in a Multi-Threaded Environment
Compile dependency-linked packages in a valid order while running independent work concurrently.
https://codezym.com/question/145-compile-packages-dependenciesMedium
18
Valid Course Order with Prerequisites
Return an order that satisfies every course prerequisite, or report when no valid order exists.
https://codezym.com/question/336-valid-course-orderMedium
19
Top K Frequent Error Codes
Return the K error codes that occur most often while applying the required tie-breaking order.
https://codezym.com/question/337-top-k-frequent-error-codesMedium
20
Maximum Added Edges in an Network With Special Employees
Add as many network edges as possible without connecting special employees who must remain separated.
https://codezym.com/question/339-max-added-edges-with-special-employeesMedium
21
Minimum Meeting Rooms Required
Determine the minimum number of rooms needed to host all overlapping meetings.
https://codezym.com/question/179-minimum-meeting-rooms-requiredMedium
22
Delete Numbers to Earn Maximum Points
Maximize earned points when choosing one value forces deletion of its neighboring values.
https://codezym.com/question/341-delete-numbers-earn-max-pointsMedium
23
Check If Undirected Graph Is Bipartite
Check whether graph nodes can be split into two groups so every edge crosses between the groups.
https://codezym.com/question/342-check-undirected-graph-bipartiteMedium
24
Find All Pairs With Minimum Absolute Difference
Return every pair of values whose absolute difference is the smallest found in the list.
https://codezym.com/question/343-pairs-with-min-absolute-differenceEasy
25
Reconstruct Corrupted Master Page
Recover the correct page sequence from the stored status and next-page metadata.
https://codezym.com/question/344-reconstruct-corrupted-master-pageMedium
26
Create Maximum Number of Alloys Within Budget
Maximize the alloys one machine can produce using available stock without exceeding the budget.
https://codezym.com/question/345-max-alloys-within-budgetMedium
27
Find the Shortest Cycle in an Undirected Graph
Return the length of the shortest cycle in an undirected graph, or indicate that no cycle exists.
https://codezym.com/question/346-shortest-cycle-undirected-graphHard
28
Count Good Sublists Containing N Different Integers
Count contiguous sublists that contain exactly N distinct integer values.
https://codezym.com/question/347-count-good-sublistsMedium
29
Total Price Fluctuation
Sum the difference between maximum and minimum prices across every contiguous sublist.
https://codezym.com/question/348-total-price-fluctuationMedium
30
Count Number of Perfect Pairs
Count pairs satisfying the required relationships between their absolute sums, differences, and magnitudes.
https://codezym.com/question/349-count-perfect-pairsMedium
31
Schedule Jobs with Minimum Difficulty
Split ordered jobs across the required days while minimizing the sum of daily difficulties.
https://codezym.com/question/350-min-difficulty-job-scheduleHard
32
Minimum Journey Cost To Reach Destination Within Time
Find the least expensive route that reaches the destination within the allowed travel time.
https://codezym.com/question/351-min-journey-costHard
33
Minimum Operations to Remove All Nodes
Minimize subtree-decrement operations required to remove every valued node from the tree.
https://codezym.com/question/352-min-operations-remove-all-nodesMedium
34
Minimum Area of an Axis-Aligned Rectangle
Find the smallest axis-aligned rectangle whose four corners appear among the given points.
https://codezym.com/question/353-min-area-axis-aligned-rectangleMedium
35
Largest Rectangle Area Using Consecutive Histogram Bars
Compute the largest rectangle that can be formed using consecutive bars of a histogram.
https://codezym.com/question/354-largest-rectangle-areaHard
36
Remove Duplicates from a Sorted List
Create a new sorted list that keeps only the permitted number of copies of each distinct value.
https://codezym.com/question/355-remove-duplicates-from-sorted-listEasy