Katkat

practice a little every day, paws crossed ♡

Machine Learning Engineer 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 301–330 of 351 results

  • SnapchatHardMachine Learning Engineer
    Design an Advertising or Recommendation Model End to End

    Design a recommendation model from labels and sampling through features, loss, ranking metrics, online experiments, and production debugging.

    ML System DesignOnsite
  • SnapchatMediumMachine Learning Engineer
    Design an ads ranking ML system

    This question tests the ability to design an end-to-end ads ranking pipeline, focusing on latency constraints, mitigation of position bias, and balancing multi-objective optimization.

    ML System DesignOnsiteAds RankingMulti-Task LearningSystem Design
  • SnapchatHardMachine Learning Engineer
    Design real-time top-K POI retrieval on maps

    This question evaluates a candidate's ability to design scalable, low-latency real-time retrieval and personalized ranking systems for geospatial data, testing competencies in spatial indexing and tiling, candidate generation versus re-ranking pipelines, caching and freshness strategies, latency and availability SLOs, deduplication and pagination, and model/ANN decision-making; the domain is ML system design for map-based POI retrieval and it assesses both high-level architectural reasoning and practical engineering trade-offs. Such problems are commonly asked to assess how an engineer balances consistency, stability and freshness under strict latency and availability targets while reasoning about operational concerns like load shedding, offline versus online evaluation, instrumentation and cost.

    ML System DesignOnsite
  • SnapchatMediumMachine Learning Engineer
    Determine and print expression to reach target

    This question evaluates skill in constructing and evaluating arithmetic expressions, handling numerical stability (including division-by-zero and floating-point tolerance), and reasoning about combinatorial permutations of numbers and operators.

    Coding & AlgorithmsOnsite
  • SnapchatMediumMachine Learning Engineer
    Explain BatchNorm, optimizers, and L1/L2

    This question tests your conceptual understanding of how normalization, optimization strategies, and regularization techniques influence training stability, convergence, and model sparsity.

    Machine LearningOnsiteDeep LearningOptimizationRegularization
  • SnapchatMediumMachine Learning Engineer
    Explain Core ML Concepts

    This question tests the ability to explain foundational machine learning trade-offs and architectural nuances in deep neural networks.

    Machine LearningOnsiteDeep LearningOptimizationStatistics
  • SnapchatHardMachine Learning Engineer
    Explain Neural-Network Regularization and Dropout

    Explain L1, L2, dropout scaling, train/inference behavior, early stopping, and the difference between gradient penalties and decoupled weight decay.

    Machine LearningOnsite
  • SnapchatMediumMachine Learning Engineer
    Find K Nearest Points

    This question tests the ability to efficiently find the k-closest points to an origin in a 2D plane, focusing on heap-based or selection-based data structures.

    Coding & AlgorithmsOnsiteHeapGeometryQuickSelect
  • SnapchatMediumMachine Learning Engineer
    Find Shortest Clear Grid Path

    Solve the shortest clear path in an n by n binary grid using BFS in 8 directions. Covers blocked endpoints, visited marking, path length, correctness, complexity, and weighted-move follow-ups.

    Coding & AlgorithmsOnsite
  • SnapchatMediumMachine Learning Engineer
    Find all quadruplets summing to target

    This problem tests your ability to optimize nested loops using a two-pointer approach to achieve a time complexity better than brute force when searching for subsets of a fixed size that sum to a target value.

    Coding & AlgorithmsOnsiteArraysTwo PointersSorting
  • SnapchatHardMachine Learning Engineer
    Render an Organization Chart and Find Skip-Level Pairs

    Build and render an organization tree with ordered indentation, infer its root, and return exactly two-level manager-descendant pairs.

    Coding & AlgorithmsOnsite
  • SnowflakeMediumMachine Learning Engineer
    Core Components of LLM Agent Memory: What Each Stores and How It Is Written and Read

    Explain the common components of an LLM agent's memory, from the context window to session, episodic, semantic and procedural memory, and how each is written, retrieved and maintained. It tests agent architecture knowledge, context budgeting, conflict handling, forgetting and memory security.

    Machine LearningOnsite
  • SnowflakeMediumMachine Learning Engineer
    Design a Pipeline That Distills Reusable Agent Skills for Enterprise Customers

    Design a pipeline that automatically extracts reusable agent skills for enterprise customers from traces and documents, validates them and delivers them to agents. It tests LLM system design, outcome labeling, offline evaluation against a baseline, tenant isolation, versioning and drift monitoring.

    ML System DesignOnsite
  • SnowflakeMediumMachine Learning Engineer
    Design and Implement a Rate Limiter with an AI Assistant, Then Defend and Test It

    Design and implement a rate limiter in an AI-assisted coding round: choose and defend an algorithm against its alternatives, direct an AI assistant to write the code, review it and test it. It tests rate-limiting algorithm trade-offs, concurrency, time handling and critical review of generated code.

    Software Engineering FundamentalsOnsite
  • SpotifyMediumMachine Learning Engineer
    Design Podcast Recap Generation

    This question evaluates system-design and machine-learning engineering competencies, including streaming versus batch ingestion, audio transcription and chunking, long-context retrieval and prompt/fine-tuning choices, model serving and cost-latency trade-offs, storage and indexing of transcripts and embeddings, evaluation of factual accuracy, and operational monitoring and recovery. Commonly asked to assess the ability to balance latency, throughput, cost, and accuracy in production ML pipelines, it is categorized as ML System Design and tests both conceptual understanding of trade-offs and practical application of scalable, reliable architecture.

    ML System DesignOnsite
  • SpotifyMediumMachine Learning Engineer
    Design a Sequential Personalized Playlist Recommender

    This problem tests your ability to design a production-grade recommendation pipeline that balances immediate user intent (sequential context) with long-term personalization, while managing latency constraints at scale.

    ML System DesignOnsiteRecSysML-ArchitectureLatency
  • SpotifyMediumMachine Learning Engineer
    Join Tables and Rank Users

    This question evaluates proficiency in SQL and data-engineering skills—specifically joins, aggregation and ranking via window functions, event deduplication, and query performance considerations across analytics tables.

    Coding & AlgorithmsOnsite
  • SpotifyHardMachine Learning Engineer
    Predict Next-Week Streaming Engagement at Event Scale

    This question tests the ability to design an end-to-end ML system for user retention prediction, focusing on feature engineering, model scalability for massive user bases, and real-time inference latency.

    ML System DesignOnsiteSystem DesignMLOpsRecommendation Systems
  • StackAdaptMediumMachine Learning Engineer
    Camel and Bananas: Maximize Bananas Delivered Across the Desert

    Classic camel-and-bananas brainteaser: a camel that carries at most 1,000 bananas and eats one per kilometer must move 3,000 bananas to a market 1,000 km away. Find the maximum number that can arrive, testing piecewise cost reasoning, depot planning, and a proof of optimality.

    Statistics & MathOnsite
  • StackAdaptMediumMachine Learning Engineer
    Find the Flaws in an End-to-End ML Pipeline Case Study Report

    Review a condensed end-to-end machine learning case study, from its goal and labels through normalization, evaluation, and deployment, and point out what is wrong with it. Tests systematic pipeline review, reasoning about what data each step uses, and ranking problems by how much they undermine the conclusions.

    Machine LearningOnsite
  • StackAdaptMediumMachine Learning Engineer
    Rebuild a Binary Tree From Preorder and Inorder Sequences, Returned in Level Order

    Reconstruct a binary tree with distinct values from its preorder and inorder traversals and return it in level-order form with null markers. Tests how the two traversal orders pin down structure, careful index bookkeeping, and efficient handling of deep, skewed trees.

    Coding & AlgorithmsOnsite
  • StackAdaptMediumMachine Learning Engineer
    Reservoir Sampling: Uniform k-of-n Sample From a Stream of Unknown Length

    Design a one-pass algorithm that keeps a uniform random sample of k items from a stream whose length is unknown in advance, using memory proportional to k. Tests the replacement rule, an inductive proof that every item is kept with equal probability, complexity, and edge cases.

    Statistics & MathOnsite
  • Startups.ComMediumMachine Learning Engineer
    Debug and scale a PyTorch training loop

    This question evaluates debugging and performance engineering skills for deep learning training pipelines, including diagnosing convergence and instability issues in PyTorch, scaling training with Fully Sharded Data Parallel (FSDP), designing sparse gradient all-reduce communication patterns, and judging when to implement custom CUDA/Triton kernels. Commonly asked for Machine Learning Engineer roles within the Software Engineering Fundamentals domain, it assesses both conceptual understanding of numerical stability and distributed systems and practical application skills in configuring multi-GPU training, communication trade-offs, and low-level performance and correctness validation.

    Software Engineering FundamentalsOnsite
  • Startups.ComMediumMachine Learning Engineer
    Design efficient Transformer inference with KV cache

    This question evaluates an engineer's competency in ML systems engineering, specifically understanding of decoder-only Transformer inference, KV cache semantics and which tensors are cached per layer, attention mechanics, memory layout, and correctness under branching and long-context workloads.

    ML System DesignOnsite
  • Startups.ComMediumMachine Learning Engineer
    Implement common neural network layers in PyTorch

    This question evaluates proficiency in implementing core neural-network primitives (ReLU, numerically-stable Softmax, LayerNorm, BatchNorm with running statistics, and RMSNorm), numerical stability and normalization concepts, and understanding of autograd-compatible tensor operations.

    Coding & AlgorithmsOnsite
  • TeslaHardMachine Learning Engineer
    Design an LLM math-solving chain

    Design an LLM math-solving chain evaluates ML product requirements, data/labeling, modeling, serving architecture, evaluation, monitoring, and trade-offs in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

    ML System DesignOnsite
  • TikTokMediumMachine Learning Engineer
    Design a model to choose dynamic K

    This question evaluates a candidate's competency in ML system design and decision-focused modeling for recommender pipelines, focusing on retrieval-ranking trade-offs, latency and compute cost constraints, and dynamic per-request selection of K.

    ML System DesignOnsite
  • TikTokMediumMachine Learning Engineer
    Determine frog reachability across stones

    This question evaluates dynamic programming, state-space reachability, and constrained transition reasoning, along with skills in hash-based memoization and time/space complexity analysis.

    Coding & AlgorithmsOnsite
  • TikTokMediumMachine Learning Engineer
    Find longest substring without repeating characters

    This question evaluates proficiency in string processing, duplicate-detection using appropriate data structures, and algorithmic complexity analysis within the Coding & Algorithms domain.

    Coding & AlgorithmsOnsite
  • TikTokHardMachine Learning Engineer
    Walk through resume under pressure and critique

    A TikTok machine-learning-engineer onsite behavioral & leadership question: walk through four resume projects — problem and constraints, your ownership, architecture and key decisions, alternatives and trade-offs, measurable outcomes, and the hardest challenge — then defend your trade-offs under pushback, respond to blunt feedback, and adapt your communication to a different language or style. It evaluates technical ownership, systems thinking, experimental rigor, and composed, data-first communication under pressure.

    Behavioral & LeadershipOnsite