practice a little every day, paws crossed ♡
Coding & Algorithms Interview Questions
Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.
- 9403
- Questions
- 546
- Companies
- 11
- Topics
- 8
- Languages
Showing 1261–1290 of 3276 results
- GoogleMediumSoftware EngineerReturn Words Matching a Typed Prefix
Practice a Google coding interview problem focused on return words matching a typed prefix. The prompt emphasizes edge cases, clean implementation, and verifiable test behavior without revealing the solution.
Coding & AlgorithmsOnsite - GoogleMediumSoftware EngineerReturn all binary search tree keys inside an inclusive range
Given a binary search tree in level-order form and an inclusive range of values, return every key in the tree that falls inside the range, in ascending order. Tests use of the search tree ordering, unbalanced trees, empty results and inclusive boundary handling.
Coding & AlgorithmsOnsite - GoogleMediumSoftware EngineerReturn dictionary words matching a prefix
This problem evaluates string-processing and filtering skills, focusing on exact prefix matching, case sensitivity, duplicate handling, and edge-case management over arrays of strings. Commonly asked in Coding & Algorithms interviews, it assesses practical implementation ability and understanding of algorithmic complexity at an implementation-level (basic to intermediate).
Coding & AlgorithmsTechnical Screen - GoogleMediumSoftware EngineerReturn the Lexicographically Smallest Two-Sum Index Pair
Find the lexicographically smallest pair of distinct indices whose array values sum to a target. Success depends on deterministic tie handling, duplicates, missing-result behavior, nonmutation, hash-based performance, and comparison with sorting-based alternatives.
Coding & AlgorithmsOnsite - GoogleMediumSoftware EngineerSchedule Priority Jobs with Cooldowns
Design a recurring job scheduler that selects the highest-priority eligible job and enforces cooldown periods measured by subsequent retrieval invocations.
Coding & AlgorithmsOnsiteheapdesignpriority-queue - GoogleMediumSoftware EngineerSearch a Pattern Across the Leaf Text of a Binary Tree
Tests binary tree traversal combined with streaming pattern matching (such as the Knuth-Morris-Pratt algorithm) to detect substrings across leaf boundaries without buffering the entire text in memory.
Coding & AlgorithmsOnsitebinary-treestring-matchingkmp - GoogleHardSoftware EngineerShuffle array using random integer API
This question evaluates understanding of randomized algorithms, uniform probability distributions over permutations, in-place array manipulation, and time/space complexity analysis within the Coding & Algorithms domain.
Coding & AlgorithmsTechnical Screen - GoogleMediumData ScientistSimulate Coin Flips to Determine Fairness via Empirical Distribution
This question evaluates a candidate's ability to perform simulation-based hypothesis testing by implementing Monte Carlo sampling and computing an empirical two-sided p-value from observed coin-flip counts, emphasizing statistical computation and numerical accuracy.
Coding & AlgorithmsOnsite - GoogleMediumData ScientistSimulate Uniform(0,1) from random bits
This Coding & Algorithms question for a Data Scientist evaluates understanding of randomized algorithms, bit-level representation of real numbers, and probabilistic error and time-complexity analysis, situated at an algorithmic and mathematical abstraction level that requires both conceptual design and quantitative reasoning.
Coding & AlgorithmsOnsite - GoogleMediumSoftware EngineerSimulate an In-Memory Directory Tree with mkdir, ls, Append and Read
A Google coding problem that simulates an in-memory file system through a sequence of mkdir, ls, add and read operations, with missing directories created on demand and existing files appended to. It tests tree modeling, path parsing, sorted directory listings and precise operation semantics.
Coding & AlgorithmsOther - GoogleMediumSoftware EngineerSimulate meeting-room bookings and return busiest room
This problem tests your ability to manage interval-based resource allocation using a priority queue and a frequency map to track usage statistics.
Coding & AlgorithmsOnsiteHeapSimulationGreedy - GoogleMediumSoftware EngineerSimulate room assignments for scheduled meetings
This problem tests your ability to manage resources over time using a priority queue and sorting, focusing on handling events and tie-breaking logic for room availability.
Coding & AlgorithmsTechnical ScreenSortingPriority QueueSimulation - GoogleMediumSoftware EngineerSliding Window Average After Dropping the Largest Values
This problem tests your ability to maintain order and perform efficient removals within a sliding window using balanced data structures or heaps.
Coding & AlgorithmsTechnical ScreenSliding WindowData StructuresHeaps - GoogleMediumSoftware EngineerSliding-Window Mean After Removing the Largest K Values
Maintain sliding-window means after removing the largest k occurrences, with duplicate-aware rebalancing, exact fractions, and bounded streaming state.
Coding & AlgorithmsTechnical Screen - GoogleMediumSoftware EngineerSolve Banana Speed and Interval Merge
Solve minimum eating speed and merge intervals for a new graduate phone screen. The solution covers binary search on answer, integer ceiling division, monotonic feasibility, interval sorting, overlap merging, correctness, complexity, and edge cases.
Coding & AlgorithmsTechnical Screen - GoogleMediumSoftware EngineerSolve Flower Placement and Directory Deletion
Implement algorithms for two interview tasks: minimal directory deletion in a hierarchical filesystem using tree traversal, and valid flower placement on a grid using constraint satisfaction.
Coding & AlgorithmsOnsiteTrieTreeBacktracking - GoogleMediumSoftware EngineerSolve Grid and Counting Problems
This question evaluates skills in grid-based graph traversal and connected-component detection for the island counting task, and combinatorial counting with multiset considerations for the target-word formation task.
Coding & AlgorithmsTechnical Screen - GoogleMediumSoftware EngineerSolve Quickselect, Tree Distance, and Prefix Substrings
This multi-part question evaluates algorithmic problem-solving across selection algorithms, graph/tree traversal, and string processing, testing competencies such as Quickselect behavior and pivot reasoning, computation of node distances in a tree, and prefix-based substring counting.
Coding & AlgorithmsOnsite - GoogleMediumSoftware EngineerSolve Rooms and Top-K Streams
Design an online resource scheduler that dynamically allocates compute rooms to incoming streaming sessions and tracks the top-k most active streams by cumulative duration.
Coding & AlgorithmsTechnical Screenheapinterval-schedulingdesign - GoogleMediumSoftware EngineerSolve Shortest Paths and Rental Allocation
This problem tests your ability to combine graph traversal (Dijkstra's) with greedy interval scheduling to optimize fleet distribution across multiple locations.
Coding & AlgorithmsOnsiteGraphsDijkstraGreedy - GoogleMediumSoftware EngineerSolve Three Array and Matrix Path Problems
Tests multi-paradigm algorithmic fluency across dynamic programming with auxiliary states, greedy interval coverage, and monotonic deque optimization for bounded subarrays.
Coding & AlgorithmsOnsiteDynamic ProgrammingGreedyMonotonic Deque - GoogleMediumSoftware EngineerSolve Two Coding Interview Problems
This question evaluates proficiency in parsing and expression evaluation, recursion/stack management, and string-processing for nested function-style arithmetic, alongside graph modeling, geometric distance reasoning, and traversal algorithms for the bomb chain-reaction scenario; the category is Coding & Algorithms.
Coding & AlgorithmsOnsite - GoogleMediumSoftware EngineerSolve array-sum and city-community problems
This question tests the ability to solve two distinct algorithmic patterns: using a prefix sum hash map to count subarrays with a target sum, and using flood fill to determine the size of connected components in a grid.
Coding & AlgorithmsTechnical ScreenHash MapPrefix SumDFS - GoogleHardSoftware EngineerSolve checksum and dependency debugging tasks
Validate feature configuration strings using modular polynomial checksums and resolve valid deployment sequences using dependency graph analysis and cycle detection.
Coding & AlgorithmsOnline Assessmentgraphtopological-sortstring-parsing - GoogleMediumSoftware EngineerSolve graph and linked list tasks
This problem tests your ability to model complex system dependencies as a directed graph and determine the minimum time to complete a set of tasks given sequential constraints.
Coding & AlgorithmsOnsiteGraphTopological SortDynamic Programming - GoogleMediumSoftware EngineerSolve matrix groups and recipe inventory
This problem tests your ability to manage hierarchical dependencies using topological sorting and perform block-wise aggregate computations on grid-based data structures.
Coding & AlgorithmsTechnical ScreenSliding WindowTopological SortGraphs - GoogleMediumSoftware EngineerSolve meeting-room scheduling and shortest paths
This problem tests your ability to manage overlapping intervals using a priority queue and calculate the shortest path in a DAG representing dependencies.
Coding & AlgorithmsOnsiteSortingPriority QueueGraph - GoogleHardSoftware EngineerSolve order-statistics and XOR-triplet problems
This problem tests your ability to use Fenwick trees for order statistics and the properties of prefix XORs to solve counting problems efficiently.
Coding & AlgorithmsOnsiteFenwick TreeBit ManipulationPrefix Sum - GoogleMediumSoftware EngineerSolve several coding interview problems
This problem tests your ability to perform string-based arithmetic and handle edge cases in digit-by-digit computation.
Coding & AlgorithmsTechnical ScreenStringsMathSimulation - GoogleHardMachine Learning EngineerSolve several streaming, DAG, and DP tasks
Implement an ML pipeline optimization engine that calculates critical path latency and peak parallelism for a task DAG, and optimizes streaming checkpoint placement under sliding-window constraints using dynamic programming.
Coding & AlgorithmsOnsiteDAGDynamic ProgrammingSliding Window