Tech Interview Questions

Practice 9,555+ interview questions from top companies including Google, Meta, Amazon, and more. Filter by company, role, and category.

Popular Interview Questions

Interview Questions

Practice the exact questions companies are asking right now.

9.6k Questions 505 Companies08.05.2026
Showing 20 results
Role
Amazon logo
Amazon
Medium
Data Scientist

Determine Length of Longest Unique Substring

Scenario Online assessment: coding portion that follows the SQL questions. Question Implement a function that, given a string s, returns the length of...

Coding & Algorithms
4
0
30 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Identify Number Pairs Adding to Target in Array

Scenario Coding round to identify all number pairs that add up to a target in an array containing duplicates. Question Given an integer array (may con...

Coding & Algorithms
26
0
84 people solved
Aug 4, 2025
Snapchat logo
Snapchat
Medium
Data Scientist

Compute User Retention and Analyze Event Data

user_events +---------+---------------------+------------+-------+ | user_id | event_time | event_type | page | +---------+-----------------...

Data Manipulation (SQL/Python)
87
0
304 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Generate Synthetic Clickstream Data with Python Function

Scenario The analytics team needs to generate synthetic click-stream records to test a new reporting pipeline before real traffic arrives. Question Wr...

Coding & Algorithms
201
1
636 people solved
Aug 4, 2025
CloudTrucks logo
CloudTrucks
Medium
Data Scientist

Assess Cultural Fit and Motivation for Joining CloudTrucks

Assess Cultural Fit and Motivation for Joining CloudTrucks Behavioral Interview — Data Scientist Phone Screen (CloudTrucks) Scenario A recruiter is as...

Behavioral & Leadership
1
0
15 people solved
Aug 4, 2025
Voleon Group logo
Voleon Group
Medium
Data Scientist

Pre-process Financial Data for Linear Regression Modeling

market_data +------------+----------+----------+--------+ | date | feature1 | feature2 | target | +------------+----------+----------+--------+ ...

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

Analyze Recent User Activity from Video Call Logs

video_calls caller | recipient | ds | call_id | duration 123 | 456 | 2019-01-01 | 4325 | 864.4 032 | 789 | 2019-01-01 | 9395 | 263.7 456 | 032 | 2019-...

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

Calculate Daily Visibility Score for Each Shop

shop_events | user_id | event_time | event_type | product_id | shop_id | |---------|------------|------------|------------|---------| | 101 | 2023...

Data Manipulation (SQL/Python)
1
0
8 people solved
Aug 4, 2025
DoorDash logo
DoorDash
Medium
Data Scientist

Measure Late Deliveries and Identify Top Delayed Restaurants

orders +----------+---------+--------------+---------------------+-------------------------+-----------------------+ | order_id | user_id | restaurant...

Data Manipulation (SQL/Python)
6
1
46 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Select Top Customers Using Transaction Data Filters

transactions +----+---------+------------+--------+ | id | user_id | order_date | amount | +----+---------+------------+--------+ | 1 | 101 | 202...

Data Manipulation (SQL/Python)
249
1
746 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Analyze Cross-Country Call Data for Recent Trends

Users +---------+-------------+----------+ | user_id | signup_date | country | +---------+-------------+----------+ | 1 | 2021-01-04 | US ...

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

Retrieve First Active and Last Inactive Dates per User

Given a table activity that tracks user activities, write a SQL query to retrieve the first active date and last inactive date for each user. Table Sc...

Data Manipulation (SQL/Python)
187
9
356 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Analyze User Engagement and Spammer Read-Rate in SQL

messages +------------+------------+-------------+--------------+-----------+ | sender_id | receiver_id| message_id | sent_date | read_date | +--...

Data Manipulation (SQL/Python)
1
0
7 people solved
Aug 4, 2025
PayPal logo
PayPal
Hard
Data Scientist

Design A/B Test to Measure PayPal Cashback Value

Design A/B Test to Measure PayPal Cashback Value Scenario PayPal plans to offer a targeted cashback incentive for purchases at Walmart. You need to de...

Analytics & Experimentation
2
0
49 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Understand SQL: DELETE vs TRUNCATE, VIEW vs TABLE, CROSS JOIN

employees +----+--------+---------+ | id | name | dept_id | +----+--------+---------+ | 1 | Alice | 10 | | 2 | Bob | 20 | | 3 | Car...

Data Manipulation (SQL/Python)
77
0
139 people solved
Aug 4, 2025
Etsy logo
Etsy
Medium
Data Scientist

Measure and Improve Listing Quality with Key Metrics

Measure and Improve Listing Quality with Key Metrics Evaluating and Improving Listing Quality in an Online Marketplace Scenario You are a product/anal...

Analytics & Experimentation
59
0
144 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Analyze Top 10 Items' Revenue Contribution by Category

sales +----------+------------+---------+---------+------------+ | order_id | category | item_id | revenue | order_date | +----------+------------+-...

Data Manipulation (SQL/Python)
62
0
197 people solved
Aug 4, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Find available reservation time slots

Problem You are building an API to show which time slots are available for booking at a restaurant. You are given: - The restaurant’s opening hours (p...

Coding & Algorithms
12
0
101 people solved
Aug 2, 2025
J.P. Morgan logo
J.P. Morgan
Medium
Software Engineer

Compute longest palindromic subsequence

Given a string s (1 ≤ |s| ≤ 2000), implement a function that returns the length of the longest subsequence of s that reads the same forward and backwa...

Coding & Algorithms
1
0
25 people solved
Aug 1, 2025
Meta logo
Meta
Medium
Data Engineer

Compute cumulative metrics with full joins

Tables: - daily_metrics(date DATE, content_id STRING, daily_value BIGINT) - cumulative_metrics(date DATE, content_id STRING, cumulative_value BIGINT) ...

Data Manipulation (SQL/Python)
0
0
8 people solved
Aug 1, 2025