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 751–780 of 3276 results
This problem tests your ability to design a token management system that supports efficient retrieval, updates, and lazy removal of expired tokens using a combination of a hash map and a priority queue.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates a candidate's ability to design and analyze dynamic data structures that support weighted random sampling with inserts and deletes, testing skills in algorithm design, complexity analysis, and randomized sampling under large numeric constraints.
CitadelSoftware EngineerCoding & AlgorithmsOnsiteA coding problem about memory blocks with values below n: using at most one increment of a single value, never raising a value to n, list every minimum excluded value (MEX) the array can end up with. It tests careful case analysis of how one increment can open or fill a gap, handling duplicate values, and returning the sorted answer efficiently.
CitadelSoftware EngineerCoding & AlgorithmsOnline AssessmentGiven n network ports each tagged with a priority code below n, find every value the lowest unused priority code could take after at most one bounded increment. Tests careful case analysis of how a single bump opens or closes a gap, and returning the answer efficiently.
CitadelSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates proficiency with interval manipulation, timeline merging, and algorithmic reasoning for scheduling constraints, measuring competency in handling sorted interval lists, edge-case sanitization, and complexity analysis.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenImplement an algorithm to find the first and last index of a target value in a sorted array in O(log n) time.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to navigate binary trees using recursion or iterative traversal while maintaining state to find a path that meets a specific sum criteria with the smallest number of nodes.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenGiven locker tags in [0, n-1], list every possible smallest missing tag after at most one capped +1 adjustment. Tests MEX reasoning, careful case analysis around duplicates, and an O(n) solution.
CitadelSoftware EngineerCoding & AlgorithmsOnline AssessmentGenerate up to three lexicographically smallest product suggestions for every prefix of a search word, with efficient handling once a prefix has no matches.
CitadelSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates understanding of lazy evaluation and Python generator semantics, testing a candidate's ability to work with iterative sequence production and manage state across iterations.
CitadelData ScientistCoding & AlgorithmsTechnical ScreenThis problem tests your ability to design a generic cache structure that supports interchangeable eviction strategies, requiring efficient lookup and metadata management.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenImplement piecewise linear interpolation from unsorted knots, including exact-knot behavior and endpoint extrapolation. Practice paired sorting, binary search, and numerical edge cases.
CitadelData ScientistCoding & AlgorithmsTechnical ScreenThis question evaluates understanding of ring-buffer data structures, circular indexing, fixed-capacity storage, and object-oriented design for a single-producer, multi-consumer implementation in C++.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to design an in-memory data structure for an order book using efficient data structures to support order management and price-level aggregation.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to manipulate data structures efficiently, implement a fair process scheduler, and manage event-driven state transitions.
CitadelSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates knowledge of lazy evaluation, Python generators/iterators, merging nondecreasing streams with duplicate elimination, and considerations of time and space complexity in streaming contexts.
CitadelData ScientistCoding & AlgorithmsTechnical ScreenThis question evaluates a candidate's ability to design and implement efficient dynamic priority management, including priority ordering, insertion-order tie-breaking, and support for add, remove, and execute operations.
CitadelSoftware EngineerCoding & AlgorithmsOnsiteImplement two-pointer unique-pair sum search 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.
CitadelData ScientistCoding & AlgorithmsTechnical ScreenThis problem tests your ability to implement a recursive pattern-matching algorithm that handles specific wildcard characters while managing overlapping subproblems.
CitadelData ScientistCoding & AlgorithmsTechnical ScreenMaximize schedule earnings by changing at most k days off into working days, balancing fixed daily pay with bonuses for consecutive working days.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenTests dynamic programming and state tracking to maximize daily earnings and consecutive work streak bonuses under a budget of schedule changes.
CitadelSoftware EngineerCoding & AlgorithmsHR ScreenInterleave K drones' individually time-ordered altitude logs into a single replay and track the fleet's shared altitude total as each logged change is applied. Tests k-way merging with a heap, a deterministic tie-break across drones, and correct handling of negative deltas and drones with no events.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenMerge K price-event feeds, each already sorted by timestamp, into one chronological stream and return the running absolute price after every event, starting from zero. It tests merging sorted sequences efficiently, a deterministic tie-break for equal timestamps by feed index and then in-feed order, negative deltas, empty feeds, and 64-bit accumulation.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to efficiently merge multiple sorted streams of data and aggregate values associated with the same timestamp.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenTests string manipulation and two-pointer techniques to determine the minimum character replacements needed to make independent fixed-length blocks palindromic.
CitadelSoftware EngineerCoding & AlgorithmsHR ScreenThis question evaluates understanding of string algorithms and combinatorial reasoning, focusing on palindrome properties combined with k-periodicity and the ability to minimize character changes under global constraints.
CitadelSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates a candidate's competence in algorithm design and optimization, including interval-based cost aggregation and modular arithmetic for large-number results within the Coding & Algorithms domain.
CitadelSoftware EngineerCoding & AlgorithmsOnline AssessmentImplement an external merge sort simulation that partitions a data stream into memory-bounded sorted runs and merges them using a min-heap.
CitadelSoftware EngineerCoding & AlgorithmsOnsiteDesign an in-memory file system that shares identical content payloads across multiple file paths to save memory, supporting reads, writes, and deduplication tracking.
CitadelSoftware EngineerCoding & AlgorithmsTechnical ScreenImplement a deterministic topological sort for a directed acyclic graph of named tasks with cycle detection and lexicographical tie-breaking.
CitadelSoftware EngineerCoding & AlgorithmsTechnical Screen