Machine Learning Engineer Coding & Algorithms Interview Questions

Practice 316 real Coding & Algorithms interview questions for Machine Learning Engineer roles. From companies including Meta, Amazon, OpenAI, TikTok, Pinterest.

316 Questions 72 Companies08.05.2026
Showing 20 results
Role
Netflix logo
Netflix
Easy
Machine Learning Engineer Locked

Implement rotating homepage title selector

This question evaluates understanding of data structures and algorithms for prioritized selection with stateful constraints, focusing on maintaining d...

Coding & Algorithms
2
0
43 people solved
Jan 6, 2026
Cadence logo
Cadence
Medium
Machine Learning EngineerNew Grad Locked

Implement Depth-First Search Traversal

This question evaluates implementation and conceptual understanding of graph traversal algorithms, specifically depth-first search on adjacency-list r...

Coding & Algorithms
3
0
26 people solved
Jan 5, 2026
Roblox logo
Roblox
Medium
Machine Learning EngineerSenior+ Locked

Find Windows Containing a Target

This question evaluates array traversal and interval-containment reasoning, including handling inclusive endpoints, overlapping intervals, and preserv...

Coding & Algorithms
0
0
11 people solved
May 7, 2026
Apple logo
Apple
Medium
Machine Learning Engineer Locked

Debug a PyTorch U-Net shape mismatch

This question evaluates proficiency in PyTorch model implementation, convolutional output shape arithmetic, channel configuration, and debugging of U-...

Coding & Algorithms
14
0
150 people solved
Mar 1, 2026
Pinterest logo
Pinterest
Hard
Machine Learning Engineer Locked

Sample a string by real-valued scores

This question evaluates probabilistic sampling, numerical stability, and algorithmic implementation skills for weighted selection under floating-point...

Coding & Algorithms
12
0
138 people solved
Mar 1, 2026
Roblox logo
Roblox
Medium
Machine Learning Engineer Locked

Find target-heavy sliding windows

This question evaluates array manipulation, counting and efficient algorithm design—focusing on the sliding-window technique for detecting and quantif...

Coding & Algorithms
8
0
79 people solved
Feb 27, 2026
Jane Street logo
Jane Street
Easy
Machine Learning EngineerNew Grad

Marketplace Data Store: Order Matching and End-of-Day Reconciliation

Marketplace Data Store: Order Matching and End-of-Day Reconciliation You are building the core of a marketplace where sellers list individual units of...

Coding & Algorithms
0
0
14 people solved
Aug 2, 2025
Plaid logo
Plaid
Medium
Machine Learning Engineer

Find Banks From Identifier Mappings

Plaid receives institution metadata from multiple sources. You are given two mappings: 1. code_to_institution: a one-to-one mapping from a bank code t...

Coding & Algorithms
0
0
10 people solved
Apr 30, 2026
Snapchat logo
Snapchat
Medium
Machine Learning Engineer

Determine Whether Courses Can Be Completed

You are given an integer numCourses, representing courses labeled from 0 to numCourses - 1, and a list prerequisites. Each prerequisite is a pair [cou...

Coding & Algorithms
0
0
9 people solved
Apr 29, 2026
TikTok logo
TikTok
Medium
Machine Learning Engineer

Maximize sum with no adjacent elements

Given an array of non-negative integers nums, choose a subset of elements such that no two chosen elements are adjacent in the original array. Return ...

Coding & Algorithms
8
0
79 people solved
Feb 12, 2026
Tubitv logo
Tubitv
Medium
Machine Learning Engineer

Weighted Random Sampling by Index

Weighted Random Sampling by Index You are given an array of positive integer weights weights, where weights[i] is the weight assigned to index i. Impl...

Coding & Algorithms
0
0
6 people solved
Feb 10, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Solve array merge, tree view, and maze tasks

This question evaluates array manipulation and in-place algorithms, binary tree traversal and visibility reasoning, and grid graph traversal for path ...

Coding & Algorithms
3
0
38 people solved
Dec 9, 2025
Meta logo
Meta
Medium
Machine Learning Engineer AI Locked

Extend a Maze Solver

This question evaluates proficiency in implementing and debugging graph search algorithms and state-space modeling, including correct visited-state ha...

Coding & Algorithms
3
0
34 people solved
Feb 8, 2026
Glean logo
Glean
Medium
Machine Learning Engineer

Find Earliest Train Route

You are given a discrete train timetable and need to find a valid route through the train network. Each train has an itinerary represented as a sequen...

Coding & Algorithms
3
0
33 people solved
Apr 23, 2026
Glean logo
Glean
Medium
Machine Learning Engineer AI

Implement Rate-Limited Wikipedia Crawler

Implement a rate-limited Wikipedia crawler. You may use an AI coding assistant during the interview, such as Cursor or Claude Code. You are expected t...

Coding & Algorithms
0
0
13 people solved
Apr 23, 2026
DoorDash logo
DoorDash
Medium
Machine Learning Engineer Locked

Minimize batches and allocate riders by time

This question set evaluates algorithmic problem-solving in scheduling and resource allocation, assessing understanding of batching under capacity and ...

Coding & Algorithms
17
0
248 people solved
Feb 3, 2026
TikTok logo
TikTok
Medium
Machine Learning Engineer

Find and count target-sum subarrays

Find and count target-sum subarrays Given an integer array nums and an integer target, implement: ( 1) a function that returns true if any non-empty c...

Coding & Algorithms
6
0
53 people solved
Jul 31, 2025
Meta logo
Meta
Medium
Machine Learning Engineer

Solve matrix diagonal and sliding-window statistics

Solve matrix diagonal and sliding-window statistics 1) Given an m x n integer matrix, determine whether every top-left to bottom-right diagonal has th...

Coding & Algorithms
4
0
74 people solved
Jul 31, 2025
Shopify logo
Shopify
Easy
Machine Learning Engineer Locked

Implement an LRU Cache

This question evaluates a candidate's competency in designing efficient cache mechanisms and managing time and space complexity for operations require...

Coding & Algorithms
16
0
164 people solved
Jan 22, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Implement LRU cache and copy random list

This question evaluates competency in data-structure design, pointer and memory management, and hashing-based eviction policies by combining a deep-co...

Coding & Algorithms
6
0
47 people solved
Jan 21, 2026

Explore more Machine Learning Engineer Coding & Algorithms interview questions

Real questions from candidate reports, grouped by company, topic and role.

By company
Other categories for Machine Learning Engineer
Coding & Algorithms questions for other roles
Browse all