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
Waymo logo
Waymo
Hard
Machine Learning Engineer

Generate Instructions for a Blind Maze Robot

You are given a known 2D maze grid with m rows and n columns. Each cell is one of: - #: wall - .: empty cell - E: the exit, which appears exactly once...

Coding & Algorithms
1
0
10 people solved
Jan 31, 2026
Nuro logo
Nuro
Hard
Machine Learning Engineer

Find Maximum Path Sum in N-ary Tree

You are given the root of an N-ary tree. Each node contains an integer value and a list of zero or more children. A path is a sequence of nodes where ...

Coding & Algorithms
2
0
34 people solved
Jan 30, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Implement BST Iterator and Ticket Queue

This question evaluates understanding of binary search tree traversal and iterator design with amortized time and space analysis, as well as dynamic p...

Coding & Algorithms
2
0
40 people solved
Jan 24, 2026
TikTok logo
TikTok
Medium
Machine Learning Engineer Locked

Compute minimum path sum in a triangle

This question evaluates proficiency in dynamic programming and algorithmic problem-solving within the Coding & Algorithms domain, focusing on handling...

Coding & Algorithms
4
0
45 people solved
Jan 22, 2026
Meta logo
Meta
Medium
Machine Learning EngineerSenior+ Locked

Deep copy a linked list with random pointers

This question evaluates understanding of linked-list structures, pointer/reference manipulation, deep versus shallow copying, and the ability to analy...

Coding & Algorithms
4
0
69 people solved
Jan 22, 2026
Atlassian logo
Atlassian
Medium
Machine Learning Engineer Locked

Design O(1) cache and moving average

This question evaluates proficiency in data structures and streaming algorithms by combining an O(1) cache design with an eviction policy and a fixed-...

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

Find shortest path in a maze grid

This question evaluates proficiency in graph traversal and shortest-path reasoning on grid-based data structures, testing skills in pathfinding, state...

Coding & Algorithms
10
0
137 people solved
Jan 21, 2026
Uber logo
Uber
Medium
Machine Learning Engineer

Count connected delivery zones

Given an m x n grid representing a service area, each cell is either 'Z' (deliverable zone) or '#' (blocked). Two 'Z' cells belong to the same zone if...

Coding & Algorithms
5
0
84 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Compute longest increasing subsequence

Longest Increasing Subsequence: length, reconstruction, and counting Given an integer array nums, do all of the following: 1. Length. Compute the leng...

Coding & Algorithms
3
0
41 people solved
Sep 6, 2025
Capital One logo
Capital One
Medium
Machine Learning Engineer Locked

Implement string/matrix simulations and counting pairs

This multi-part question evaluates implementation skills in string processing (case-insensitive substring matching), grid simulation with iterative ma...

Coding & Algorithms
8
0
74 people solved
Jan 12, 2026
Pinterest logo
Pinterest
Hard
Machine Learning EngineerSenior+ Locked

Support room moves and query top-k fastest

This question evaluates understanding of dynamic data structure design and ordering semantics, specifically maintaining per-room FIFO arrival order, c...

Coding & Algorithms
9
0
68 people solved
Jan 12, 2026
Pinterest logo
Pinterest
Hard
Machine Learning EngineerSenior+ Locked

Implement trie-based autocomplete

This question evaluates understanding and implementation of trie data structures for prefix-based retrieval, testing competencies in string algorithms...

Coding & Algorithms
5
0
47 people solved
Jan 12, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Implement exponentiation and fill grid distances

This question evaluates algorithmic problem-solving skills in the Coding & Algorithms domain, specifically numeric algorithms for fast exponentiation ...

Coding & Algorithms
4
0
86 people solved
Jan 8, 2026
Databricks logo
Databricks
Medium
Machine Learning Engineer Locked

Implement a Lazy Array

This question evaluates understanding of lazy evaluation and deferred computation, implementation of iterator/generator-like abstractions, and the abi...

Coding & Algorithms
1
0
12 people solved
Jan 6, 2026
Capital One logo
Capital One
Hard
Machine Learning Engineer Locked

Support updates and count target-sum pairs

This question evaluates data structures and algorithmic skills for dynamic pair counting, focusing on frequency management, efficient update handling,...

Coding & Algorithms
7
0
73 people solved
Jan 6, 2026
Capital One logo
Capital One
Hard
Machine Learning Engineer Locked

Compute minutes since last train departure

This question evaluates time arithmetic and handling of cyclic day-wrap boundary conditions along with parsing and comparison of timestamp lists, refl...

Coding & Algorithms
7
0
46 people solved
Jan 6, 2026
Amazon logo
Amazon
Medium
Machine Learning Engineer Locked

Compute array products excluding self and top-k

This question evaluates skills in array manipulation, in-place algorithm design, numerical stability and edge-case reasoning (such as handling multipl...

Coding & Algorithms
10
0
77 people solved
Jan 6, 2026
Uber logo
Uber
Medium
Machine Learning Engineer

Compute currency conversion via graph search

Given a list of currency pairs, e.g., [('USD','CAD'), ('CAD','EUR'), ...], and a parallel list of conversion ratios [1.1, 1.2, ...] where ratio r mean...

Coding & Algorithms
8
0
124 people solved
Aug 13, 2025
Jane Street logo
Jane Street
Medium
Machine Learning Engineer

Connect-N on an Infinite Board with Gravity

You are asked to implement a variant of the classic Connect Four game, played on an unbounded board. Game Rules - The board consists of vertical colum...

Coding & Algorithms
1
0
17 people solved
Dec 26, 2025
Meta logo
Meta
Medium
Machine Learning Engineer

Implement sliding-window moving average

Design a class MovingAverage that supports a constructor MovingAverage(k) and a method next(val) returning the average of the last k values from a dat...

Coding & Algorithms
5
2
46 people solved
Jul 31, 2025

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