practice a little every day, paws crossed ♡
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 1291–1320 of 3640 results
- GeMediumSoftware EngineerMinimize total distance to a store
This pair of problems evaluates algorithmic problem-solving skills, focusing on spatial optimization with Manhattan distances for grid-based demand aggregation and sequential penalty minimization on binary time-series data, emphasizing reasoning about aggregation and trade-offs.
Coding & AlgorithmsOnsite - GeicoHardSoftware EngineerSolve Refueling and JSON Parsing Tasks
This problem tests greedy strategies for path optimization and recursive descent parsing techniques for custom data structures.
Coding & AlgorithmsOnsiteGreedyPriority QueueRecursive Descent - GeminiMediumData ScientistDetect k events in a sliding window
This question evaluates a candidate's ability to design efficient sliding-window and streaming algorithms for time-series event data, encompassing deduplication, handling bounded out-of-order arrivals and clock skew, distinct-device counting, and meeting specified time and space complexity constraints.
Coding & AlgorithmsOnsite - GeneralmotorsMediumSoftware EngineerMeet a 10-second latency and 99% availability target across 3-5 dependent services
An open-ended design discussion about an application that calls three to five dependent services and must keep latency under 10 seconds and availability at 99% or better. It tests objective definitions, availability and tail-latency math, timeouts, retries, fallbacks, and adapting as requirements change.
System DesignOnsite - GigaMediumSoftware EngineerDesign an Agentic Ticket Support System
This question evaluates a candidate's ability to design ML-driven production systems that combine agentic AI, browser-based automation for services without an API, and external user-data APIs to produce personalized support responses.
ML System DesignOnsite - Gimlet LabsMediumMember of Technical Staff, ML SystemsDesign CPU-Cycle Window Alignment for Misaligned Time Series
Define and implement a precise windowing contract for two misaligned CPU-cycle time series using piecewise-linear interpolation, monotone scanning, explicit boundary behavior, and optional interval integration.
Software Engineering FundamentalsOnsite - Gimlet LabsMediumMember of Technical Staff, ML SystemsDesign a Text-to-Image Retrieval System
Design permission-aware text-to-image retrieval with safe ingestion, multimodal embeddings, metadata filtering, approximate search, reranking, relevance evaluation, versioned updates, deletion, and duplicate control.
ML System DesignOnsite - Gimlet LabsMediumMember of Technical Staff, ML SystemsDesign an Offline Inference Platform with Hardware-Aware Routing
Design an offline large-model inference platform that routes prefill and decode across profiled hardware pools while balancing deadlines, fairness, batching, transfer cost, retries, and utilization.
ML System DesignOnsite - Gimlet LabsMediumMember of Technical Staff, ML SystemsImplement an LRU Cache
This problem tests the ability to combine a hash map with a doubly linked list to achieve O(1) performance for cache operations.
Coding & AlgorithmsOnsiteHash MapLinked ListCaching - GleanMediumMachine Learning EngineerAI-Paired Rate-Limited Wikipedia Crawler That Prioritizes Unseen Title Initials
Pair with an AI coding assistant to build a rate-limited Wikipedia crawler that first crawls pages whose title initial has not yet been covered, then crawls randomly once all 26 letters are done. Tests frontier design, link normalization, rate limiting and disciplined use of AI-generated code.
Software Engineering FundamentalsOnsite - GleanMediumFrontend EngineerBuild a React Social Feed with Upvote/Downvote Re-Sorting and Pinned Posts
Build a React social feed where upvotes and downvotes re-sort posts by score in descending order and pinned posts stay at the top. Tests state design and immutable updates, correct vote-toggle arithmetic, deterministic ordering, accessibility and optimistic persistence with rollback.
Software Engineering FundamentalsOnsite - GleanMediumMachine Learning EngineerDecide If a Passenger Can Reach a Station Using Time-Indexed Train Routes and Transfers
Given trains described as time-indexed lists of stations, decide whether a passenger starting at one station at time zero can reach another by riding, waiting and transferring. Tests modeling station and time as search states, handling waits and same-time transfers, and breadth-first search over a time-expanded graph.
Coding & AlgorithmsOnsite - GleanMediumSoftware EngineerDelete the Fewest Parentheses to Balance a String of Only Open and Close Brackets
Given a string of only open and close parentheses, delete the fewest characters so the rest is balanced and return the resulting string, using standard left-to-right matching to define a unique answer. Tests bracket matching, linear-time scanning and careful handling of leftover unmatched characters.
Coding & AlgorithmsOnsite - GleanMediumMachine Learning EngineerDesign Employee-to-Employee Distance
This question evaluates competencies in ML system design, similarity and representation modeling, feature and data engineering, scalable low-latency serving architectures, and privacy, fairness, and evaluation practices.
ML System DesignOnsite - GleanMediumFrontend EngineerDesign Real-Time Typeahead for Enterprise Search: History, People, Docs, Apps, Filters
Design real-time typeahead for an enterprise search product that suggests past searches, people, documents, apps and filters as the user types. Tests client request policy and stale-response handling, accessible combobox UI, permission-aware backend fan-out, blending across sources and latency budgets.
System DesignOnsite - GleanMediumSoftware EngineerDesign a Test Strategy for a System That Counts the Leaves on a Large Tree
An open-ended testing scenario: design a test strategy for a system that counts the leaves on a large tree. Tests clarifying an ambiguous system, finding a test oracle, functional and boundary cases, scale and robustness testing, and setting release criteria for counts that may be estimates.
Software Engineering FundamentalsOnsite - GleanMediumMachine Learning EngineerDesign a Work-Together Distance Between Any Two Employees of a Company
Design a learned distance between any two employees of a company that reflects how much they actually work together. Tests ML framing without ground-truth labels, collaboration signals and their normalization, link-prediction training, evaluation, privacy and serving at company scale.
ML System DesignOnsite - GleanMediumData ScientistExpectation and Variance of a Sum of Two Random Variables, Including Covariance
Asks how to compute the expectation and variance of the sum of two random variables, in general and when they are independent. Tests derivation from definitions, the role of covariance, generalizing to weighted sums and differences, and applying the result to data-science problems such as comparing group means.
Statistics & MathOnsite - GleanMediumMachine Learning EngineerFind Earliest Train Route
This question evaluates a candidate's ability to model and search time-dependent transit networks, combining temporal graph reasoning, state-space search, and path reconstruction for itinerary reporting.
Coding & AlgorithmsOnsite - GleanMediumSoftware EngineerFind Which Words From a List Can Be Traced Through Adjacent Cells of a Letter Grid
Given a letter grid and a list of words, return every word that can be spelled by a path of edge-adjacent cells without reusing a cell, sorted lexicographically. Covers the single-word search and its many-words follow-up, and tests backtracking and pruning on a large word list.
Coding & AlgorithmsOnsite - GleanMediumSoftware EngineerFind the k-th Largest Value Across Two Sorted Arrays Without Fully Merging Them
Given two arrays sorted in non-decreasing order and an integer k, return the k-th largest value among all their elements, counting duplicates separately. Tests reasoning about ranks across two sorted sequences, careful handling of empty arrays and duplicates, and moving past a linear scan toward logarithmic time.
Coding & AlgorithmsOnsite - GleanMediumSoftware EngineerGroup Words into Transitive Synonym Sets by Shared Two-Words-Before-and-After Context
Given a list of sentences, treat two words as synonyms when they share the same two words before and two words after, close the relation transitively, and return every synonym group in a canonical sorted order. Tests context hashing, union-find or connected components, and exact output formatting.
Coding & AlgorithmsOnsite - GleanMediumSoftware EngineerHow a Tester Prioritizes and Organizes Work Under Project Deadline Pressure
A behavioral question for a QA engineer: how you handle and organize testing work when a project deadline creates pressure. Tests risk-based prioritization, use of automation and collaboration, transparent communication of remaining risk, and a structured STAR answer with measurable results.
Behavioral & LeadershipOnsite - GleanEasyData ScientistHow to measure product success?
This question evaluates a data scientist's competency in product analytics, metric definition, experiment design, and causal inference, including articulation of a north-star metric, supporting funnel and guardrail metrics, and handling confounding, seasonality, and heterogeneous effects.
Analytics & ExperimentationOnsite - GleanMediumSoftware EngineerImplement 2048 Board Tilts in Four Directions with Merging and Game-Over Detection
Implement the move logic of the 2048 sliding-tile game on a 4x4 board: slide and merge tiles for left, right, up and down swipes so each tile merges at most once, then decide when no swipe can change the board. Tests edge-case precision, code reuse across directions and a correct game-over rule.
Software Engineering FundamentalsOnsite - GleanMediumMachine Learning EngineerImplement Rate-Limited Wikipedia Crawler
This question evaluates a candidate's ability to implement a rate-limited web crawler, testing skills in crawl frontier management, prioritization by page-title initial, deduplication, rate limiting, and robust error handling.
Coding & AlgorithmsOnsite - GleanMediumFrontend EngineerImplement Two-Player Connect Four on a 6x7 Board with Win and Draw Detection
Implement two-player Connect Four on a 6x7 board: drop discs into columns, detect four in a row in every direction, handle full columns and draws, and render a playable interface. Tests clean separation of game logic from UI, efficient win checks from the last move and careful edge handling.
Software Engineering FundamentalsOnsite - GleanMediumSoftware EngineerImplement a Byte-Pair Encoding Tokenizer: Threshold Training, Encode and Decode
Implement a byte-pair encoding tokenizer with train, encode and decode, where training repeatedly merges the most frequent adjacent token pair whose count reaches a threshold, breaking ties lexicographically. Tests precise reading of the merge rules, round-trip correctness and the complexity of training on long text.
Software Engineering FundamentalsOnsite - GleanMediumData ScientistProduct Case: Define Success Metrics for a Product, Using Enterprise Search as Example
A data scientist product case: define how to measure the success of a product, practiced on an enterprise search tool. Tests building a metric hierarchy with a north star, input metrics and guardrails, separating users from paying customers, defining a successful search and attributing changes causally.
Analytics & ExperimentationOnsite - GleanMediumSoftware EngineerRank Every Cell of a Distinct-Value Matrix Consistently Within Its Row and Column
Replace every value in a matrix of distinct integers with the smallest rank such that larger values outrank smaller ones within each row and column. Tests processing values in sorted order, tracking per-row and per-column state, and the one-dimensional special case.
Coding & AlgorithmsOnsite