practice a little every day, paws crossed ♡
Software Engineer Interview Questions
Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.
- 9403
- Questions
- 546
- Companies
- 11
- Topics
- 8
- Languages
Showing 3511–3540 of 5874 results
- MicrosoftMediumSoftware EngineerList Point Pairs Spanning Non-Degenerate Boxes in N Dimensions, Sorted by Volume
A coding problem that takes points in two or more dimensions, finds every pair whose axis-aligned box has non-zero volume, and returns those pairs with their volumes in a strict order. It tests careful pair enumeration, handling of flat or degenerate boxes, and deterministic sorting with tie-breaks.
Coding & AlgorithmsTechnical Screen - MicrosoftMediumSoftware EngineerLongest Single-Letter Substring After at Most k Letter Replacements
A string problem: given uppercase letters and a budget of k single-letter changes, find the longest contiguous substring that can be turned into one repeated letter. It tests efficient substring scanning with letter counts and careful reasoning about when a candidate substring stays valid.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerLow-Level Design of a Logging Library Shared by Many Threads
Low-level design question about an in-process logging library that many threads call at the same time. It tests class modeling for loggers, records, formatters and output destinations, plus thread safety, the hand-off to a background writer, ordering, overflow behavior, failure isolation and clean shutdown.
Software Engineering FundamentalsOther - MicrosoftMediumSoftware EngineerMaximize Equal Array Length After Contiguous Sum Merges
Determine the maximum possible length of two identical arrays formed by repeatedly merging adjacent elements of two given positive-integer arrays, or return -1 if impossible.
Coding & AlgorithmsOnsiteTwo PointersGreedyArrays - MicrosoftMediumSoftware EngineerMaximize Points by Deleting Values and Their Neighbors
Tests dynamic programming and hash map aggregation to maximize points under adjacency constraints over a sparse range of values.
Coding & AlgorithmsOnline Assessmentdynamic-programminghash-tablesorting - MicrosoftMediumSoftware EngineerMaximize profit with bounded sell window
This question evaluates proficiency in array algorithms, time and space complexity analysis, and techniques for bounded-range optimization and streaming adaptation.
Coding & AlgorithmsOnsite - MicrosoftEasySoftware EngineerMeasure Every Lake on a Map Tile, Listed in Scan Order
Compute the area of every water body on a rectangular map tile, reported in the order a row-by-row scan first touches each one; tests connected components on a grid and avoiding recursion limits on huge regions.
Coding & AlgorithmsOnsitegridgraph-traversaldfs - MicrosoftMediumSoftware EngineerMedian of Every Fixed-Length Sliding Window in an Integer Array
A coding problem that slides a window of fixed length k across an integer array and asks for the median of every window position, returned as floats in window order. It tests keeping the middle of a changing collection available as elements enter and leave, exact handling of even-sized windows, and overflow-safe averaging.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerMerge multiple sorted arrays using min-heap
This question evaluates algorithm design and data structure proficiency, focusing on merging multiple sorted sequences and reasoning about time and space complexity for large numbers of arrays and elements.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerMerge overlapping intervals
This question tests the ability to manage and merge interval-based data, requiring sorting and a single-pass linear traversal to resolve overlaps.
Coding & AlgorithmsTechnical ScreenSortingIntervalsArrays - MicrosoftMediumSoftware EngineerMinimize Fuel Cost Across Cities
Calculate the minimum monetary cost to travel between two cities in a road network where fuel is consumed per unit distance and can be stockpiled with unlimited capacity at local city prices.
Coding & AlgorithmsOnsiteGraphDijkstraShortest Path - MicrosoftMediumSoftware EngineerMinimize the Largest Value When Picking at Least k Non-Adjacent Houses
Pick at least k houses from a row without choosing two neighbors, so that the largest amount in any chosen house is as small as possible, and return that minimum. With up to 100,000 houses and values up to one billion, the task tests reasoning about a min-max objective under an adjacency constraint.
Coding & AlgorithmsOnline Assessment - MicrosoftMediumSoftware EngineerMinimum Number of Rooms to Host Overlapping Meetings
A scheduling problem that asks for the fewest rooms needed to hold a set of meetings given as half-open time intervals, where a room freed at a given moment can be reused immediately. It tests interval reasoning, correct handling of shared endpoints and duplicates, and an efficient solution for large inputs.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerMinimum Ship Capacity to Deliver Ordered Packages Within a Day Limit
Given package weights in a fixed loading order and a number of days, find the smallest ship capacity that delivers every package within that many days, carrying one contiguous run of packages per day. It tests reasoning precisely about feasibility, choosing correct bounds and handling large inputs efficiently.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerMinimum total cost to convert one string into another using weighted character rules
A string transformation problem: convert a source string into a target string using directed, weighted character replacement rules that may be chained at a position. It tests reasoning about multi-step conversions, choosing the cheapest of duplicate rules, detecting impossible positions, and totals beyond the 32-bit range.
Coding & AlgorithmsOther - MicrosoftMediumSoftware EngineerMost Frequent Substring Under Distinct-Letter and Length Limits
Find how often the most frequent eligible substring appears in a lowercase string, where an eligible substring has a length within a given range and no more than a set number of distinct letters. Overlapping occurrences count and inputs reach 100,000 characters, so the task tests efficient substring counting.
Coding & AlgorithmsOnline Assessment - MicrosoftMediumSoftware EngineerMost Frequent Substring Within a Length Range and a Distinct-Letter Limit
A string coding problem: among all substrings whose length falls in a given range and that use at most a given number of distinct letters, return how many times the most frequent one occurs. It tests handling overlapping occurrences and the distinct-letter limit, counting efficiently on strings of up to 100,000 characters, and returning zero when nothing qualifies.
Coding & AlgorithmsOnline Assessment - MicrosoftMediumSoftware EngineerParse a Signed Integer in an Arbitrary Base
Parse signed integers in bases 2–36 with explicit syntax, negative-boundary handling, pre-arithmetic overflow checks, and deterministic error precedence.
Coding & AlgorithmsTechnical Screen - MicrosoftMediumSoftware EngineerPeer-to-Peer File Distribution: Discovery, Chunked Transfer and Integrity Checks
A system design interview question asking you to build a peer-to-peer file sharing network where users download large files directly from other users. It tests content identification, peer discovery, chunked parallel transfer with integrity checks, NAT traversal, incentives against free-riders, and keeping files available as peers churn.
System DesignOnsite - MicrosoftMediumSoftware EngineerPopulate next pointers in a perfect binary tree
Evaluates proficiency in tree traversal and in-place pointer manipulation, emphasizing the perfect binary tree invariant and space-time trade-offs; category/domain: Coding & Algorithms. It is commonly asked because it tests ability to perform level-wise linking under an O(1) extra-space constraint and operates at the implementation-level of algorithms and data structures.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerReason About Alien Dictionary Ordering
This problem tests the ability to model lexicographical constraints as a directed graph and determine if a valid ordering of unique characters exists using topological sorting.
Software Engineering FundamentalsTechnical ScreenGraphTopological SortHash Table - MicrosoftMediumSoftware EngineerRecover Sorted Digits from Scrambled English Number Words
Recover sorted digits from scrambled English number-word letters, including repeats, and analyze why arbitrary customer vocabularies may lose unique recoverability.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerResolve Technical Disagreement and Work Across Different Styles
Discuss technical disagreement and contrasting work styles with fair alternatives, shared evidence, explicit decisions, and practical collaboration changes.
Behavioral & LeadershipOnsite - MicrosoftMediumSoftware EngineerRespond to a Reliability Regression Shortly After Deployment
Respond to a post-deployment latency or reliability regression with scoped diagnosis, safe rollback decisions, customer-impact measurement, and prevention.
Software Engineering FundamentalsOnsite - MicrosoftMediumSoftware EngineerResume Deep Dive: Technical Decisions, Personal Contribution, Challenges, Impact
A resume-driven behavioral interview that walks through a past project in depth: the architecture and technical decisions, what the candidate personally contributed, the hardest challenges, and the measurable impact. It tests ownership, technical judgment and clear, structured storytelling.
Behavioral & LeadershipOnsite - MicrosoftHardSoftware EngineerReturn Top K Open Businesses
This problem tests your ability to filter data streams and maintain a top-K collection using a priority queue with custom sorting logic.
Coding & AlgorithmsTechnical ScreenSortingHeapsFiltering - MicrosoftHardSoftware EngineerReturn a topological ordering of a graph
This question tests the ability to implement Kahn's algorithm or a DFS-based approach to perform a topological sort while correctly handling cycle detection.
Coding & AlgorithmsTechnical ScreenGraphTopological SortKahn's Algorithm - MicrosoftMediumSoftware EngineerReturn the k values in a sorted array closest to a target, with smaller-value ties
Given a sorted integer list, a count k and a target value, return the k elements closest to the target in ascending order. The problem tests a precise tie rule that favors smaller values, duplicate values, targets outside the array's range, and working efficiently on already sorted input.
Coding & AlgorithmsOther - MicrosoftMediumSoftware EngineerReverse linked list in fixed-size groups
This question evaluates proficiency with singly linked list manipulation, pointer/reference management, in-place group operations, and complexity reasoning including time and constant extra space.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerRotate a 3×3 digit grid by 180°
This problem tests your ability to perform spatial transformations on a fixed-size 2D structure while maintaining data integrity across a transformation.
Coding & AlgorithmsOnsiteArraysMatrixStrings