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
DoorDash logo
DoorDash
Medium
Software Engineer

Compute Driver Pay with Double-Pay Windows

You are building payroll logic for a delivery platform. Given a list of order records for one delivery driver, compute the total amount the driver sho...

Coding & Algorithms
0
0
6 people solved
Mar 8, 2026
Google logo
Google
Medium
Data ScientistSenior+

Simulate Uniform(0,1) from random bits

Assume you have access to a function rand_bit() that returns 0 or 1 with equal probability and independent across calls. How would you generate a rand...

Coding & Algorithms
2
0
38 people solved
Nov 24, 2025
Disney logo
Disney
Easy
Software Engineer

How do you manage collaboration and stakeholders?

Scenario You are interviewing for a Lead Frontend Software Engineer role. Prompt Answer the following leadership/behavioral topics with concrete examp...

Behavioral & Leadership
5
0
82 people solved
Nov 24, 2025
Waymo logo
Waymo
Medium
Data Scientist

Compute Ride Metrics in SQL

You are given two tables for a ride-hailing product. Tables: - users: one row per registered user. - user_id BIGINT PRIMARY KEY - city VARCHAR NOT...

Data Manipulation (SQL/Python)
2
0
13 people solved
Mar 7, 2026
Affirm logo
Affirm
Medium
Software Engineer Locked

Aggregate loans and match repayments

This question evaluates the ability to aggregate transactional loan records and match repayment transactions to outstanding loans, testing competencie...

Coding & Algorithms
6
0
79 people solved
Mar 7, 2026
Jane Street logo
Jane Street
Medium
Machine Learning EngineerIntern

Board Simulation: Bottom-Insert Pieces with Uniform Row and Column Detection

Board Simulation: Bottom-Insert Pieces with Uniform Row and Column Detection You must simulate a 2-D game board with R rows and C columns. Each cell i...

Coding & Algorithms
1
0
18 people solved
Aug 27, 2025
Amazon logo
Amazon
Easy
Software EngineerNew Grad

Implement Interview Coding Problems

Solve the following independent coding tasks from a new-grad software engineering interview. 1. Implement a hash map from scratch. - Support integer k...

Coding & Algorithms
1
0
16 people solved
Nov 22, 2025
DRW logo
DRW
Easy
Data Scientist Locked

Analyze distribution of a 3-dice product

This question evaluates probability and statistical inference skills including computation of expectation, properties of discrete order statistics (po...

Statistics & Math
8
0
58 people solved
Nov 22, 2025
Google logo
Google
Hard
Software Engineer

Find safe travel intervals between planet influences

You are planning a space route along a one-dimensional line (the x-axis). You are given a list of planets. Each planet is represented by an integer pa...

Coding & Algorithms
12
2
88 people solved
Nov 22, 2025
Google logo
Google
Medium
Software Engineer

Return Words Matching a Typed Prefix

Given words and a query prefix, return all words starting with that prefix in lexicographic order. Implement: `python def prefix_matches(words: list[s...

Coding & Algorithms
0
0
8 people solved
Mar 6, 2026
Stripe logo
Stripe
Medium
Software Engineer Locked

Process Transactions and Compute Balances

This question evaluates a candidate's ability to implement stateful transaction processing, accurate integer bookkeeping across accounts and currencie...

Coding & Algorithms
1
0
21 people solved
Nov 21, 2025
Amazon logo
Amazon
Easy
Data Scientist

Find recommended friend pairs by shared listening

Problem (SQL) You work on a music app and want to recommend new friend connections based on listening similarity. Tables Assume the following schemas:...

Data Manipulation (SQL/Python)
10
1
105 people solved
Nov 20, 2025
Anthropic logo
Anthropic
Hard
Software Engineer Locked

Optimize a core kernel for throughput

This question evaluates low-level performance optimization competencies, including loop transformations, memory-access patterns, vectorization, parall...

Software Engineering Fundamentals
16
0
207 people solved
Nov 19, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Implement staircase printing and distributed mode/median

Problem A: Print a “staircase” pattern Implement a function that prints a staircase with n rows. Input - An integer n (n >= 1) Output - Print n lines....

Coding & Algorithms
68
0
924 people solved
Nov 19, 2025
Amazon logo
Amazon
Medium
Machine Learning Engineer Locked

Design logo infringement detection system

This question evaluates a candidate's competency in ML system design for visual search, covering image representation and embeddings, metric learning,...

ML System Design
2
0
44 people solved
Nov 18, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Count Nodes Using Asynchronous Messages

You are given the identifier of a root node in a distributed network. Each node represents a separate machine. A node cannot directly inspect another ...

Coding & Algorithms
3
0
25 people solved
Mar 4, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Find the First Unique Log

This question evaluates a candidate's ability to analyze and implement efficient data-processing and frequency-detection strategies on ordered string ...

Coding & Algorithms
3
0
49 people solved
Mar 4, 2026
Walmart Labs logo
Walmart Labs
Medium
Software Engineer

Implement lexicographically smallest Two Sum

You are given an unsorted integer array nums and an integer target. Return the indices [i, j] (0-based) such that i < j and nums[i] + nums[j] == targe...

Coding & Algorithms
25
0
281 people solved
Mar 4, 2026
NVIDIA logo
NVIDIA
Easy
Software Engineer

Return all file paths via DFS

You are given an in-memory representation of a file system as a tree. Each node has: - name (string) - isFile (boolean) - children (list of nodes, emp...

Coding & Algorithms
18
0
132 people solved
Mar 4, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+ Locked

Answer Leadership and Collaboration Prompts

This question evaluates leadership, collaboration, interpersonal communication, conflict resolution, adaptability, and self-reflection competencies wi...

Behavioral & Leadership
4
0
37 people solved
Nov 17, 2025