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
Meta logo
Meta
Medium
Data Scientist

Calculate Total Interactions for Each Product

Interactions +----------+-----------+------------+--------------+ | buyer_id | seller_id | product_id | interactions | +----------+-----------+-------...

Data Manipulation (SQL/Python)
56
0
181 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
Amazon logo
Amazon
Medium
Business Intelligence Engineer

Identify Most Popular First-Watched Movie in Viewing History

MOVIE_VIEWS +------------+--------------------+------------+ | customer_id| title | date | +------------+--------------------+-----...

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

Calculate Regional Revenue and Identify Top Customers

Customers | customer_id | name | region | |-------------|-------|--------| | 1 | Alice | East | | 2 | Bob | West | | 3 ...

Data Manipulation (SQL/Python)
9
1
4 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Business Intelligence Engineer

Analyze Seller Compliance and Customer Purchase Patterns

SELLER_STATUS +-----------+------------+-----------+ | seller_id | date | status | +-----------+------------+-----------+ | 1 |2019-0...

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

Calculate Survey Response Rate and Quality Metric in SQL

survey_responses +---------+----------+---------------------+---------------------+-------+ | user_id | survey_id| impression_ts | click_ts ...

Data Manipulation (SQL/Python)
70
0
159 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Business Intelligence Engineer

Identify Customers Purchasing Every Product in Catalog

X_PURCHASES +-------------+---------+ | customer_id | pro_key | +-------------+---------+ | 1 | A | | 1 | B | | 2 ...

Data Manipulation (SQL/Python)
4
0
14 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Business Intelligence Engineer

Count Customers Buying Both 'Kindle' and 'Alexa'

ITEMS +---------+-----------+ | ITEM_ID | ITEM_NAME | +---------+-----------+ | 101 | Kindle | | 202 | Alexa | | 303 | Fire TV | ...

Data Manipulation (SQL/Python)
12
0
24 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Business Intelligence Engineer

Find Top Three Books by City in Recent Months

BOOK_SALES +------+--------+------------+------------+ | city | asin | sale_date | units_sold | +------+--------+------------+------------+ | NYC ...

Data Manipulation (SQL/Python)
4
0
20 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Business Intelligence Engineer

Calculate Rolling 7-Day Sum of Answers by Device

ANSWERS +------------+--------+---------+ | date | device | answers | +------------+--------+---------+ | 2019-01-01 | echo | 10 | | 2019...

Data Manipulation (SQL/Python)
11
0
41 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Business Intelligence Engineer

Identify Unique Unordered City Pairs in Flight Log

FLIGHTS +----------------+---------------+ | departure_city | arrival_city | +----------------+---------------+ | NYC | LAX | | ...

Data Manipulation (SQL/Python)
3
0
2 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Business Intelligence Engineer

Calculate Weekly Event Sums from Daily Counts

EVENT_LOG +------------+------+ | event_date | cnt | +------------+------+ | 2025-05-01 | 17 | | 2025-05-02 | 12 | | 2025-05-08 | 30 | +-------...

Data Manipulation (SQL/Python)
2
0
6 people solved
Jul 12, 2025
Meta logo
Meta
Medium
Data Scientist

Calculate Weekly Thread Engagement with Reactions in SQL

messages +------------+--------+----------+--------------+---------------------+ | message_id | sender | receiver | has_reaction | timestamp ...

Data Manipulation (SQL/Python)
79
0
191 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
28
0
68 people solved
Jul 12, 2025
Meta logo
Meta
Medium
Data Scientist

Expected meetings in Room 1 after random assignment

Expected Meetings in Room 1 Conditional on Being Non-empty There are N rooms and k meetings. Each meeting independently chooses a room uniformly at ra...

Analytics & Experimentation
12
0
32 people solved
Jul 12, 2025
Meta logo
Meta
Medium
Data Scientist

Analyze Conversation Engagement and Reaction Usage Effectively

messages +-----------+--------+----------+--------------+---------------------+ | messageid | sender | receiver | has_reaction | timestamp |...

Data Manipulation (SQL/Python)
173
3
404 people solved
Jul 12, 2025
Meta logo
Meta
Medium
Data Scientist

Compute Shop Visibility Rate Using SQL and Python

shop_events | event_id | shop_id | user_id | event_type | event_time | | 1 | 101 | 1001 | view | 2023-07-01 10:05:00 | | ...

Data Manipulation (SQL/Python)
73
0
170 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Business Intelligence Engineer

Identify Frequent Actor-Director Collaborations in Film Database

FILMOGRAPHY +-------+---------+------------+ | actor | dir | date | +-------+---------+------------+ | Tom | Nolan | 2020-01-01 | | Tom ...

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

Implement Function to Return First n Prime Numbers

Scenario Quick algorithm screen to gauge Python fluency. Question Implement a Python function that returns the first n prime numbers. Hints An optimiz...

Coding & Algorithms
10
0
38 people solved
Jul 12, 2025
Yahoo logo
Yahoo
Medium
Data Scientist

Solve Data Structure Challenges with Python Algorithms

Scenario You are given coding challenges in Python to manipulate simple data structures. Question Remove duplicates from a list of integers while pres...

Coding & Algorithms
54
0
102 people solved
Jul 12, 2025