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
TikTok logo
TikTok
Medium
Machine Learning Engineer

Count subarrays summing to target

Question LeetCode 560. Subarray Sum Equals K – Given an integer array nums and an integer k, return the total number of continuous subarrays whose sum...

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

Compute balances and array queries

Question Given a list of transactions where each transaction has a userId and an amount (positive for credit, negative for debit), compute the final b...

Coding & Algorithms
5
0
53 people solved
Aug 4, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Solve string match and DashMart BFS

Question Implement a string-matching function that returns the first index of a pattern in a text (akin to LeetCode 28 Implement strStr()). 2) “Dash M...

Coding & Algorithms
7
0
66 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Machine Learning Engineer

Check diagonal and compute window statistics

Question Given a square matrix, determine whether all elements on its main diagonal are identical. LeetCode 346. Moving Average from Data Stream – des...

Coding & Algorithms
9
0
69 people solved
Aug 4, 2025
DRW logo
DRW
Medium
Software Engineer

Solve odd-string, digit swap, patient slot assignment

Question Task 1 – Odd-occurrence string: Write a function that, given an integer N (1..200 000), returns a length-N lowercase string in which every le...

Coding & Algorithms
4
0
74 people solved
Aug 4, 2025
Salesforce logo
Salesforce
Hard
Software Engineer

Design cloud & k8s architecture

Design cloud & k8s architecture Technical Screen: Kubernetes, Cloud Services, and Secure CI/CD Context You are designing and operating services on Kub...

System Design
28
0
81 people solved
Aug 4, 2025
Vanta logo
Vanta
Medium
Software Engineer

Design test-run logging and query functions

Question Implement log(test_id, timestamp, status) to record a test run, where timestamps are strictly increasing across all test IDs. Implement get_m...

Coding & Algorithms
29
0
243 people solved
Aug 4, 2025
Capital One logo
Capital One
Medium
Data Scientist

Estimate Venmo Revenue and Boost User Engagement Metrics

Estimate Venmo Revenue and Boost User Engagement Metrics Growth and Monetization Case: Venmo (Peer-to-Peer Payments) Context You are evaluating growth...

Analytics & Experimentation
4
0
40 people solved
Aug 4, 2025
Shopify logo
Shopify
Medium
Data Scientist

Calculate Week-over-Week Revenue Change Using SQL

transactions +----+---------+---------+------------+ | id | user_id | revenue | order_date | +----+---------+---------+------------+ | 1 | 101 | ...

Data Manipulation (SQL/Python)
96
0
338 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Calculate Response Rate and Compare New vs. Existing User Scores

survey_events +---------+------------+-----------+--------------+---------------------+ | user_id | is_new_user| responded | survey_score | event_time...

Data Manipulation (SQL/Python)
1
0
5 people solved
Aug 4, 2025
Capital One logo
Capital One
Medium
Data Scientist

Evaluate Python Class Design in Data Pipeline

Evaluate Python Class Design in Data Pipeline Scenario You are reviewing a Python class used in an ML/data pipeline that follows the scikit-learn-styl...

Machine Learning
3
0
53 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Identify 3-Person Call Cycles in Video-Calling App

Calls callerid | recipientid | ds | call_id | duration 1001 | 2001 | 2023-02-20| 555 | 180 2001 | 3001 | 2023-02-20| ...

Data Manipulation (SQL/Python)
0
0
6 people solved
Aug 4, 2025
Visa logo
Visa
Medium
Data Scientist

Compute Total Spent in 2023 Excluding Refunds

transactions +----------------+---------+-------------+--------+------------------+ | transaction_id | user_id | merchant_id | amount | transaction_da...

Data Manipulation (SQL/Python)
0
0
6 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Compare Instagram and Facebook Stories Using Key Performance Metrics

Compare Instagram and Facebook Stories Using Key Performance Metrics Scenario You are a data scientist tasked with quantitatively comparing the succes...

Analytics & Experimentation
2
0
41 people solved
Aug 4, 2025
Upstart logo
Upstart
Medium
Data Scientist

Simulate Radioactive Decay to Validate Analytical Solution

Scenario Same radioactive-decay problem, but now validate the analytical answer via simulation during the interview. Question Share screen and write r...

Coding & Algorithms
10
0
101 people solved
Aug 4, 2025
Walmart Labs logo
Walmart Labs
Medium
Data Scientist

Find Index Pairs of Matching Elements in Arrays

Scenario Marketing analytics team needs to find common elements between two sorted arrays of user IDs. Question Given two sorted integer arrays withou...

Coding & Algorithms
3
0
51 people solved
Aug 4, 2025
Spokeo logo
Spokeo
Medium
Data Scientist

Calculate Customer Lifetime Value for Spokeo Using Models

Calculate Customer Lifetime Value for Spokeo Using Models Estimate Customer Lifetime Value (CLV) for Spokeo Context Spokeo monetizes via consumer subs...

Analytics & Experimentation
4
0
37 people solved
Aug 4, 2025
Spokeo logo
Spokeo
Medium
Data Scientist

Design a Controlled TV-Advertising Experiment for Sign-Ups

Design a Controlled TV-Advertising Experiment for Sign-Ups Controlled TV Advertising Experiment: Incremental Website Sign-ups Context You are asked to...

Analytics & Experimentation
3
0
28 people solved
Aug 4, 2025
Spokeo logo
Spokeo
Medium
Data Scientist

Explain Your Career Transition and Motivation for Joining Spokeo

Explain Your Career Transition and Motivation for Joining Spokeo Behavioral Interview — Data Scientist (Onsite) Context You are in an HR/Manager behav...

Behavioral & Leadership
2
0
21 people solved
Aug 4, 2025
DoorDash logo
DoorDash
Hard
Data Scientist

Diagnose Causes of High Out-of-Stock Rate in Groceries

Diagnose Causes of High Out-of-Stock Rate in Groceries Product and Operations Case: Grocery OOS, Delivery Radius, and Free Delivery Context You are a ...

Analytics & Experimentation
12
0
115 people solved
Aug 4, 2025