Explore questions associated with Microsoft. Review the source details, then use the workspace for code, notes, and diagrams.
454 questions in the library. A source association does not guarantee a future interview question.
Behavioral and leadership · Coding · Machine learning · ML system design · Object-oriented design · Other questions · Practical engineering · System design
Loading questions…
Showing 326–350
Companies: Microsoft, Amazon
Last reported Jan 2025
Companies: Microsoft
Last reported Jan 2025
Companies: Microsoft
Last reported Jan 2025
Companies: Microsoft, Lyft, Meta
Last reported Jan 2025
Given a string s and integer k, find the longest subsequence where the absolute difference between every two adjacent letters' positions in the alphabet is…
Companies: Microsoft
Last reported Jan 2025
Find the median of two sorted arrays in O(log(m+n)) time by using binary search to partition the arrays so the left half contains the correct…
Companies: Microsoft, Amazon, Bloomberg, eBay +5
Array · Binary Search · Divide and Conquer
Last reported Jan 2025
Sort an integer array in ascending order without using built-in sort routines, achieving O(n log n) time and minimal extra space; input size is up…
Companies: Microsoft, Amazon
Last reported Jan 2025
Companies: Microsoft
System Design · System Design Fundamentals
Last reported Jan 2025
Companies: Microsoft
System Design
Last reported Dec 2024
Design a ride-sharing service like Uber that allows users to request rides, matches them with nearby drivers, handles real-time tracking, and processes payments.
Companies: Microsoft, Airbnb, Amazon, Google +5
Last reported Nov 2024
Companies: Microsoft
ML System Design · System Design
Last reported Oct 2024
Companies: Microsoft
System Design · System Design Fundamentals
Last reported Oct 2024
Companies: Microsoft
Real-Time Systems · System Design
Last reported Oct 2024
Generate a string that maximizes the score calculated by a given function. The function counts unique two-digit numbers in the string and returns the sum…
Companies: Microsoft
Last reported Oct 2024
Companies: Microsoft
Real-Time Systems · System Design
Last reported Oct 2024
Companies: Microsoft
System Design · System Design Fundamentals
Last reported Oct 2024
Companies: Microsoft
Product Sense · System Design · System Design Fundamentals
Last reported Sep 2024
Implement a min heap data structure from scratch with core operations including insertion, deletion, heapify up/down, and peek functionality to access the minimum element.
Companies: Microsoft
Last reported Aug 2024
Companies: Microsoft
API Design · System Design
Last reported Jun 2024
Given m product types and n stores where each store can hold at most one type (but any amount), minimize the maximum number of items…
Companies: Microsoft
Last reported Jan 2020
Design a system to remove duplicate lines from a very large file that cannot be loaded into memory all at once. The solution should efficiently…
Companies: Microsoft
Last reported Jan 2020
Given a non-decreasing sorted array rotated at an unknown pivot (and possibly containing duplicates), determine whether a target value exists in the array. The core…
Companies: Microsoft
Last reported Jan 2020
Given an m×n matrix, set every row and column to zero wherever an element is zero, modifying the matrix in-place. The key challenge is to…
Companies: Microsoft, Meta
Last reported Jan 2020
Find all unique triplets in an integer array that sum to zero, ensuring no duplicate triplets in the output. The core challenge is efficiently enumerating…
Companies: Microsoft, Amazon, Apple, Bloomberg +5
Array · Sorting · Two Pointers
Companies: Microsoft, Amazon, Bloomberg, Google +2
Linked List · Math · Recursion