Capital One Machine Learning Engineer Interview Experience — 70-Minute OA with Four Long Questions

Capital One·Machine Learning Engineer·Nov 2026
Online AssessmentIn progresshard

The week before last I did the Capital One MLE OA. It was 70 minutes with 4 questions. The questions aren't very hard, but they are very long, and it was a bit of a pain to understand them.

I did it on Friday, and on Monday HR contacted me to say I passed and was moving on to the next round.

I'm trying to recall the questions now to share with everyone.

Q1 — very easy

Given an array of positive integers and a range, find the minimum of all the numbers within that range. If no number qualifies, return 0.

Q2 — String, easy

Given a bus schedule sorted by time and the current time (in HH:MM format), compute how many minutes are left until the next bus. If there is no next bus that day, return "-1".

String processing, time conversion, array traversal.

Q3 — Matrix

Given a 2D matrix and a square border size, go through every possible square border and compute the sum of the numbers on each border. Find the border with the largest sum, then add up the distinct numbers that appear on those borders, counting each number only once.

Q4

Given a set of 2D coordinates, where each coordinate is the center of a square region with side length 2, count how many pairs of squares overlap, including pairs that only touch at an edge or a single point.

This one has a time complexity limit. At first I wrote several layers of nested loops and it didn't pass. After I shrank the window to 5 it passed the tests.

My suggestion is to do them in the order 1, 2, 4, 3. The third question usually takes the most time.

Published

Curated and edited by PracHub

Practice the questions from this interview

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
Capital One
Role
Machine Learning Engineer
Rounds
Online Assessment
Outcome
In progress
Difficulty
hard
Interview date
Nov 2026
Questions from this interview
4 questions

Related interview experiences

Explore more interview rounds, questions, and outcomes.

Browse interview experiences