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 3181–3210 of 3276 results
Points land one at a time on the segment from 0 to 50, each contaminating an interval of length 1 around it; after each landing, report whether the whole segment is contaminated. Tests interval union maintenance, exact boundary handling and efficient updates.
WaymoSite Reliability EngineerCoding & AlgorithmsOnsiteSquare cakes sit on a table with sides parallel to its edges; find the lowest horizontal cut line that splits the total cake area equally, returned as an exact fraction. Tests sweeping over heights, piecewise-linear area accumulation and exact arithmetic.
WaymoSoftware EngineerCoding & AlgorithmsOnsiteFind an empty land cell in a 2D grid that minimizes the sum of shortest travel distances to all buildings without traversing through obstacles or other buildings.
WaymoSoftware EngineerCoding & AlgorithmsOnsiteBuild a structure over a word list that answers prefix queries, returning every distinct word that starts with each prefix in lexicographic order. Tests prefix-tree design, deduplication, and answering many queries without rescanning the whole list.
WaymoMachine Learning EngineerCoding & AlgorithmsOnsiteDerive uniform random sampling inside a unit disk, explain the radial distribution, and compare a polar sampler with rejection sampling.
WaymoData ScientistCoding & AlgorithmsTechnical ScreenApply the quadratic function a*x*x + b*x + c to every element of a sorted integer array and return the results in sorted order, where a may be negative or zero. Tests reasoning about the parabola's shape and merging values from both ends in linear time.
WaymoSoftware EngineerCoding & AlgorithmsOnsiteThis problem tests graph theory fundamentals by requiring the validation of a forest structure, specifically checking for cycle-free properties and valid parent-child node connectivity constraints.
WaymoSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates parsing of algebraic expressions, application of the distributive law, string manipulation, and algorithmic reasoning about time and extra-space complexity.
WeRideSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to implement fundamental algorithms, including caching mechanisms, probability transformations, and geometric counting patterns.
WeRideSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates understanding of expression parsing and algebraic expansion via the distributive property, along with skills in string manipulation, stack-managed state for nested parentheses, and time/space complexity analysis.
WeRideSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates competency in matrix multiplication, modular arithmetic, and exponentiation algorithms as applied to large-scale numeric computations such as sequence generation.
WeRideSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests the ability to manage nested structures using a stack to ensure that all opening brackets are closed in the correct order and type.
WeRideSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates the ability to transform unordered user action logs into a trie-like path tree, exercising skills in grouping and time-sorting per user, maintaining stable insertion order, counting distinct users per prefix, and producing deterministic preorder string output.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical Screen- Build a Tic-Tac-Toe AppMedium
This question evaluates proficiency in interactive UI development and stateful game logic, including turn management, board state representation, win/draw detection, input validation, and reset flow.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical Screen A string coding problem that asks whether a lowercase string can be turned into a palindrome by deleting at most one character, returning a boolean. It tests careful handling of mismatched characters, strings that are already palindromes, and an efficient solution for strings of up to 100,000 characters.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical Screen- Content Safety FilterMedium
Tests string tokenization, interval tracking, and Trie-based multi-word pattern matching to redact prohibited phrases from live-stream messages.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical Screen Process timestamped user activity logs to reconstruct chronological action sequences and count the frequency of user journey prefixes up to length k.
WhatnotSoftware EngineerCoding & AlgorithmsOnline AssessmentTests data structure design and algorithmic optimization for sparse vector operations, transitioning from standard array traversal to pointer-based or hash-based solutions that scale with non-zero elements.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical ScreenCalculate the number of distinct n-digit phone numbers reachable by standard chess knight moves on a numeric keypad, modulo 10^9 + 7.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical ScreenImplement a linear-time merge of two sorted arrays into a new sorted array using two pointers, preserving duplicates without modifying the input arrays.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical ScreenImplement an algorithm to repeatedly eliminate adjacent identical character pairs from a string until no adjacent duplicates remain, handling Unicode inputs in linear time.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical ScreenA string coding problem with two modes: repeatedly delete pairs of equal adjacent characters, or, as the follow-up, delete whole runs of equal adjacent characters, always the leftmost run first, and return what remains. It tests simulating cascading deletions efficiently and handling runs that merge after a deletion.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical ScreenThis question evaluates skills in string manipulation and pattern-removal algorithms for adjacent duplicates and k-sized group deletions, as well as array processing and merging techniques for producing sorted squares; it tests understanding of relevant data-structure concepts and merging/two-pointer strategies within the Coding & Algorithms domain. It is commonly asked to assess algorithmic efficiency, correctness under large input constraints and tricky edge cases (such as cascading deletions and negative values), and is primarily a practical implementation task that emphasizes complexity analysis over purely theoretical reasoning.
WhatnotSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests your ability to design an efficient data structure for performing fuzzy keyword lookups using edit distance constraints on a static corpus of strings.
WorkdaySoftware EngineerCoding & AlgorithmsOnsiteCount distinct ways to reach a target with unlimited coins, treating different orders of the same denominations as one combination.
WorldquantSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates understanding of caching and eviction policies and practical proficiency with data structures such as hash tables and ordered collections for tracking and updating recency.
XPengData EngineerCoding & AlgorithmsTechnical Screen- Implement Stable SoftmaxMedium
This question tests the ability to implement a numerically stable softmax function by handling potential floating-point overflows or underflows common in high-dimensional vector exponentiation.
XPengSoftware EngineerCoding & AlgorithmsTechnical Screen This problem tests your ability to use binary search on a sorted array to find a unique element where all other elements appear in identical pairs.
XiaohongshuSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests the ability to solve the 'best time to buy and sell stock' pattern in O(n) time and O(1) space, identifying the minimum price seen so far to calculate potential profit.
XiaohongshuSoftware EngineerCoding & AlgorithmsTechnical ScreenThis problem tests the ability to maintain dynamic statistics in a data stream using efficient data structures to achieve optimal insertion and retrieval times.
XiaopengSoftware EngineerCoding & AlgorithmsTechnical Screen