Tech Interview Questions

Practice 9,224+ 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.2k Questions 486 Companies08.16.2026
Showing 20 results
Role
Anthropic logo
Anthropic
Medium
Software Engineer

Design file deduplication across nested directories

Design and implement a file deduplication tool that, given a root directory, identifies groups of duplicate files. Requirements: traverse nested direc...

Coding & Algorithms
21
0
205 people solved
Aug 14, 2025
Bytedance logo
Bytedance
Medium
Data Scientist

Build and iteratively improve sentiment classifier

You need to build a sentiment classification model (e.g., positive/neutral/negative) for user-generated text. You already shipped an initial version, ...

Machine Learning
7
0
52 people solved
Nov 12, 2025
Meta logo
Meta
Hard
Software Engineer Locked

Guide a mouse to find cheese with APIs

This question evaluates the ability to reason about graph exploration and stateful API interaction in an unknown 2D grid, assessing competencies in se...

Coding & Algorithms
3
0
47 people solved
Nov 12, 2025
TikTok logo
TikTok
Medium
Software Engineer

Solve three algorithm tasks

Solve the following algorithm tasks and explain your approach, time complexity, and space complexity for each: 1) Fully justify text: Given an array o...

Coding & Algorithms
3
0
53 people solved
Aug 13, 2025
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
125 people solved
Aug 13, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Design hierarchical path store with create/set/get/remove

Design a hierarchical key-value path store supporting four operations on UNIX-style absolute paths (e.g., "/a/b"). Implement: 1) create(path, value): ...

Coding & Algorithms
3
0
61 people solved
Aug 13, 2025
Marshall Wace logo
Marshall Wace
Medium
Software Engineer

Compute max events in any 60-second window

Design a function that, given a non-decreasing list of integer timestamps (seconds), returns the maximum number of events occurring within any contigu...

Coding & Algorithms
10
0
84 people solved
Aug 13, 2025
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement crawler and file deduplication

This question evaluates competencies in concurrent programming, web crawling and graph traversal, thread safety, rate limiting, I/O-efficient file ded...

Coding & Algorithms
11
0
98 people solved
Feb 28, 2026
Capital One logo
Capital One
Easy
Data ScientistSenior+ Locked

Clean and Merge Housing Data

This question evaluates data cleaning, type coercion, robust merge operations, and missing-data imputation skills within tabular datasets, emphasizing...

Data Manipulation (SQL/Python)
2
0
48 people solved
Feb 28, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Solve Merge Lists and Vertical Traversal

This question evaluates proficiency with merging sorted linked lists and performing vertical traversal of binary trees, focusing on algorithms, data s...

Coding & Algorithms
7
0
52 people solved
Feb 28, 2026
Coinbase logo
Coinbase
Hard
Software Engineer

Design a scalable URL shortener with expiration and security

System Design: URL Shortening Service at Internet Scale You are asked to design a URL shortening service for hundreds of millions of users with high a...

System Design
6
0
94 people solved
Aug 12, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Implement a reservation widget with pricing

Implement a Lodging Reservation Widget Context You are building a reservation widget for a property details page. The widget must let guests select da...

Software Engineering Fundamentals
7
0
113 people solved
Aug 12, 2025
Stripe logo
Stripe
Medium
Software Engineer

Design a subscription email scheduler with changes and renewals

Implement an email notification scheduler for subscription accounts. Inputs: - send_schedule: a mapping whose keys include: • "start": label to send...

Coding & Algorithms
4
0
36 people solved
Aug 12, 2025
Uber logo
Uber
Medium
Software Engineer

Produce a valid deployment order

You are given N services and a list of dependency pairs (A, B) meaning service B must be deployed before service A. Compute any valid deployment order...

Coding & Algorithms
15
0
106 people solved
Aug 12, 2025
Google logo
Google
Medium
Data Scientist Locked

Approximate a percentile from buckets

Estimate a percentile from histogram bucket summaries by finding the cumulative-count bucket, avoiding midpoint bias, interpolating within the bucket ...

Statistics & Math
4
0
45 people solved
Mar 9, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Solve set equality and ad log top‑K

Problem Set (Coding) 1) Check whether two sets are equal You are given two integer arrays A and B that represent sets, except they may contain duplica...

Coding & Algorithms
19
0
198 people solved
Nov 11, 2025
Oracle logo
Oracle
Medium
Software Engineer

Find users with at least one valid session

You are given: - A list of log entries logs, where each entry is a string in the format: ` "userId action timestamp" ` - userId is a non...

Coding & Algorithms
6
0
58 people solved
Nov 11, 2025
Visa logo
Visa
Hard
Software Engineer

Design an experiment assignment service

Design an Online Experimentation (A/B Testing) Assignment Service You are asked to design a highly available online experiment assignment service. The...

Analytics & Experimentation
8
0
69 people solved
Aug 11, 2025
Affirm logo
Affirm
Hard
Software Engineer Locked

Compute Balances and Minimize Settlements

This question evaluates transactional data aggregation and net-balance computation skills alongside combinatorial optimization for minimizing settleme...

Coding & Algorithms
10
0
84 people solved
Feb 27, 2026
Uber logo
Uber
Medium
Data ScientistNew Grad Locked

Implement FizzBuzz

This question evaluates a candidate's ability to implement basic control flow, use modulo operations, iterate over sequences, and reason about time an...

Coding & Algorithms
4
0
52 people solved
Feb 27, 2026