Tech Interview Questions

Practice 9,160+ 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.11.2026
Showing 20 results
Role
Affirm logo
Affirm
Medium
Software Engineer

Implement and debug event filtering in Python

You are given a list of event dictionaries with keys: id (str), type (str), ts (int, seconds since epoch), payload (dict). Implement filter_events(eve...

Data Manipulation (SQL/Python)
1
0
5 people solved
Jul 15, 2025
Instacart logo
Instacart
Medium
Software Engineer

Discuss conflict, failure, and leadership examples

Discuss conflict, failure, and leadership examples Behavioral & Leadership (Software Engineer Onsite) Prepare four STAR stories that demonstrate your ...

Behavioral & Leadership
5
0
78 people solved
Jul 15, 2025
Instacart logo
Instacart
Medium
Software Engineer

Compute average customer waiting time

Compute average customer waiting time You are given n customer orders; each order i = [a_i, p_i] where a_i is the arrival time and p_i is the preparat...

Coding & Algorithms
6
0
82 people solved
Jul 15, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Debug and refactor a legacy module

Given a legacy module named DasherPicker and a failing test suite, systematically debug and refactor the code while following a provided review checkl...

Coding & Algorithms
40
0
310 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Evaluate arithmetic expression without parentheses

Evaluate arithmetic expression without parentheses Write evaluate(s: string) to compute the value of an arithmetic expression containing non-negative ...

Coding & Algorithms
3
0
38 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Implement weighted random index picker

Implement weighted random index picker Design a class WeightedPicker that is initialized with an array of positive integer weights w and supports pick...

Coding & Algorithms
2
0
24 people solved
Jul 15, 2025
Amazon logo
Amazon
Medium
Software Engineer

Design 2D DP on a DAG

Design 2D DP on a DAG Given a directed acyclic graph G(V, E) with N nodes, M edges, a designated source s, and an integer L, design a 2D dynamic progr...

Coding & Algorithms
6
0
54 people solved
Jul 15, 2025
Amazon logo
Amazon
Medium
Software Engineer

Brainstorm a business problem approach

Brainstorm a business problem approach Analytics & Experimentation Brainstorm (Scenario Provided) Context You are evaluating a feature proposal for a ...

Analytics & Experimentation
4
0
42 people solved
Jul 15, 2025
Meta logo
Meta
Easy
Data Scientist

Probability a negative review came from a lazy reviewer

Bayesian Posterior: Negative Review and Lazy Reviewer Reviewer types in the population: - Lazy reviewers are 20% of reviewers and never leave negative...

Statistics & Math
28
0
66 people solved
Jul 12, 2025
PayPal logo
PayPal
Medium
Data Scientist

Clean and Analyze User Transactions with Python Functions

transactions +---------+---------------------+---------+ | user_id | trans_ts | amount | +---------+---------------------+---------+ | 11 ...

Data Manipulation (SQL/Python)
104
0
416 people solved
Jul 12, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Implement Binary Search for Policy Violation Logs

violations +--------+---------+---------------+ | pin_id | type | violation_date| +--------+---------+---------------+ | 0 | spam | 2022-01...

Data Manipulation (SQL/Python)
57
0
5 people solved
Jul 12, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Implement DelayQueue with Idempotent Task Execution

Scenario Message broker offers DelayQueue where tasks execute at future timestamps, ensuring idempotency on duplicate IDs. Question Implement a delay ...

Coding & Algorithms
29
0
68 people solved
Jul 12, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Implement LRUCache with O(1) Operations and Thread Safety

Scenario High-traffic API needs constant-time eviction cache. Question Implement an LRUCache supporting get(key) and put(key,val) in O( 1). Describe ...

Coding & Algorithms
16
0
62 people solved
Jul 12, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Develop Auto-Complete System for Dish Suggestions

Scenario Search-as-you-type needs dish suggestions with popularity scores. Question Build an auto-complete system using the given (string, score) tupl...

Coding & Algorithms
5
0
25 people solved
Jul 12, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Decode and Explain Ambiguity in Compression Strings

Scenario Compression library that encodes an array as count-value pairs where value is one digit but count may be many digits. Question Implement deco...

Coding & Algorithms
14
0
38 people solved
Jul 12, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Maximize Non-Overlapping Task Scheduling Efficiency

Scenario Job scheduler on a single machine wants to maximise throughput. Question Given tasks with [start, end) times, return the maximum number of no...

Coding & Algorithms
13
0
8 people solved
Jul 12, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

How to Design a Proportional Randomized Sampler?

Scenario Randomized promotion engine must pick an item proportional to its score, but scores have no upper bound. Question Design a sampler pick() tha...

Coding & Algorithms
21
0
52 people solved
Jul 12, 2025
LinkedIn logo
LinkedIn
Medium
Data Scientist

Identify Top Contributors by Recent Post Count

posts +----+---------+---------------------+ | id | user_id | created_at | +----+---------+---------------------+ | 1 | 101 | 2023-09-01...

Data Manipulation (SQL/Python)
63
0
4 people solved
Jul 12, 2025
Google logo
Google
Medium
Data Scientist

Implement Sampling and Minimize Loss in Numerical Coding

Scenario Numerical coding challenges on sampling and loss minimization. Question a) Implement functions to sample from truncated normal distributions ...

Coding & Algorithms
24
0
91 people solved
Jul 12, 2025
Google logo
Google
Medium
Data Scientist

Normalize Columns in Binomial Matrix Efficiently

Scenario Write code that creates a 100×100 matrix of Binomial(1, 0. 5) samples and normalizes each column so it sums to 1. Question Provide an efficie...

Coding & Algorithms
14
0
31 people solved
Jul 12, 2025