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 151–180 of 381 results

  • MetaHardMachine Learning Engineer
    Design image and multimodal generation systems

    This question evaluates a candidate's competence in designing end-to-end image and multimodal generation systems, covering data collection and curation, model architecture and conditioning choices, training objectives, safety and content filtering, evaluation metrics, deployment, monitoring, and critical analysis of relevant research.

    ML System DesignTechnical Screen
  • MetaMediumMachine Learning Engineer
    Discuss Research Experience and Challenges

    This question evaluates research design, experimental methodology, problem formulation, ownership, collaboration, prioritization, and the ability to learn from failed or ambiguous outcomes within the Machine Learning Engineer role, encompassing communication and leadership competencies.

    Behavioral & LeadershipTechnical Screen
  • MetaMediumMachine Learning Engineer
    Find a String Containing Another

    This question evaluates proficiency in string algorithms, substring search techniques, and algorithmic complexity analysis within the Coding & Algorithms domain.

    Coding & AlgorithmsTechnical Screen
  • MetaHardMachine Learning Engineer
    Implement 1NN Embeddings and Forward Pass

    Implement a fully vectorized forward pass that projects input features into an embedding space and classifies them using a 1-nearest-neighbor lookup against a reference bank.

    Machine LearningTechnical Screennumpydeep-learninglinear-algebra
  • MetaMediumMachine Learning Engineer
    Implement K-Means Clustering From Scratch

    An ML coding question that asks for a from-scratch implementation of k-means clustering with no provided test cases. It tests the assignment and update steps, vectorized distance computation, initialization, stopping rules, empty-cluster handling and the ability to verify code with self-constructed checks.

    Machine LearningTechnical Screen
  • MetaMediumMachine Learning Engineer
    Implement Sparse Matrix Operations

    This question tests the ability to design an efficient data structure for sparse matrix storage and implement optimized multiplication between a sparse matrix and a dense vector.

    Coding & AlgorithmsTechnical ScreenData StructuresLinear AlgebraOptimization
  • MetaMediumMachine Learning Engineer
    Implement exponentiation and link tree neighbors

    This question evaluates numerical algorithm implementation and in-place tree traversal skills, specifically fast exponentiation with careful edge-case and precision handling and iterative linking of next pointers in a perfect binary tree.

    Coding & AlgorithmsTechnical Screen
  • MetaMediumMachine Learning Engineer
    Implement the Forward Pass of Multi-Head Attention From Scratch

    An ML coding question that asks for the forward pass of multi-head attention from scratch. It tests query, key and value projections, splitting and merging heads, scaled dot-product attention with a stable softmax, causal and padding masks, complexity in sequence length, and self-made correctness checks.

    Machine LearningTechnical Screen
  • MetaMediumMachine Learning Engineer
    Masked Multi-Head Attention Forward Pass Without a Framework

    Implement batched multi-head self-attention by hand, including projections, head split and merge, scaled dot products, a numerically stable masked softmax, and causal and padding masks, then prove it correct with tests you design yourself. Tests shape discipline and attention fundamentals.

    Machine LearningTechnical Screentransformersattentionnumerical-stability
  • MetaMediumMachine Learning Engineer
    Optimize repeated-value vectors and compute exclusive times

    This question evaluates proficiency in data-structure and algorithmic concepts such as run-length encoding for compressed vectors and interval/nesting reasoning for computing exclusive execution times.

    Coding & AlgorithmsTechnical Screen
  • MetaMediumMachine Learning Engineer
    Prevent Private Code Leakage in Coding Agents

    This problem tests the ability to design an ML-driven safeguard system that prevents private codebase exposure during the training, fine-tuning, and inference phases of a coding agent.

    ML System DesignTechnical ScreenMLOpsSecurityPrivacy
  • MetaHardMachine Learning Engineer
    Simulate Monster Team Battles

    This question tests the ability to implement a stateful, turn-based simulation engine using object-oriented principles, efficient queue management, and rule-based damage calculations.

    Coding & AlgorithmsTechnical ScreenSimulationObject-Oriented DesignSorting
  • MetaMediumMachine Learning Engineer
    Solve matrix components, median, and traversals

    This question evaluates algorithmic problem-solving across grid and graph algorithms, selection algorithms, and traversal techniques—specifically connected-component detection in binary matrices, median-finding across two sorted arrays, and BFS/DFS traversal variants—measuring competence in data structures, complexity analysis, and handling edge cases. Commonly asked in Coding & Algorithms interviews for Machine Learning Engineer roles, it assesses efficiency and correctness concerns such as time and space complexity and traversal orders, testing both conceptual understanding of algorithmic principles and practical implementation distinctions like iterative versus recursive variants.

    Coding & AlgorithmsTechnical Screen
  • MetaMediumMachine Learning Engineer
    Solve matrix diagonal and sliding-window statistics

    Solve matrix diagonal and sliding-window statistics evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

    Coding & AlgorithmsTechnical Screen
  • MetaEasyMachine Learning Engineer
    Solve two linked list/array tasks

    This problem tests your ability to manipulate linked list pointers to detect cycles and solve a classic array-based problem using the two-pointer technique to find specific target sums.

    Coding & AlgorithmsTechnical ScreenLinked ListTwo PointersArrays
  • MicrosoftMediumMachine Learning Engineer
    Compute precision/recall from a flaky top-k API

    This question evaluates understanding of binary classification evaluation metrics (precision and recall) and competency in handling unreliable API behavior for robust metric computation, testing both conceptual understanding and practical application.

    Software Engineering FundamentalsTechnical Screen
  • MicrosoftMediumMachine Learning Engineer
    Design quality checks for spreadsheet LLM data

    This problem tests the ability to design an end-to-end data validation pipeline for spreadsheet data and determine the necessity of fine-tuning a Large Language Model (LLM) for specific structured data tasks.

    ML System DesignTechnical ScreenLLMData ValidationFine-tuning
  • MicrosoftEasyMachine Learning Engineer
    Explain Transformers and deploy an LLM safely

    This question evaluates understanding of Transformer architectures and practical LLM deployment competencies, covering attention mechanisms, token and positional representations, computational complexity, and production concerns like latency, cost, quality, safety, and privacy.

    ML System DesignTechnical Screen
  • MicrosoftMediumMachine Learning Engineer
    Explain metrics, regularization, and ablation studies

    This question evaluates understanding of classification evaluation metrics, regularization methods, and experimental design for component-level analysis in NLP and broader Machine Learning systems, testing competencies in performance measurement, regularization trade-offs, and causal attribution of model components.

    Machine LearningTechnical Screen
  • MicrosoftMediumMachine Learning Engineer
    Find Top K Largest Elements

    This question tests the ability to efficiently find the K largest elements in an unsorted array while managing time complexity constraints through heap-based or selection-based algorithms.

    Coding & AlgorithmsTechnical ScreenArraysHeapSorting
  • MicrosoftMediumMachine Learning Engineer
    Find pairs with the minimum absolute difference

    This question evaluates array manipulation, sorting-based reasoning, and the ability to generate ordered value pairs that reflect minimum absolute differences while handling ordering and duplicates.

    Coding & AlgorithmsTechnical Screen
  • MicrosoftMediumMachine Learning Engineer
    Return the k most frequent values in an array with a deterministic tie rule

    Return the k values that occur most often in an integer array, ranked by frequency with ties broken by the smaller value. It tests frequency counting, selecting the top k efficiently and producing a deterministic order when several values tie at the cutoff.

    Coding & AlgorithmsTechnical Screen
  • Mistral AIMediumMachine Learning Engineer
    Build a Small Agent or RAG Tool with the Mistral API

    Design an end-to-end Retrieval-Augmented Generation (RAG) agent using the Mistral API to answer technical queries over internal developer documentation. The question evaluates chunking strategies, dense retrieval, prompt orchestration, latency optimizations, and evaluation methodologies.

    ML System DesignTechnical Screenragml-system-designllm-agents
  • Mistral AIHardMachine Learning Engineer
    Explain Transformer Internals and Implement Top-p Decoding

    Assess understanding of causal transformer decoding mechanics, including attention and KV caching, paired with an implementation of nucleus (top-p) sampling with temperature scaling.

    Machine LearningTechnical ScreenTransformersSampling AlgorithmsLLM Inference
  • NVIDIAHardMachine Learning Engineer
    Discuss Transformer LLM Design

    Discuss Transformer LLM Design 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 DesignTechnical Screen
  • NVIDIAMediumMachine Learning Engineer
    Explain bias-variance, calibration, and model drift

    This question tests your conceptual understanding of model performance degradation over time, the significance of calibrated outputs for decision-making, and the fundamental trade-off between bias and variance.

    Machine LearningTechnical ScreenModel EvaluationProduction MLBias-Variance
  • NetflixMediumMachine Learning Engineer
    Compare Losses and Explain LoRA

    This question evaluates understanding of loss functions (mean squared error versus cross-entropy) and parameter-efficient fine-tuning via Low-Rank Adaptation (LoRA), emphasizing probabilistic interpretations, optimization behavior, and low-rank parameterization.

    Machine LearningTechnical Screen
  • NetflixMediumMachine Learning Engineer
    Explain self-attention, LoRA, Adam vs SGD, ViT

    This question evaluates understanding of modern Machine Learning/Deep Learning topics, including self-attention mechanics (queries, keys, values and scaled logits), Low-Rank Adaptation (LoRA) for parameter-efficient fine-tuning and memory savings, optimizer behavior (Adam versus SGD with momentum), and architectural trade-offs between Vision Transformers and CNNs including patch-size considerations. It is categorized under Machine Learning and is commonly asked because it probes both conceptual understanding and practical application—testing reasoning about training dynamics, model scaling, fine-tuning strategies, and resource/performance trade-offs.

    Machine LearningTechnical Screen
  • NetflixMediumMachine Learning Engineer
    Explain tokenization and Transformer variants

    This question evaluates understanding of tokenization techniques and Transformer architecture, covering competencies in subword and SentencePiece-style tokenizers, Transformer block internals, and comparisons of modern architectural variants and trade-offs.

    Machine LearningTechnical Screen
  • NetflixMediumMachine Learning Engineer
    Implement Streaming Word Counter

    This question evaluates streaming data processing, string tokenization, and frequency-aggregation competencies, focusing on maintaining accurate counts over incremental text inputs using associative data structures.

    Coding & AlgorithmsTechnical Screen