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

Compute peak busy dashers with overlaps

You are given delivery logs as (dasherId, startTime, endTime) with integer times, where endTime is exclusive. A single dasher may accept multiple orde...

Coding & Algorithms
15
0
198 people solved
Aug 10, 2025
Amazon logo
Amazon
Medium
Software Engineer

Place items into earliest fitting bins

Place items into earliest fitting bins You are given k items with sizes items[0..k-1] and n bins with initial capacities caps[0..n-1]. Process items i...

Coding & Algorithms
2
1
30 people solved
Aug 10, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find LCA in a BST

Find LCA in a BST Given the root of a binary search tree and two keys p and q, return the value of their lowest common ancestor (the deepest node whos...

Coding & Algorithms
2
0
36 people solved
Aug 10, 2025
Amazon logo
Amazon
Medium
Software EngineerIntern

Manipulate time-series with Pandas groupby

Given a DataFrame events(user_id, event_type, ts_utc, revenue): 1) Parse ts_utc as timezone-aware, convert to America/Los_Angeles, and handle DST tran...

Data Manipulation (SQL/Python)
0
0
6 people solved
Aug 10, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Minimize adjacent-color assignment cost

Minimize adjacent-color assignment cost You are given H linear items (e.g., houses) and an H×C cost matrix where cost[i][c] is the cost of assigning c...

Coding & Algorithms
4
0
82 people solved
Aug 10, 2025
Akuna Capital logo
Akuna Capital
Medium
Software Engineer

Solve three C++ algorithmic tasks

Solve three C++ algorithmic tasks Solve the following three C++ algorithmic tasks. For each, implement an efficient function and state time and space ...

Coding & Algorithms
4
0
56 people solved
Aug 10, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find odd-frequency element with O(1) space

You're given an integer array where exactly one value appears an odd number of times and all other values appear an even number of times. Implement a ...

Coding & Algorithms
4
0
35 people solved
Aug 9, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Compute courier pay with peak-hour rules

Implement compute_pay(deliveries) to calculate a delivery driver's daily pay from a list of delivery records. Each record may include times, miles, ba...

Data Manipulation (SQL/Python)
0
0
7 people solved
Aug 9, 2025
DRW logo
DRW
Medium
Data Scientist

Compute rolling standard deviation in O(n)

Compute rolling standard deviation in O(n) Given an array of numbers and a window size k, compute the rolling standard deviation for every contiguous ...

Coding & Algorithms
6
0
74 people solved
Aug 9, 2025
Meta logo
Meta
Hard
Software Engineer

Implement held transfers with accept/cancel

Implement held transfers with accept/cancel Design and implement a two-phase ("pull-style") money-transfer system in which funds are first held on the...

System Design
6
0
42 people solved
Aug 9, 2025
Meta logo
Meta
Medium
Software Engineer

Maintain top N payers

Maintain top N payers Implement topNPayers(n) that returns the n accounts with the highest cumulative outgoing payment amounts as strings formatted "{...

Coding & Algorithms
1
0
25 people solved
Aug 9, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Maximize profit with transaction fee

Maximize profit with transaction fee Given an array of daily stock prices and a fixed transaction fee charged on each sell, compute the maximum profit...

Coding & Algorithms
4
0
73 people solved
Aug 8, 2025
SIG (Susquehanna) logo
SIG (Susquehanna)
Medium
Software Engineer

Calculate minutes between two time strings

Given two times t1 and t2 in "HH:MM" 24-hour format on the same day with t2 > t1, compute the difference in minutes. Show how you parse the strings, c...

Data Manipulation (SQL/Python)
0
0
7 people solved
Aug 8, 2025
SIG (Susquehanna) logo
SIG (Susquehanna)
Medium
Software Engineer

Count subarrays with odd zero count

Count subarrays with odd zero count Given an integer array nums, return how many contiguous subarrays contain an odd number of zeros. Provide an O(n) ...

Coding & Algorithms
4
0
84 people solved
Aug 8, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement in-memory KV store with serialization

Implement an in-memory key-value store in Python that supports setting and retrieving values and can serialize and deserialize the entire store. Defin...

Coding & Algorithms
40
0
360 people solved
Aug 8, 2025
Apple logo
Apple
Medium
Software Engineer

Design a snapshotable key-value store

Design a snapshotable key-value store Design and implement a snapshotable key–value map supporting the following APIs: - S(key, value): set the curren...

Coding & Algorithms
11
0
131 people solved
Aug 8, 2025
TikTok logo
TikTok
Medium
Software Engineer

Implement distinct islands and sliding maxima

Implement distinct islands and sliding maxima 1) Given a binary grid where 1 represents land and 0 represents water, count how many distinct island sh...

Coding & Algorithms
2
0
37 people solved
Aug 8, 2025
Amazon logo
Amazon
Medium
Software Engineer

Count expressions reaching a target sum

Count expressions reaching a target sum Given an array of non-negative integers nums and an integer target T, assign either a + or − sign to each numb...

Coding & Algorithms
1
0
37 people solved
Aug 8, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Fix a BST with two misplaced keys

Fix a BST with two misplaced keys You are given the root of a binary search tree in which exactly two nodes’ keys were accidentally swapped. Restore t...

Coding & Algorithms
3
0
26 people solved
Aug 8, 2025
Verkada logo
Verkada
Medium
Software Engineer

Find users with access to all cameras

Given entities and relationships (user, owns, camera), (user, belongs_to, group), (group, owns, camera), and (group, belongs_to, group) where groups c...

Coding & Algorithms
7
0
66 people solved
Aug 8, 2025