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 391–420 of 3276 results
Simulate a synchronous threshold-based infection process on a grid using an incremental multi-source BFS to achieve optimal linear time complexity.
AnthropicSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates stack-based simulation for computing exclusive execution time in nested function call logs and stream-processing concepts for handling equal timestamps, slight reordering, and detection of N consecutive categorical events.
AnthropicSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates algorithmic problem-solving skills, including core algorithm implementation, handling a consecutive-N-element constraint, and designing an optimization that leverages suffix-related information.
AnthropicSoftware EngineerCoding & AlgorithmsTechnical ScreenDesign a versioned key-value store that supports storing values at specific timestamps and retrieving the most recent value at or before a given timestamp.
AnthropicSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests the ability to implement a backtracking search on a 2D grid, optimized with a Trie data structure to efficiently search for multiple strings simultaneously.
AnthropicSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests your ability to manipulate strings and utilize hash maps to count character frequencies while maintaining the original order of character appearance.
AntraSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to implement an efficient sliding window technique using a hash map to track character indices and maintain a valid substring constraint.
AntraSoftware EngineerCoding & AlgorithmsTechnical ScreenGiven a grid of X and O cells, capture every region of edge-connected O cells that does not touch the border by turning it into X, using a disjoint-set (union-find) structure instead of flood fill. Tests union-find implementation, mapping grid cells to set indices and correct border handling.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates the ability to reason about interval overlaps and resource allocation, testing algorithmic thinking and efficient handling of time-interval data in scheduling contexts and belongs to the Coding & Algorithms domain.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Compute island size in grid states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates understanding of interval scheduling and resource-allocation concepts, proficiency with data structures for detecting temporal overlaps (heap and sweep-line paradigms), and the ability to analyze time and space complexity while handling edge cases.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates dynamic programming, algorithmic analysis, and sensitivity reasoning for matrix-chain multiplication, and it belongs to the Coding & Algorithms domain; it is commonly asked because it tests understanding of optimal substructure, trade-offs in parenthesization, and correctness versus greedy heuristics.
AppleData ScientistCoding & AlgorithmsOnsiteThis interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Compute top three scores per student states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to parse string-based symbols while applying conditional arithmetic logic to handle additive and subtractive Roman numeral rules.
AppleSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests your ability to manipulate linked structures and manage pointer state without using extra hash maps for space optimization.
AppleSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests your ability to perform graph traversal on a 2D grid while adhering to strict memory constraints and preserving the integrity of the original data structure.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to optimize subarray sum calculations using prefix sums and hash maps to achieve linear time complexity.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenStarting from one node of a chain in which every node links only to its left and right neighbors, count the nodes in the whole chain. It tests traversal in both directions from an arbitrary node, handling of chain ends and single-node chains, and the design of your own test cases.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question tests your ability to calculate the output dimensions of convolutional layers in a U-Net architecture and resolve shape mismatches caused by cropping or padding requirements during feature map concatenation.
AppleMachine Learning EngineerCoding & AlgorithmsTechnical ScreenImplement a decoder for run-length encoded strings in which each lowercase letter is followed by an optional repeat count, so that a5b3c becomes aaaaabbbc. It tests careful string parsing, multi-digit counts, letters written without a count, and writing your own test cases.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates understanding of data-structure selection, amortized time complexity, space-time trade-offs, sliding-window state management for expiring events, and the ability to design a concise API with unit tests.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Design a snapshotable key-value store states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates understanding of data modeling and API design for a deck abstraction, algorithmic handling of randomization and sorting, and the ability to analyze time and space complexity.
AppleSoftware EngineerCoding & AlgorithmsOnsiteDetermine whether an undirected graph with disconnected components, potential self-loops, and parallel edges can be colored using two colors such that no two adjacent vertices share the same color.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates skills in data structure serialization and deserialization, binary tree representation, and algorithmic design for deterministic data formats.
AppleData EngineerCoding & AlgorithmsTechnical ScreenThis problem tests tree traversal, graph representation (converting a tree to an undirected graph), and breadth-first search (BFS) to find nodes at a specific distance.
AppleSoftware EngineerCoding & AlgorithmsOnsiteThis question tests the ability to manipulate strings and iterate through arrays to find the longest common prefix among a list of words, emphasizing efficiency and edge-case handling.
AppleSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates skill in array manipulation and computing aggregate metrics over fixed-length intervals, along with understanding of algorithmic complexity and trade-offs between runtime and memory.
AppleData ScientistCoding & AlgorithmsTechnical ScreenThis problem tests your ability to use binary search on a search space to find an optimal minimum processing rate that satisfies a global deadline constraint.
AppleMachine Learning EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates a candidate's skill in array algorithms and in-place algorithm design, emphasizing understanding of time and space complexity and handling edge cases when identifying the smallest missing positive integer.
AppleData ScientistCoding & AlgorithmsOnsite