practice a little every day, paws crossed ♡
Coding & Algorithms 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 1861–1890 of 3276 results
- MicrosoftMediumSoftware EngineerImplement Memory Allocation and In-Memory Records
This problem tests your ability to manage a block of contiguous memory via a free-list and maintain a hierarchical data structure for user records.
Coding & AlgorithmsOnsiteMemory ManagementData StructuresGraphs - MicrosoftMediumMachine Learning EngineerImplement SFT Sample Packing
This problem tests your ability to efficiently pack variable-length sequences into fixed-length blocks for training, ensuring padding tokens do not influence the loss calculation.
Coding & AlgorithmsHR ScreenNLPData PreprocessingArrays - MicrosoftMediumSoftware EngineerImplement SQL Table and DNA Ordering
This question evaluates a candidate's skills in robust input parsing, in-memory data modeling, API design, and sequence reconstruction from linked fragments, covering string handling, edge-case handling for CSV, and graph-like ordering of sequence fragments.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerImplement a Snapshot Set Iterator
This problem tests your ability to design a data structure that maintains point-in-time consistency for an iterator despite subsequent modifications to the underlying collection.
Coding & AlgorithmsTechnical ScreenData StructuresDesignIterator - MicrosoftMediumSoftware EngineerImplement a rate limiter at scale
This problem tests your ability to implement an efficient, thread-safe rate limiter using a sliding window algorithm to ensure a request quota is enforced across a distributed environment.
Coding & AlgorithmsOnsiteConcurrencyData StructuresDistributed Systems - MicrosoftHardSoftware EngineerImplement a sliding-window rate limiter allow()
This problem tests your ability to implement a thread-safe rate limiter using a sliding window algorithm to ensure a service stays within specified traffic constraints.
Coding & AlgorithmsOnsiteConcurrencyRate LimitingHash Map - MicrosoftMediumSoftware EngineerImplement a type-based mutex for tasks
This problem tests knowledge of synchronization primitives, dictionary-based locking mechanisms, and the ability to manage resource contention based on dynamic categorization.
Coding & AlgorithmsTechnical ScreenConcurrencySynchronizationMultithreading - MicrosoftHardSoftware EngineerImplement array and tree traversal tasks
This problem tests your ability to optimize an array-based trading algorithm using a greedy approach and your mastery of level-order tree traversal to extract a specific view of a binary tree.
Coding & AlgorithmsTechnical ScreenGreedyBFSDFS - MicrosoftMediumMachine Learning EngineerImplement cache and merge intervals
This question tests the ability to implement a fixed-capacity Least Recently Used (LRU) cache using hash maps and doubly-linked lists, followed by a classic interval processing algorithm to merge overlapping segments.
Coding & AlgorithmsOnsiteLRU CacheIntervalsHash Map - MicrosoftHardSoftware EngineerImplement concurrent structures and debug queue code
This question evaluates data-structure implementation and concurrent programming competencies by testing construction of an LRU cache, a custom hash map, a quadtree spatial index, and debugging of a producer-consumer queue.
Coding & AlgorithmsTechnical Screen - MicrosoftMediumSoftware EngineerImplement four data-structure/string geometry tasks
This problem tests foundational skills in string arithmetic, parsing, coordinate geometry, and segment tree-based range queries.
Coding & AlgorithmsOnsiteStringsGeometryData Structures - MicrosoftMediumSoftware EngineerImplement greedy decoding and beam search
This question evaluates understanding of autoregressive decoding strategies—greedy decoding and beam search—including cumulative log-probability scoring, beam maintenance, EOS handling, and sequence expansion logic; it is categorized under Coding & Algorithms for Software Engineer roles.
Coding & AlgorithmsTechnical Screen - MicrosoftHardSoftware EngineerImplement idempotent request handling with idempotency keys
This problem tests your ability to design a thread-safe idempotency layer that ensures an API endpoint processes identical requests exactly once, even in the presence of concurrent execution.
Coding & AlgorithmsOnsiteConcurrencySynchronizationSystem Design - MicrosoftHardData ScientistImplement lower_bound on unknown-size sorted array
This question evaluates ability to design efficient search algorithms for unknown-length non-decreasing arrays accessed via a limited get(i) API, emphasizing correctness proof and tight query/time complexity bounds.
Coding & AlgorithmsOnsite - MicrosoftMediumData ScientistImplement rotated array binary search with duplicates
This question evaluates algorithm design and analysis skills, focusing on binary-search variants, handling duplicates in rotated non-decreasing arrays, rotation-index reasoning, and rigorous edge-case analysis; domain: Coding & Algorithms, specifically search algorithms and array manipulation.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerImplement tree traversals, BFS, and subsets generation
This question evaluates proficiency with fundamental data structures and algorithms—binary tree traversals (preorder, inorder, postorder), breadth-first search on unweighted graphs, and power-set/subset generation—emphasizing implementation choices between recursive and iterative approaches and required time and space complexity reasoning.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerIn-Memory URL Shortener: Encode and Decode
Design an in-memory URL shortener class supporting fast encoding and decoding between original long URLs and compact short URLs using hash maps.
Coding & AlgorithmsTechnical Screenhash-tabledesignstring - MicrosoftMediumApplied ScientistInsert Spaces to Rebuild a Sentence from Dictionary Words
A coding question that asks you to insert spaces into a string that lost them so that every piece is a dictionary word, returning the smallest valid sentence or None when no split exists. It tests string segmentation with dictionary lookups, handling of impossible inputs, and a canonical tie-breaking rule.
Coding & AlgorithmsOnsite - MicrosoftMediumSoftware EngineerKeep Stable Unique Column Names Across Schema Changes
Maintain stable case-insensitive unique column names across additions, removals, reordering, reappearance, and natural suffix collisions, with independent table histories.
Coding & AlgorithmsOnsite - 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 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 - MicrosoftMediumApplied ScientistMaximum Subarray Sum of an Array Repeated K Times
A coding question that first asks for the largest sum of a non-empty contiguous subarray, then for the same quantity when the array is written out k times back to back. It tests subarray reasoning across copy boundaries, all-negative inputs, and sums that overflow 32-bit integers.
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