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 1351–1380 of 3276 results
This question evaluates understanding of inversion counting in permutations, testing algorithmic problem-solving, complexity analysis, and data-structure reasoning about pairwise order relations.
Hudson River TradingData ScientistCoding & AlgorithmsTechnical ScreenThis problem tests your ability to model state transitions over discrete time steps and efficiently track interval coverage using sorting and sweep-line logic.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests proficiency with hash sets to achieve linear time complexity and emphasizes defensive programming practices like input validation and immutability.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenAn object on a grid changes direction whenever a timestamped action arrives and moves one cell per time unit until a blocked cell or the grid edge stops it. The task asks for its cell at a given end time, testing precise reading of the rules, including that dot cells are obstacles, and efficient handling of very large timestamps.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenImplement a function that formats a signed integer with a custom thousands separator character without relying on built-in string formatting utilities.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to safely parse binary data streams from raw memory buffers and implement a type-safe generic wrapper around standard associative containers.
Hudson River TradingQuantitative ResearcherCoding & AlgorithmsOnline AssessmentThis question evaluates a software engineering competency in modifying and extending a C++ client/server trading system, focusing on state management, input validation, API integration, and maintaining invariants for order lifecycle.
Hudson River TradingSoftware EngineerCoding & AlgorithmsOnsiteDetermine the maximum number of items that can be purchased from a suffix of an item array within a given budget for multiple independent queries.
Hudson River TradingSoftware EngineerCoding & AlgorithmsHR ScreenImplement an algorithm to extract the k smallest integers from an unsorted list in ascending order, preserving duplicates, and analyze the trade-offs between sorting, heaps, quickselect, and bounded-range approaches.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenTests simulation logic, two-pointer state management, turn alternation, and handling conditional decision rules with edge cases.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenSimulate the movement and freezing of players on a 1D track under the gaze of a moving watcher who reverses direction at specified times.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenOnline assessment coding problem: street lamps on a number line each light a closed interval around their position, and you must return the integer point lit by the most lamps, choosing the smallest such point on ties. It tests interval overlap counting over very large coordinate ranges.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates event-driven simulation and discrete-time state modeling for tracking multiple agents under dynamic visibility constraints, together with low-level numeric string conversion and edge-case handling for 32-bit signed integers.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates a candidate's ability to design concise, robust test cases and translate edge-case reasoning into concrete inputs and expected outputs for array and string problems, reflecting skills in input validation, correctness assurance, and handling varied data characteristics.
Hudson River TradingSoftware EngineerCoding & AlgorithmsTechnical ScreenTests string traversal, run-length counting, and greedy optimization to determine the minimum character replacements needed to eliminate adjacent identical characters across a list of words.
IBMSoftware EngineerCoding & AlgorithmsOnline AssessmentSell each VM unit at its current inventory count, always choose a type with maximum inventory, and compute total revenue safely.
IBMSoftware EngineerCoding & AlgorithmsOnline AssessmentA simulation problem about an access system where each employee's access lasts a fixed duration after every setting and can be extended only while it is still active. It asks how many employees hold valid access at the last timestamp, testing exact expiry boundaries, permanent lapses and per-employee state.
IBMSoftware EngineerCoding & AlgorithmsTechnical ScreenA counting problem that asks how many triplets of positions in an integer array have a spread, the largest value minus the smallest, of at most d. It tests handling duplicates and inclusive bounds, producing a count that can exceed 32 bits, and meeting time limits for arrays of up to 100,000 elements.
IBMSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to identify and process consecutive character runs in strings and apply greedy calculations to minimize replacement operations.
IBMSoftware EngineerCoding & AlgorithmsOnline AssessmentCount how many trios of resale-marketplace seat listings have prices within a fixed budget spread of each other, using sorting and a two-pointer sweep instead of an O(n^3) scan.
IBMSoftware EngineerCoding & AlgorithmsTechnical ScreenCount how many groups of three readings stay inside a tolerance band (max minus min within a limit). Tests sorting, a sliding window, combinatorial counting and handling of duplicates and large totals.
IBMSoftware EngineerCoding & AlgorithmsTechnical ScreenCalculate distances from three fixed vertices to all other vertices in an unweighted tree and count those whose strictly positive distances form a Pythagorean triple.
IBMSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question tests proficiency with the sliding window technique and hash map-based frequency tracking, applied to subarray problems requiring exact cardinality constraints. It assesses the ability to distinguish between "exactly k distinct" and "at most k distinct" variants — a nuance that reveals depth in algorithmic thinking commonly evaluated in software engineering interviews.
IBMSoftware EngineerCoding & AlgorithmsTechnical ScreenA coding question about an IDE-style signature lookup engine: given registered functions, some whose last parameter is variadic, return for each call the sorted names of every function that accepts its argument types. It tests exact type-sequence matching, zero-or-more variadic arguments and edge cases such as empty argument lists.
IBMSoftware EngineerCoding & AlgorithmsTechnical ScreenDesign an authentication token manager that handles token generation, renewal, and active token counting based on a fixed time-to-live.
IBMSoftware EngineerCoding & AlgorithmsOnline AssessmentThis problem tests your ability to efficiently manage and update a dynamic collection of items using a priority queue to always extract the maximum value.
IBMSoftware EngineerCoding & AlgorithmsOnline AssessmentTests greedy optimization, sorting, and arithmetic progression math to compute maximum revenue from diminishing-value stock with large order quantities.
IBMSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates proficiency in string manipulation, combinatorial character-count reasoning, and redistribution of characters under constrained swap operations within the Coding & Algorithms domain.
IBMSoftware EngineerCoding & AlgorithmsTechnical ScreenCalculate the total sum of remainders obtained by taking each integer in a dividend range modulo each non-zero divisor in a divisor range. The problem tests division properties, edge-case handling for zero divisors, and avoiding integer overflow.
IBMSoftware EngineerCoding & AlgorithmsOnline AssessmentTests bitwise frequency analysis and arithmetic optimization by reducing an O(N * M) cross-product XOR sum to an O(B * (N + M)) bit-by-bit contribution calculation.
IBMSoftware EngineerCoding & AlgorithmsOnline Assessment