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 91–120 of 3276 results
This problem tests SQL data aggregation skills with NULL handling and algorithmic proficiency in dynamic programming to count palindromic subsequences in a string.
AmazonSoftware EngineerCoding & AlgorithmsTechnical Screen- Build a BFS Web CrawlerMedium
This question evaluates understanding of breadth-first traversal, URL normalization, domain scoping, duplicate detection, and retry/error handling, measuring algorithmic design and robustness in networked code.
AmazonSoftware EngineerCoding & AlgorithmsTechnical Screen This problem tests your ability to design an in-memory inverted index for text retrieval, requiring efficient tokenization, case-insensitive mapping, and dynamic updates to a collection of sentences.
AmazonSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests your ability to design a cache with O(1) time complexity for both get and put operations by combining a hash map with a doubly linked list.
AmazonSoftware EngineerCoding & AlgorithmsHR ScreenThis problem tests your ability to use a greedy approach combined with a frequency map to construct the lexicographically largest sequence under specific constraints.
AmazonSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question tests string manipulation, modular arithmetic, and the ability to optimize performance by trading space for time using a precomputed lookup table.
AmazonSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates programming fluency in numerical data processing and algorithmic implementation for computing moving averages and handling edge cases in time-series sequences, and it applies to Data Scientist roles while falling under the Coding & Algorithms category.
AmazonData ScientistCoding & AlgorithmsOnsiteThis question evaluates a candidate's ability to reason about circular arrays, distance computations, and query-efficient algorithms, assessing concepts such as modular indexing and cumulative distances.
AmazonSoftware EngineerCoding & AlgorithmsTechnical ScreenTests string manipulation and two-pointer traversal techniques to verify if a string is a palindrome while ignoring non-alphanumeric characters and case.
AmazonSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates understanding of graph algorithms, reachability, and algorithmic complexity by determining whether adding a directed edge would introduce a cycle in an otherwise acyclic directed graph.
AmazonApplied ScientistCoding & AlgorithmsTechnical Screen- Check path in N-ary treeMedium
This question evaluates understanding of tree traversal and sequence matching in N-ary trees, including handling non-unique node values and maintaining traversal state across branches.
AmazonSoftware EngineerCoding & AlgorithmsOnsite This question evaluates a candidate's ability to work with circular array structures and prefix sums to compute shortest distances on a ring topology. It tests practical coding skill in efficiently handling wraparound arithmetic and cumulative sums, a common pattern in algorithm interviews assessing array manipulation and optimization under scale constraints.
AmazonSoftware EngineerCoding & AlgorithmsOnline Assessment- Compute Edit DistanceMedium
Tests dynamic programming and string manipulation by calculating the minimum number of single-character edits (insertions, deletions, substitutions) needed to transform one string into another.
AmazonSoftware EngineerCoding & AlgorithmsTechnical Screen This question evaluates parsing and processing of timestamped event logs to compute message latencies and implementation of constrained grid path search, testing competencies in file I/O, record alignment/matching, time-delta computation, graph traversal, and stateful backtracking.
AmazonSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates algorithm design and data-structure skills—frequency counting, hashing, and handling edge cases such as ties and a no-mode rule—within the coding and algorithms domain for data scientist roles.
AmazonData ScientistCoding & AlgorithmsTechnical ScreenThis question evaluates algorithmic efficiency in array processing, specifically reasoning about nearest-smaller relationships and the use of auxiliary structures to achieve subquadratic performance.
AmazonSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates a candidate's understanding of graph traversal concepts, grid-based state propagation, and reachability analysis in time-evolving systems.
AmazonSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates a candidate's understanding of greedy and resource-allocation strategies along with combinatorial reasoning to maximize operations under discrete constraints.
AmazonSoftware EngineerCoding & AlgorithmsOnline AssessmentThis two-part question evaluates array manipulation and optimization skills—specifically range-update minimization to enforce a nondecreasing sequence and greedy pairing/matching to maximize summed primary resources—testing algorithm design, complexity reasoning, and constraint handling.
AmazonSoftware EngineerCoding & AlgorithmsOnline AssessmentThis interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Compute optimal locker placement with obstacles states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
AmazonSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates a candidate's competency in temporal interval reasoning, event-stream processing, and handling incomplete or unsorted logs to determine peak concurrent occupancy.
AmazonSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates array-manipulation and algorithmic problem-solving skills, focusing on computing a product-for-each-index using prefix and postfix accumulation concepts while reasoning about edge cases such as zeros, negative numbers, and integer overflow.
AmazonSoftware EngineerCoding & AlgorithmsOnsiteThis prompt evaluates integer reachability and invariant reasoning via repeated additive transformations (testing number-theoretic reachability and state-space analysis) alongside resource-aware scheduling and grouping logic for minimizing completion time under type and memory constraints, and it falls under the Coding & Algorithms domain.
AmazonSoftware EngineerCoding & AlgorithmsOnline AssessmentThis interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Compute shortest path with obstacles states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
AmazonSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to maintain dynamic statistics in a data stream using efficient data structures to achieve logarithmic insertion and constant-time retrieval.
AmazonSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests your ability to manage overlapping time intervals efficiently, requiring an understanding of sorting or priority queues to track resource utilization.
AmazonSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to use greedy strategies combined with efficient data structures to manage resource allocation and optimize revenue based on priority-based demand.
AmazonSoftware EngineerCoding & AlgorithmsTechnical Screen- Compute tree diameterMedium
This question evaluates understanding of binary tree algorithms, recursion versus iterative traversal strategies, and competence in algorithmic analysis including time and space complexity and handling deep-recursion stack overflow when computing a tree's diameter.
AmazonSoftware EngineerCoding & AlgorithmsTechnical Screen This question tests the ability to traverse an undirected graph using graph search algorithms to identify and count disjoint subgraphs.
AmazonSoftware EngineerCoding & AlgorithmsTechnical ScreenTests data manipulation, hash set/map aggregation, and date deduplication to identify users with repeat visits across distinct calendar days.
AmazonSoftware EngineerCoding & AlgorithmsTechnical Screen