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

Optimize Station Sequence for Maximum Car Output in Simulation

Scenario The Car-Building mini-game lets you sequence chassis, engine, and paint stations with limited buffers. Question Describe a strategy to maximi...

Coding & Algorithms
10
0
32 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
Atlassian logo
Atlassian
Medium
Data Scientist

Implement Real-Time Rate Limiting for Web Service Requests

Scenario A web service must throttle traffic from clients; you need to decide in real-time whether each incoming request should be served or rejected ...

Coding & Algorithms
18
0
57 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
Meta logo
Meta
Medium
Data Scientist

Calculate Average Session Length and Compare App Performance

user_sessions +---------+------------+------------+---------------------+---------------------+ | user_id | session_id | app | session_start ...

Data Manipulation (SQL/Python)
125
0
324 people solved
Jul 12, 2025
Apple logo
Apple
Medium
Data Scientist

Find Maximum Sum of Contiguous Subarray Length k

Scenario Monitoring website traffic and needing the highest traffic within any fixed-length time window. Question Given an array of positive integers ...

Coding & Algorithms
19
0
58 people solved
Jul 12, 2025
Meta logo
Meta
Hard
Data Scientist

Analyze Data to Boost Group Post Comment Rates

Analytics Plan to Increase Group Post Comment Coverage A social shopping platform wants to increase the percentage of group posts that receive at leas...

Analytics & Experimentation
69
0
176 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
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
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
Meta logo
Meta
Hard
Data Scientist

Evaluate Factors Before Replacing Recommendation Model

Evaluate Factors Before Replacing a Recommendation Model A large ads platform has built a new recommendation or ranking model and plans to deprecate t...

Machine Learning
62
0
273 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
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
OneMain Financial logo
OneMain Financial
Medium
Data Scientist

Solve Python Challenges: Reverse String, Palindrome, Fibonacci, Unique List

Scenario Live coding round – four quick Python exercises Question Implement a function that reverses a string in-place. Write code that returns True i...

Coding & Algorithms
8
0
22 people solved
Jul 12, 2025
Meta logo
Meta
Medium
Data Scientist

Calculate French User Engagement and U.S. Call Duration

call_logs +---------+-----------+------------+---------+----------+ | caller | recipient | ds | call_id | duration | +---------+-----------+-...

Data Manipulation (SQL/Python)
79
0
377 people solved
Jul 12, 2025
Meta logo
Meta
Easy
Data Scientist

Expected impressions per user under random assignment

Random Assignment of Ad Impressions Across Users In an A/B experiment, Y ad impressions are served uniformly at random across X distinct users. Each i...

Analytics & Experimentation
14
0
31 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
TikTok logo
TikTok
Medium
Data Scientist

Optimize Job Routing in Parallel Machine Scheduling

Scenario In the Production Factory game, jobs with varying processing times arrive and must be routed through two parallel machines to minimize total ...

Coding & Algorithms
23
0
44 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Data Scientist

Implement Function to Determine Mode and Prime Numbers

Scenario Implementing utility algorithms within a data-processing library. Question Write a function that returns the mode of an integer list; if all ...

Coding & Algorithms
19
0
56 people solved
Jul 12, 2025