Tech Interview Questions

Practice 9,160+ 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.2k Questions 486 Companies08.11.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
Amazon logo
Amazon
Medium
Data Scientist

Calculate 7-Day Rolling Average for Energy Consumption

Scenario Hiring manager wants a quick coding exercise to verify programming fluency. Question Write a Python function that takes a list of daily energ...

Coding & Algorithms
39
0
87 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Data Scientist

Identify Date with Highest Total kWh Consumption Using Pandas

meter_readings +----------+------------+---------------+---------+ | meter_id | timestamp | kwh_consumed | city | +----------+------------+------...

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

Build Accurate Energy Consumption Prediction Model for Utilities

Build an Energy Consumption Prediction Model for Utilities You need to build and productionize a regression model that predicts daily energy consumpti...

Machine Learning
15
0
50 people solved
Jul 12, 2025
Meta logo
Meta
Medium
Data Scientist

Calculate Response Rate and Compare User Survey Ratings

USERS user_id | signup_date 10 | 2024-03-20 11 | 2024-04-01 12 | 2024-04-05 ​ SURVEYS survey_id | user_id | sent_at 1 | 10 ...

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

Determine Key Statistics for Article Comment Distribution Analysis

Analyze Comment Counts per Article You are analyzing the distribution of the number of comments each article receives on a content website. You have c...

Statistics & Math
86
1
183 people solved
Jul 12, 2025
Roblox logo
Roblox
Medium
Data Scientist

Implement Python Function for Statistical Test P-Values

Scenario You need a utility that calculates p-values for one-sided and two-sided statistical tests. Question Write a Python function compute_p_value(s...

Coding & Algorithms
14
0
47 people solved
Jul 12, 2025
Meta logo
Meta
Medium
Data Scientist

Identify Top 10 Users by Average Call Duration

video_calls | call_id | user_id | start_time | end_time | |---------|---------|----------------------|----------------------| | ...

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

Determine Product Buyer Count and Interaction Percentage

interactions +-----------+----------+------------+----+------------+ | seller_id | buyer_id | product_id | li | create_date| +-----------+----------+-...

Data Manipulation (SQL/Python)
13
0
34 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
Snapchat logo
Snapchat
Medium
Machine Learning Engineer

Find Shortest Clear Grid Path

Given an n x n binary grid, where 0 means open and 1 means blocked, return the length of the shortest clear path from the top-left cell to the bottom-...

Coding & Algorithms
3
0
34 people solved
Jun 28, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Find the Slowest Function from Profiler Events

You are given a time-ordered profiler event log for a single-threaded program. Each event is one of: - START functionName timestamp: execution enters ...

Coding & Algorithms
1
0
14 people solved
Jun 17, 2025
xAI logo
xAI
Easy
Software Engineer

Design a Fixed-Capacity Least-Recently-Used Cache

Design a Fixed-Capacity Least-Recently-Used Cache Design and implement a cache with a fixed maximum capacity that evicts the least recently used entry...

Coding & Algorithms
0
0
6 people solved
Jun 7, 2025
xAI logo
xAI
Hard
Machine Learning Engineer

Greedy Longest-Match Tokenizer for an LLM Data Pipeline

You are building a text pre-processing step for a large-language-model training pipeline. Before raw text can be fed into the model, it must be split ...

Coding & Algorithms
0
0
3 people solved
May 30, 2025
OpenAI logo
OpenAI
Hard
Machine Learning Engineer

Implement in-memory database insert and delete operations

Design and implement a simple in-memory database (key-value store) that supports the following operations: - insert(key, value): Insert a key-value pa...

Coding & Algorithms
12
0
170 people solved
Apr 6, 2025
Google logo
Google
Medium
Data ScientistIntern Locked

Find Longest Increasing Continuous Subarray

Solve the longest increasing contiguous subarray problem in one pass. Includes Python code, edge cases, complexity, and a follow-up for returning the ...

Coding & Algorithms
4
0
43 people solved
Mar 27, 2025
Meta logo
Meta
Hard
Software Engineer

Compute tree right view and target-sum subarrays

You are given two separate programming tasks. --- Task 1: Right-side view of a binary tree You are given the root of a binary tree. Imagine standing o...

Coding & Algorithms
3
0
28 people solved
Mar 23, 2025
Optiver logo
Optiver
Medium
Data Scientist

Make Two Apple Piles Equal With Doubling Moves

You have two piles of apples: the first pile contains a apples and the second pile contains b apples. In one move you choose one pile to be the receiv...

Coding & Algorithms
0
0
6 people solved
Mar 21, 2025
Jane Street logo
Jane Street
Medium
Data ScientistIntern

Streaming Equivalence of Two Trade Feeds with Per-Company Ordering

A market-data system receives trade events from two independent feeds. Each event is a pair (company, trade_id) identifying one trade for one company....

Coding & Algorithms
0
0
6 people solved
Oct 12, 2022
Jane Street logo
Jane Street
Hard
Software Engineer

Snake Game: Minimum Moves to Reach the Apple

Snake Game: Minimum Moves to Reach the Apple You are simulating the classic Snake game on a grid with R rows and C columns. Cells are identified as (r...

Coding & Algorithms
1
0
13 people solved
Sep 14, 2022