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 691–720 of 3276 results
This question evaluates familiarity with shell scripting for reproducible data-science workflows, Python object-oriented design including transformer patterns (fit/transform separation), outlier detection and imputation strategies, code-style critique, and unit testing competency.
Capital OneData ScientistCoding & 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 Explain Shell Script for Python Virtual Environment Setup states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Capital OneData ScientistCoding & AlgorithmsTechnical ScreenMatch a symbol pattern inside an integer matrix using per-window bijections, repeated values, distinct symbols, and ordered match coordinates.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentA coding problem that asks for the first element of an integer array whose left and right neighbors are both strictly larger than it, returning -1 when no element qualifies. It tests careful boundary handling, strict comparisons when neighbors are equal, and precise output rules.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentEach security camera covers a symmetric band of rows around its mounted position; find the integer row watched by the most cameras, breaking ties toward the smallest row number, using a sweep-line count instead of scanning every covered row.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentLocate a pattern grid inside an integer matrix, where each pattern cell is either an exact number or a letter that must stand for one consistent value, and return the top-left corner of the match with the lowest row and then the lowest column. It tests two-dimensional scanning, variable binding, and tie-breaking rules.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates a candidate's ability to debug, test, and refactor Python code with attention to state management, mutable default arguments, deterministic unit testing, API design, and type-safety.
Capital OneData ScientistCoding & AlgorithmsTechnical ScreenA grid holds empty cells, fresh items and spoiled items, and each day spoilage spreads from every spoiled item to its edge-adjacent fresh neighbors. Given the grid and a number of days that may be very large, return the grid after exactly that many days. It tests simultaneous multi-source spreading, day-by-day timing, and unreachable cells.
Capital OneSoftware EngineerCoding & AlgorithmsHR ScreenThis question evaluates array-manipulation and interval-analysis skills, specifically in-place 2D matrix transformations (row/column swaps, reversals, rotations) and determining the point with maximum overlap among one-dimensional illumination intervals.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates a candidate's competence in concurrent programming, atomic state updates, and class-level account management for basic monetary operations.
Capital OneSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests string manipulation, simulation of grid-based gravitational collapse, and efficient combinatorial counting of string combinations.
Capital OneMachine Learning EngineerCoding & AlgorithmsOnline AssessmentThis multi-part question evaluates dynamic programming and state management for constrained grid traversal with left-to-right expression evaluation, alongside parity-based array analysis and combinatorial counting of contiguous subarrays.
Capital OneMachine Learning EngineerCoding & AlgorithmsHR ScreenThis question evaluates a candidate's competency in probabilistic expected-value optimization, algorithmic efficiency for large-scale inputs, and constrained combinatorial selection including grouped all-or-nothing decisions and cost modeling.
Capital OneData ScientistCoding & AlgorithmsOnsite- Place Pieces on a GridMedium
This question evaluates spatial reasoning, matrix and array manipulation, collision detection, and stateful simulation skills required to implement ordered placement of shaped pieces on a grid.
Capital OneSoftware EngineerCoding & AlgorithmsOnsite This question evaluates proficiency in code refactoring, robustness, input validation, unit testing, environment specification, and complexity analysis for Python data-processing workflows (pandas), within the Coding & Algorithms domain for Data Scientist roles.
Capital OneData ScientistCoding & AlgorithmsOnsiteThis problem tests your ability to manipulate singly linked lists, specifically handling edge cases like removing head nodes and reassigning pointers in a single pass.
Capital OneSoftware EngineerCoding & AlgorithmsTechnical ScreenRearrange a string by taking characters alternately from its front and its back: first, last, second, second-to-last and so on until every character is used once. Tests clean index handling for even and odd lengths and building the result efficiently for long inputs.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentThis problem tests string manipulation, two-pointer logic, and the ability to efficiently manage index traversal in both directions simultaneously.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates competence with binary tree structures, path enumeration and traversal techniques along with the ability to represent traversal results as formatted strings.
Capital OneMachine Learning EngineerCoding & AlgorithmsOnsiteImplement a ranking algorithm to evaluate sports competition matches, compute points, goal differential, and total goals for each team, and return the indices of the top two teams using multi-level tie-breakers.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentThis problem tests your ability to identify common pitfalls in data science pipelines, specifically concerning data leakage, handling missing values, and software engineering best practices for reproducibility.
Capital OneData ScientistCoding & AlgorithmsOnsiteThis question evaluates array and matrix manipulation, in-place algorithm design, interval processing (sweep-line) and interval merging skills, testing competencies in algorithm design, complexity analysis, and robust edge-case reasoning within the Coding & Algorithms domain.
Capital OneMachine Learning EngineerCoding & AlgorithmsOnline AssessmentA grid simulation question about an orchard of rotten trees, healthy trees and empty ground, where each day rot spreads at once from every rotten tree to the healthy trees directly beside it. It asks for the orchard after a given number of days and tests simultaneous updates, blocked cells and very large day counts.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentA coding exercise that simulates a bank's in-memory ledger: apply an ordered sequence of transfers, deposits and withdrawals across numbered accounts and report which requests succeed. It tests careful validation of account numbers and balances, ordered state updates, and 64-bit arithmetic.
Capital OneSoftware EngineerCoding & AlgorithmsOtherThis problem tests array indexing manipulation and logic for stateful resource allocation, specifically handling circular queues with dynamic availability constraints.
Capital OneMachine Learning EngineerCoding & AlgorithmsOnline AssessmentThis multi-part coding question evaluates array manipulation, algorithm simulation, deterministic spatial placement, and constrained optimization competencies across tasks involving cumulative thresholds, iterative subtraction sequences, fixed-shape grid placement, and minimal-increment adjustments for monotonic patterns.
Capital OneMachine Learning EngineerCoding & AlgorithmsOnline AssessmentThis problem tests proficiency in string manipulation, grid traversal with condition-based movement, and linear-time subarray analysis.
Capital OneMachine Learning EngineerCoding & AlgorithmsOnline AssessmentThis multi-part question evaluates algorithmic problem-solving across frequency counting (equal-value pairs), simulation and in-place grid transformation (match-three gravity), matrix diagonal pattern checking, and interval/range data-structure management, emphasizing correctness under constraints and rigorous time/space complexity reasoning.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentThis multi-part prompt evaluates algorithmic problem-solving and core data-structure competencies such as array manipulation, modular/date arithmetic, matrix transformations, dynamic set and interval maintenance, string concatenation frequency counting, and path-based expression evaluation on grids.
Capital OneSoftware EngineerCoding & AlgorithmsOnline AssessmentGiven an integer array, put each consecutive pair of elements in ascending order while keeping every pair in its original place, and leave the final element untouched when the length is odd. Tests precise reading of a short specification and careful index handling.
Capital OneSoftware EngineerCoding & AlgorithmsOnline Assessment