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 2311–2340 of 3276 results
This question evaluates proficiency with set operations and similarity metrics (Jaccard), scalable algorithm design and complexity analysis for large datasets, and the ability to handle streaming updates and deterministic tie-breaking.
PinterestData ScientistCoding & AlgorithmsOnsiteFind minimum shuttle transfers evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
PinterestSoftware EngineerCoding & AlgorithmsOnline AssessmentTests dynamic programming and breadth-first search techniques to find the minimum number of coin denominations required to reach a target value, including edge cases like zero and unreachable sums.
PinterestSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests your ability to efficiently query a list of strings to find the first occurrence that matches a given prefix, focusing on optimal space-time tradeoffs using tree-based or map-based indexing.
PinterestMachine Learning EngineerCoding & AlgorithmsOnsiteThis problem tests your ability to generate the Cartesian product of multiple lists, a fundamental task in grid search for hyperparameter tuning.
PinterestMachine Learning EngineerCoding & AlgorithmsTechnical ScreenThis problem tests graph traversal algorithms and efficient membership checking within a directed acyclic graph (DAG) representing hierarchical organizational permissions.
PinterestMachine Learning EngineerCoding & AlgorithmsOnsiteThis question evaluates proficiency in randomized algorithms and probabilistic sampling, with emphasis on numerical precision, large-weight handling, and memory-versus-accuracy trade-offs. Commonly asked in Coding & Algorithms interviews for data-science roles, it assesses practical application ability grounded in conceptual understanding of numerical stability and relevant data-structure choices.
PinterestData ScientistCoding & AlgorithmsOnsiteThis question evaluates competency in streaming algorithms, dynamic data structures for maintaining top-K elements in real time, and scalability considerations for handling large or distributed input streams.
PinterestData ScientistCoding & AlgorithmsOnsiteThis question evaluates algorithmic problem-solving and basic number-theory competency by requiring generation of prime numbers with attention to correctness and performance characteristics.
PinterestData ScientistCoding & AlgorithmsOnsiteImplement weighted random selection from scratch and compute delete-1 jackknife estimates of parameter bias and standard error for an arbitrary statistical estimator.
PinterestData ScientistCoding & AlgorithmsTechnical ScreenThis question evaluates a candidate's ability to implement a constant-time LRU cache and reason about thread-safety and concurrent access, testing data structure design and concurrency competencies in the Coding & Algorithms domain.
PinterestData ScientistCoding & AlgorithmsOnsiteDesign and implement a memory-efficient sparse matrix class supporting entry retrieval, updates, addition, and matrix multiplication.
PinterestMachine Learning EngineerCoding & AlgorithmsTechnical ScreenDesign an interactive autocomplete system that tracks query frequencies, returns the top 3 ranking prefix matches per keystroke, and commits completed queries to dynamic history.
PinterestMachine Learning EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates a candidate's competency in data structures (priority queues/min-heaps), online algorithm design for stream processing, and complexity and memory analysis.
PinterestSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates competency in designing and implementing efficient dynamic interval data structures, handling correctness for duplicate and nested intervals, extending APIs with cancellation and point queries, and performing rigorous worst-case time/space analysis and resource-adaptation.
PinterestData ScientistCoding & AlgorithmsTechnical ScreenThis problem tests your ability to implement weighted random sampling from an array, focusing on probability distribution handling and efficient selection algorithms.
PinterestData ScientistCoding & AlgorithmsTechnical ScreenThis problem tests your ability to design a memory-efficient representation for sparse matrices and implement arithmetic operations while leveraging the sparsity of the data.
PinterestSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates streaming I/O and buffered string-processing competency for Part 1 and transaction netting with balance computation for Part 2, covering skills in memory-bounded parsing, data-structure bookkeeping, and algorithmic flow reasoning.
PinterestSoftware EngineerCoding & AlgorithmsOnsiteImplement multiplyStrings(a, b) to multiply two non-negative integers given as decimal strings, returning the product as a string without any big-integer or arbitrary-precision library. The solution covers grade-school O(n*m) long multiplication with linear memory, the Karatsuba and FFT/NTT scaling alternatives, correct carry and leading/trailing-zero handling, and a full edge-case test plan.
PinterestSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates proficiency in string-based numeric processing, arbitrary-precision arithmetic concepts, precise rounding rules including deterministic tie-breaking, and handling of sign and decimal edge cases, and falls under the Coding & Algorithms domain.
PinterestMachine Learning EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to implement a space-efficient Trie data structure capable of storing strings along with associated weights to return top-k suggestions for a given prefix.
PinterestMachine Learning EngineerCoding & AlgorithmsOnsiteThis problem tests your ability to implement efficient weighted random selection, specifically focusing on cumulative distribution functions and binary search to achieve optimal query performance.
PinterestData ScientistCoding & AlgorithmsTechnical ScreenTests backtracking with operator precedence handling and operand formatting to construct all valid arithmetic expressions evaluating to a target value.
PinterestSoftware EngineerCoding & AlgorithmsOnsiteTests backtracking and state tracking with operator precedence to evaluate and enumerate arithmetic expressions using addition and multiplication.
PinterestSoftware EngineerCoding & AlgorithmsOnsiteDetermine all unassigned experiment bucket IDs in the range [0, total_buckets - 1] given lists of control and treatment bucket allocations.
PinterestSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests array manipulation, heap-based tree traversal, and stable partitioning techniques while requiring memory efficiency without modifying the original input.
PinterestSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates understanding of interval scheduling and resource optimization, focusing on reasoning about time intervals and conflict-free selection of tasks.
PinterestData ScientistCoding & AlgorithmsOnsiteTests breadth-first search and graph modeling skills by finding the shortest path across overlapping collections without constructing a dense graph between every pair.
PinterestSoftware EngineerCoding & AlgorithmsOnsiteImplement a deterministic rebalancing algorithm that redistributes entities among experiment buckets to meet exact target counts while minimizing reassignments and applying canonical tie-breaking.
PinterestSoftware EngineerCoding & AlgorithmsTechnical ScreenTests graph modeling, depth-first search (DFS), and Hierholzer's algorithm to construct an Eulerian path with lexicographical tie-breaking.
PinterestSoftware EngineerCoding & AlgorithmsOnsite