Tech Interview Questions

Practice 9,031+ 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.0k Questions 480 Companies08.05.2026
Showing 20 results
Role
Google logo
Google
Easy
Software Engineer

Compute max coins with 3-step token moves

You are given a one-dimensional board with n positions represented by a string s of length n: - . = empty cell - T = token - C = coin You may move tok...

Coding & Algorithms
22
0
151 people solved
Oct 16, 2025
Atlassian logo
Atlassian
Medium
Machine Learning Engineer Locked

Assign bookings to minimum tennis courts

This question evaluates interval scheduling and resource-allocation competencies, testing algorithmic and data-structure knowledge for handling time-i...

Coding & Algorithms
3
0
34 people solved
Oct 15, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Design cache with least-recently-used eviction

You are asked to design an in-memory key–value cache that supports a least-recently-used (LRU) eviction policy. The cache must support the following o...

Coding & Algorithms
3
0
38 people solved
Oct 14, 2025
Roblox logo
Roblox
Hard
Software Engineer

Rank queries by prefix, frequency, and time

You are given three arrays of the same length n: - queries[i]: a non-empty string representing the text of the i-th query. - timestamps[i]: an integer...

Coding & Algorithms
32
0
290 people solved
Oct 14, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Build a time-based key-value store

Problem Design a data structure that stores multiple values for the same key at different timestamps, and can retrieve the most recent value as of a g...

Coding & Algorithms
6
0
69 people solved
Oct 14, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Implement a Tic-Tac-Toe game class

Problem Implement a class that supports playing an n × n Tic-Tac-Toe game. Requirements Create a class TicTacToe(n) with: - move(row, col, player) -> ...

Coding & Algorithms
6
0
67 people solved
Oct 14, 2025
Databricks logo
Databricks
Hard
Data ScientistIntern

Find top-5 most similar rows across datasets

You are given two datasets with the same feature columns: - source (rows you want to match): - source_id (STRING/INT) - f1...fk (NUMERIC; may cont...

Coding & Algorithms
2
0
45 people solved
Oct 14, 2025
Hard
Data Scientist Locked

Derive and regularize logistic regression

This question evaluates proficiency in logistic regression theory and regularization, GLM versus OLS assumptions, class imbalance handling and calibra...

Machine Learning
3
0
25 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL to analyze shop visibility

You are given two tables. Use standard SQL (window functions allowed). Assume "today" is 2025-09-01 and that “currently visible” means a shop’s last s...

Data Manipulation (SQL/Python)
1
0
2 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Write SQL to compute campaign net revenue

Using the schema and sample data below, write SQL to produce, for each campaign_id and segment, the following metrics for August 2025: total_reached, ...

Data Manipulation (SQL/Python)
17
0
122 people solved
Oct 13, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Find top category by video time spent

Pandas required. You are given a DataFrame df with columns: user_id (int), pin_id (int), pin_type (str), category (str or None), time_spent_sec (numer...

Data Manipulation (SQL/Python)
18
0
140 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Find top category per region in Aug 2025

You are given the following schema and sample data. Schema: - customers(customer_id INT, name TEXT, region TEXT) - orders(order_id INT, customer_id IN...

Data Manipulation (SQL/Python)
7
0
52 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL for video-call recipients and FR activity

Given the schema and samples below, write ANSI‑SQL to answer both questions. Assume dates are stored in UTC. Today is 2025-09-01, so “yesterday” is 20...

Data Manipulation (SQL/Python)
61
1
569 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL/pandas for KPI anomaly

Write SQL (and outline equivalent pandas) for a KPI anomaly investigation. Assume today = '2025-09-01'. Schema: Users(user_id INT, country TEXT, signu...

Data Manipulation (SQL/Python)
9
0
78 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist Locked

Diagnose a sudden KPI drop

This question evaluates operational analytics and experimentation competencies, including instrumentation and data-quality checks, de-seasonalization ...

Analytics & Experimentation
3
0
37 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL for daily chats and fast replies

You are given a messaging events table that records one row per message sent. Schema - messages( date DATE, -- calendar date of event (UTC) ts TIMES...

Data Manipulation (SQL/Python)
3
0
4 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Define and query shop visibility

You are given the following schema. Use only the columns provided; do not introduce new fields or labels. Tables and columns: - shops(shop_id INT, sho...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Implement minimal-cost overtime/contractor allocation

You must cover H extra engineering hours this week at minimum cost using employee overtime and optional contractors. Each employee i has a maximum ove...

Coding & Algorithms
7
0
51 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Write SQL for theme-park revenue and visits

You are given theme-park ticketing and visits data. Write SQL to answer the following, using the sample schema and tables below. Return both the query...

Data Manipulation (SQL/Python)
0
0
9 people solved
Oct 13, 2025
Stripe logo
Stripe
Medium
Data Scientist

Write SQL to monitor weekly chargeback spikes

Write a single SQL query (PostgreSQL) to detect weekly chargeback spikes by country and industry. Week starts Monday (use date_trunc('week', ts) with ...

Data Manipulation (SQL/Python)
0
0
4 people solved
Oct 13, 2025