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 1441–1470 of 3276 results
Simulate a server that receives thread additions and incoming requests as an integer array, where each request permanently consumes one available thread or is dropped, and return how many requests are dropped. It tests careful single-pass array simulation, event ordering, and awareness of integer overflow.
J.P. MorganSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates string processing, pattern recognition, and parsing competencies—covering counting and grouping in binary substrings and structured line parsing and numbering for a table of contents—within the Coding & Algorithms domain.
J.P. MorganSoftware EngineerCoding & AlgorithmsTechnical ScreenImplement Kadane's algorithm to find the maximum sum of a non-empty contiguous subarray in linear time and constant auxiliary space, with proper handling for all-negative inputs and potential 64-bit integer overflow.
J.P. MorganSoftware Engineer IICoding & AlgorithmsOnsiteThis question evaluates algorithmic problem-solving skills in string processing, hashing/grouping and grid traversal/backtracking, along with the ability to analyze time and space complexity and trade-offs.
J.P. MorganSoftware EngineerCoding & AlgorithmsOnline AssessmentThis problem tests your ability to efficiently group strings based on their character counts and your knowledge of hash maps to solve anagram-related categorization problems.
J.P. MorganSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates numerical algorithm design and integer arithmetic competence, including robustness for edge cases and overflow handling, and is categorized in the Coding & Algorithms domain.
J.P. MorganData ScientistCoding & AlgorithmsTechnical ScreenThis problem tests your ability to implement the K-Nearest Neighbors (KNN) algorithm from scratch, focusing on distance computation, sorting, and majority voting logic.
J.P. MorganData ScientistCoding & AlgorithmsTechnical Screen- Implement Merge SortMedium
This problem tests your ability to implement the Divide and Conquer paradigm, specifically the recursive merge sort algorithm, while maintaining stability and managing auxiliary space.
J.P. MorganSoftware Engineer IICoding & AlgorithmsOnsite This problem tests your ability to combine a hash map with a doubly linked list to achieve O(1) time complexity for cache operations.
J.P. MorganSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to manipulate array-based data by identifying and merging intersecting ranges using a greedy sorting strategy.
J.P. MorganSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates algorithmic optimization and array partitioning skills, focusing on modeling minimal integer adjustments to equalize partition sums and demonstrating numerical reasoning under constraints.
J.P. MorganSoftware EngineerCoding & AlgorithmsOnline AssessmentThis problem tests your ability to handle frequency counts and index tracking using hash maps to identify all possible index pairs that sum to a specific target, particularly in the presence of duplicate values.
J.P. MorganMachine Learning EngineerCoding & AlgorithmsTechnical ScreenThis problem tests the ability to efficiently find the k largest elements in an unsorted array using heap-based data structures to optimize for cases where k is significantly smaller than the input size.
J.P. MorganSoftware Engineer IICoding & AlgorithmsOnsiteThis problem tests your ability to derive recurrence relations for combinatorial tiling, solve infinite series limits, and calculate exact probabilities using combinations.
J.P. MorganData ScientistCoding & AlgorithmsOnsiteAssign modules with given difficulty values to three non-empty servers so that the smallest value of |d1 - d2| + |d2 - d3|, over one module picked from each server, is as large as possible. Tests max-min reasoning over partitions, the role of the middle server, and handling of duplicates and large values.
J.P. MorganSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question tests the ability to trade space for time by using a hash map to achieve linear time complexity when finding a pair of elements that satisfy a target sum.
J.P. MorganSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates the ability to simulate a 2-D game board and maintain dynamic state invariants, testing array manipulation, state-tracking, and detection of uniform rows and columns under bottom-insert semantics.
Jane StreetMachine Learning EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates simulation and algorithmic problem-solving skills, focusing on state maintenance for an unbounded grid, efficient detection of k-in-a-row runs in rows and columns, and handling column-wise shifts that can produce simultaneous winners.
Jane StreetSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates a candidate's ability to model and manipulate indentation-based hierarchical structures, maintain nested visibility state for collapsed blocks, and map between original file lines and dynamic display numbering.
Jane StreetMachine Learning EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates implementation skills for efficient algorithms and data structures to manage a sparse, unbounded grid with gravity and to detect N-in-a-row runs both vertically and horizontally.
Jane StreetMachine Learning EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates skills in string parsing, tree serialization/deserialization, and bijective substitution cipher handling, assessing competency in parsing nested structures, character mapping, and traversal within the Coding & Algorithms domain.
Jane StreetSoftware EngineerCoding & AlgorithmsTechnical ScreenEvaluate arithmetic expressions with a supplied decomposition helper, rejecting nonpositive or fractional intermediate results and preserving exact integer division.
Jane StreetSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates a candidate's ability to model and maintain ordered field layouts by computing and updating byte offsets, testing competencies in dynamic sequence data structures, cumulative offset tracking, and efficient update/query operations.
Jane StreetFrontend EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates proficiency in data structures, algorithm design, state management, and API design for game mechanics, focusing on board representation, move operations, win detection, and undo/redo functionality.
Jane StreetSoftware EngineerCoding & AlgorithmsOnline AssessmentImplement a fixed-capacity circular buffer (ring buffer) supporting constant-time FIFO operations using wraparound indexing.
Jane StreetSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates understanding of stateful data structures, deterministic order-matching logic, and time-ordered reconciliation of transaction logs, focusing on correct handling of pricing, tie-breaking, and re-opened inventory.
Jane StreetMachine Learning EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates probabilistic reasoning and optimal stopping competency, testing understanding of Markov decision processes, expected-value calculations, and risk trade-offs in stochastic processes.
Jane StreetQuantitative TraderCoding & AlgorithmsOnsiteDesign an incremental PnL tracking engine that efficiently aggregates realized and unrealized profit-and-loss across overlapping predicate views under high-frequency trade and price tick updates.
Jane StreetSoftware EngineerCoding & AlgorithmsOnsiteWrite a parser and evaluator for arithmetic formulas that describe splitting a prize pool into whole-unit shares, where every intermediate computed amount must be a positive whole number or the entire formula is rejected. Tests recursive-descent parsing combined with evaluation rules where a single bad step invalidates the whole result.
Jane StreetSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates the ability to construct arithmetic expressions from a multiset of numbers and reason about combinatorial search, operator composition, parenthesization, and exact rational arithmetic under constraints.
Jane StreetSoftware EngineerCoding & AlgorithmsTechnical Screen