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

Analyze Group Call Adoption Using SQL Queries

CALL_LOGS | call_id | user_id | call_start | call_end | is_group_call | participant_cnt | | 101 | 12 | 2023-08-01 10:00...

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

Design Algorithm to Minimize Payments in Expense-Sharing App

Scenario Expense-sharing app needs to settle debts among friends after a trip. Question Given a list of transactions (payer, payee, amount), design an...

Coding & Algorithms
28
0
94 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
Robinhood logo
Robinhood
Medium
Data Scientist

Analyze Transaction Flow and User Engagement Efficiently

transactions +---------------+-------------+------------+--------+ | transaction_id| from_user_id| to_user_id | amount | +---------------+------------...

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

Sample and Simulate Price Adjustments in R with dplyr

Products +----+-----------+-------+ | id | product | price | | 1 | phone | 500 | | 2 | tablet | 300 | | 3 | laptop | 1000 | | 4 |...

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

Analyze VR App Usage and Engagement Metrics

vr_usage +---------+------------+---------+------------+----------+ | user_id | date | app_id | session_id | duration | +---------+------------...

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

Analyze New Shops' Activity Compared to Existing Ones

shops +---------+------------+---------------+ | shop_id | created_at | category | +---------+------------+---------------+ | 1 | 2024-01-0...

Data Manipulation (SQL/Python)
53
0
8 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
Amazon logo
Amazon
Medium
Data Scientist

Calculate Weekly, Monthly Watch Hours for Paid Users

video_view_logs +---------+----------+----------------+------------+------------+ | user_id | video_id | watched_seconds| watch_date | device_type| +-...

Data Manipulation (SQL/Python)
87
0
211 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

Design "Restaurants You May Know" Recommendation Algorithm

Design "Restaurants You May Know" Recommendation Algorithm A food-delivery app wants to launch a personalized home-page module called "Restaurants You...

Analytics & Experimentation
36
0
126 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
Meta logo
Meta
Medium
Data Scientist

Calculate Weekly CTR and Campaign-Specific CTR in SQL

AdEvents ad_id | campaign_id | event | view_id | event_date 1 | 10 | impression | 123 | 2023-11-07 1 | 10 | cli...

Data Manipulation (SQL/Python)
66
2
244 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Data Scientist

Explore Subscription Patterns and Status Transitions with SQL/Pandas

subscriptions +-----------------+---------+-------------+ | subscription_id | status | status_date | +-----------------+---------+-------------+ | 10...

Data Manipulation (SQL/Python)
67
0
7 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

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

Remove Duplicates While Preserving Order in List

Scenario A data pipeline receives an unordered list of IDs containing duplicates; downstream components require a duplicate-free list while preserving...

Coding & Algorithms
15
1
54 people solved
Jul 12, 2025
TikTok logo
TikTok
Medium
Data Scientist

Compute 7-Day Rolling Average of Unique Post Viewers

POST_VIEWS +---------+------------+---------+ | user_id | view_date | post_id | | 101 | 2023-08-01 | 10 | | 102 | 2023-08-01 | 11 |...

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

Determine Old vs. New Users' Shop Visibility Changes

SHOP_VISIBILITY_HISTORY +----------+----------------+---------------------+-------------------+---------+ | user_id | user_signup_dt | action_timesta...

Data Manipulation (SQL/Python)
61
0
5 people solved
Jul 12, 2025