Topic
Coding & Algorithms interview questions
3276 Coding & Algorithms questions from 366 companies, with hints, runnable code and solution walkthroughs.
273 easy2539 medium464 hard
Coding & Algorithms interview questions by the numbers
Last updated
Katkat has 3,276 Coding & Algorithms interview questions from 366 companies; the most come from Amazon (7%), Meta (7%) and Google (6%). By difficulty: 8% easy, 78% medium and 14% hard. The most common round is Technical Screen (52%). Frequent concepts include Algorithms, Data Structures, Arrays and Greedy.
Companies (366)
Difficulty
- Easy8% · 273
- Medium78% · 2539
- Hard14% · 464
Interview rounds
- Technical Screen52% · 1706
- Onsite33% · 1080
- Online Assessment13% · 427
- HR Screen1% · 37
- Other1% · 26
Roles
- Software Engineer80% · 2629
- Machine Learning Engineer8% · 253
- Data Scientist7% · 241
- Data Engineer1% · 45
- Backend Engineer1% · 26
Frequent concepts
- Algorithms9% · 302
- Data Structures7% · 228
- Arrays5% · 176
- Greedy5% · 164
- Optimization5% · 151
- Hash Map4% · 124
Most mentioned in interview experiences
- 1.Solve Algorithmic Challenges in Online Coding Assessments15 reports
- 2.Solve LeetCode string and list problems11 reports
- 3.Solve sliding-window and heap problems8 reports
- 4.Implement LRU cache with O(1) ops7 reports
- 5.Implement and Analyze an LRU Query Cache6 reports
- 6.Determine Length of Longest Unique Substring5 reports
- 7.Match-3 Grid: Find Horizontal and Vertical Runs, Then Clear and Drop Cells5 reports
- 8.Design a single- and multi-threaded web crawler4 reports
- 9.Find an Exit in a URL Maze4 reports
- 10.Find deployable slots in a recurring week from allowed and freeze windows4 reports
Counted from 781 candidate interview experiences on Katkat. How we collect and count
Showing 1861–1890 of 3276 results
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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis 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.
MicrosoftMachine Learning EngineerCoding & AlgorithmsHR ScreenThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests knowledge of synchronization primitives, dictionary-based locking mechanisms, and the ability to manage resource contention based on dynamic categorization.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenThis 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.
MicrosoftMachine Learning EngineerCoding & AlgorithmsOnsiteThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests foundational skills in string arithmetic, parsing, coordinate geometry, and segment tree-based range queries.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis 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.
MicrosoftData ScientistCoding & AlgorithmsOnsiteThis 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.
MicrosoftData ScientistCoding & AlgorithmsOnsiteThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteDesign an in-memory URL shortener class supporting fast encoding and decoding between original long URLs and compact short URLs using hash maps.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenA 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.
MicrosoftApplied ScientistCoding & AlgorithmsOnsiteMaintain stable case-insensitive unique column names across additions, removals, reordering, reappearance, and natural suffix collisions, with independent table histories.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteA 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.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenA 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteDetermine 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteTests dynamic programming and hash map aggregation to maximize points under adjacency constraints over a sparse range of values.
MicrosoftSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates proficiency in array algorithms, time and space complexity analysis, and techniques for bounded-range optimization and streaming adaptation.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteA 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.
MicrosoftApplied ScientistCoding & AlgorithmsOnsiteCompute 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteA 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis question tests the ability to manage and merge interval-based data, requiring sorting and a single-pass linear traversal to resolve overlaps.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenCalculate 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.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsite