Tech Interview Questions

Practice 9,031+ interview questions from top companies including Google, Meta, Amazon, and more. Filter by company, role, and category.

Popular Interview Questions

Machine Learning Engineer + Data Scientist + Software Engineer Interview Questions

Practice the exact questions companies are asking right now.

9.0k Questions 486 Companies08.11.2026
Showing 20 results
Role
Pinterest logo
Pinterest
Medium
Software Engineer

Find minimal time to serve customers

Find minimal time to serve customers You manage a bank with k tellers; teller i takes serviceTimes[i] minutes to serve one customer and works continuo...

Coding & Algorithms
5
0
89 people solved
Jul 28, 2025
Citadel logo
Citadel
Medium
Data Scientist

Implement two-pointer unique-pair sum search

Implement two-pointer unique-pair sum search Given a nondecreasing integer array nums and an integer target, return all unique value pairs [a, b] with...

Coding & Algorithms
8
0
83 people solved
Jul 27, 2025
Chime logo
Chime
Medium
Software Engineer

Find missing number from concatenated digits

Given an integer n (1 ≤ n ≤ 99) and a digit string s formed by concatenating the decimal representations of the integers 1..n except for one missing n...

Coding & Algorithms
57
0
381 people solved
Jul 27, 2025
Chime logo
Chime
Medium
Software Engineer

Simulate toppling board game outcome

Implement a function that, given the board size N (3–9 inclusive) and a list of move strings, returns one of: "in progress", "player 1 is the winner",...

Coding & Algorithms
32
0
286 people solved
Jul 27, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement an expiring GPU credits ledger

Implement an expiring GPU credits ledger for multiple users with three operations: 1) add_credit(user_id, amount, expiry_time): add a lot of credits t...

Coding & Algorithms
51
0
422 people solved
Jul 27, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Compute city skyline silhouette

Compute city skyline silhouette Compute the outer silhouette of a 2D skyline. You are given n axis-aligned rectangular buildings; each building i is (...

Coding & Algorithms
4
0
30 people solved
Jul 27, 2025
Nextdoor logo
Nextdoor
Medium
Machine Learning Engineer

Implement and use a version comparator

Implement and use a version comparator You are given up to 100,000 version-like identifiers (e.g., "1.0", "01.2.0", "2.0.0-alpha", "1.10.3"). Implemen...

Coding & Algorithms
7
0
77 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Evaluate expression without stack, constant space

Evaluate expression without stack, constant space Given a string s representing a valid arithmetic expression of non-negative integers, the operators ...

Coding & Algorithms
2
0
39 people solved
Jul 27, 2025
Lyft logo
Lyft
Medium
Software Engineer

Design a temporal key-value store with historical reads

Implement a key–value store supporting set(key, value, timestamp) and get(key, timestamp) -> the value at the greatest timestamp ≤ the given timestamp...

Coding & Algorithms
7
0
85 people solved
Jul 27, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Count clusters covered by dashers

Count clusters covered by dashers You are given two m×n binary matrices of equal size: D for dasher availability and U for user presence. A cell value...

Coding & Algorithms
7
0
72 people solved
Jul 26, 2025
Meta logo
Meta
Medium
Software Engineer

Solve increasing sequence and path problems

Solve increasing sequence and path problems Answer the following related tasks about increasing sequences and paths: a) Contiguous subarray: Given an ...

Coding & Algorithms
3
0
28 people solved
Jul 26, 2025
Citibank logo
Citibank
Medium
Data Scientist

Ensure model ethics and governance

Ensure model ethics and governance Ensuring Model Ethics Across Development and Deployment Context You are interviewing for a Data Scientist role in a...

Behavioral & Leadership
2
0
49 people solved
Jul 26, 2025
Nash AI logo
Nash AI
Medium
Software Engineer

Implement Minesweeper click and print

Implement Minesweeper click and print Implement the Minesweeper click(row, col) operation and a function to print the board. Rules: ( 1) If the clicke...

Coding & Algorithms
5
0
44 people solved
Jul 26, 2025
Kneron logo
Kneron
Medium
Software Engineer

Optimize machines for distributed merging cost

Optimize machines for distributed merging cost Optimize k to Minimize Distributed Runtime Context You are splitting a dataset of size n across k ident...

System Design
2
0
25 people solved
Jul 26, 2025
Citadel logo
Citadel
Medium
Software Engineer

Explain hash maps and solve array intersection

1) Explain the internal implementation of a hash map: underlying array/bucket layout, hash function choice, collision resolution strategies (separate ...

Coding & Algorithms
12
0
107 people solved
Jul 26, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Find minimum shuttle transfers

Find minimum shuttle transfers You are given a collection of shuttle loops, each represented by a list of stop IDs that the loop visits in perpetuity....

Coding & Algorithms
9
0
93 people solved
Jul 26, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Implement classes in existing abstract hierarchy

You are given an existing Python codebase that defines multiple classes, including abstract base classes using abc.ABC and @abstractmethod decorators....

Coding & Algorithms
7
0
96 people solved
Jul 26, 2025
Squarepoint logo
Squarepoint
Medium
Data Scientist Locked

Explain derivatives, YTM, and core statistics

Explain derivatives, YTM, and core statistics evaluates statistical assumptions, formulas, estimation strategy, uncertainty, edge cases, and interpret...

Statistics & Math
5
0
57 people solved
Jul 25, 2025
Zillow logo
Zillow
Medium
Machine Learning Engineer

Implement placeholder-based pattern matcher

Implement placeholder-based pattern matcher You are given: 1. A string s that may contain placeholders delimited by the % character. 2. A dictionary d...

Coding & Algorithms
1
0
32 people solved
Jul 18, 2025
DoorDash logo
DoorDash
Medium
Software EngineerSenior+

Implement a hierarchical key-value store

Implement a hierarchical key-value store Implement an in-memory hierarchical key-value store where keys are UNIX-like paths joined by '/'. The root no...

Coding & Algorithms
7
0
73 people solved
Jul 17, 2025