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

Design logical model and consumption

Design a logical data model and consumption layer supporting business and technical services architecture. Provide an ERD‑level description for Accoun...

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

Write SQL for streaming cohort metrics

Given the schema and sample data below, write SQL to answer the three tasks. Use standard SQL (window functions allowed). Assume timestamps are UTC. T...

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

Aggregate video time and unique pins in Python

Part A (category by average time for videos): You receive a list of pin engagement rows and a category map. pins = [ {"pin_id": 10, "category_id": 1,...

Data Manipulation (SQL/Python)
1
0
8 people solved
Oct 13, 2025
Freddie Mac logo
Freddie Mac
Medium
Data Scientist

Assess SQL cleaning, mapping, joins, keys, and DDL/DML

You inherit a small retail analytics warehouse. Use the schema and sample rows below to answer all parts. Schema and sample data (minimal rows shown):...

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

Compute daily net users from event logs

Given an event log, write SQL to compute, for the target date 2025‑09‑01 ("today"), the counts of new users, retained users, churn users, and net user...

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

Use OrderedDict to dedupe stably

Implement dedupe_preserve_order(seq) that removes duplicates from a list while preserving the order of first appearance, in O(n) time and O(k) space (...

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

Diagnose DAU drop with SQL by country

Write a single SQL query to diagnose a country-level DAU drop for an email product. Assume today is 2025-09-01. DAU is the count of distinct user_id w...

Data Manipulation (SQL/Python)
0
0
4 people solved
Oct 13, 2025
Apple logo
Apple
Hard
Data Scientist

Compute optimal matrix-chain multiplication order

Matrix Chain Multiplication: Optimal Parenthesization and Analysis You are given five matrices to multiply: A1 (10×30), A2 (30×5), A3 (5×60), A4 (60×2...

Coding & Algorithms
6
0
62 people solved
Oct 13, 2025
Microsoft logo
Microsoft
Easy
Data Scientist

Reverse a list in-place

Coding Task: Reverse a List In-Place (Python) Context You're implementing a utility function during a technical screen. The function must reverse a Py...

Coding & Algorithms
11
0
94 people solved
Oct 13, 2025
Netflix logo
Netflix
Medium
Data Scientist

Write SQL for rolling frequency caps

You work on ad serving with per-user rolling 7-day frequency caps at the campaign level. Assume "today" is 2025-09-01 and t0 = 2025-09-01 12:00:00 UTC...

Data Manipulation (SQL/Python)
0
0
10 people solved
Oct 13, 2025
Oracle logo
Oracle
Easy
Software Engineer

Design structure for first unique login user

You are given an online stream of user login events. Each event is a user ID (e.g., an integer or string) indicating that this user has just logged in...

Coding & Algorithms
4
0
50 people solved
Oct 12, 2025
Atlassian logo
Atlassian
Medium
Machine Learning Engineer Locked

Find LCA in a tree and extend to a DAG

This question evaluates proficiency in graph algorithms and data structures, focusing on lowest common ancestor computation in rooted trees and its ge...

Coding & Algorithms
1
0
33 people solved
Oct 11, 2025
Citadel logo
Citadel
Medium
Data Scientist Locked

Match a string with wildcard pattern recursively

This question evaluates proficiency in string pattern matching, recursive problem decomposition, and algorithmic optimization including handling wildc...

Coding & Algorithms
4
0
55 people solved
Oct 9, 2025
Bytedance logo
Bytedance
Hard
Machine Learning Engineer

Count Special Subarrays by Modular Frequency

You are given an integer array nums, and two integers modulo and target, where 0 <= target < modulo. Call an index i special if nums[i] % modulo == ta...

Coding & Algorithms
0
0
8 people solved
Oct 8, 2025
IBM logo
IBM
Easy
Data Scientist

Find minimum operations to make array sorted

Problem You are given an integer array a of length n. Define one operation as follows: 1. Remove the first element x = a[0]. 2. Append x to the end of...

Coding & Algorithms
4
1
65 people solved
Oct 3, 2025
Bitkernel logo
Bitkernel
Hard
Software Engineer

Implement popup and redirect in JavaScript

You are working in a browser environment and must use vanilla JavaScript only (no external libraries). Task Implement a function showPopupAndRedirect(...

Coding & Algorithms
2
0
40 people solved
Oct 3, 2025
Dropbox logo
Dropbox
Medium
Software Engineer Locked

Implement KV Store and Token Bucket

This question evaluates a candidate's skills in implementing core data structures and concurrent algorithms, specifically in-memory key-value store de...

Coding & Algorithms
7
0
74 people solved
Oct 3, 2025
Amazon logo
Amazon
Hard
Software Engineer

Minimize operations to reduce price difference

You are managing an inventory of products and want to adjust their prices. There are n products. The price of the i-th product is given by an integer ...

Coding & Algorithms
6
0
56 people solved
Oct 1, 2025
Amazon logo
Amazon
Hard
Software Engineer

Maximize memory capacity with primary-backup servers

You are helping to optimize the capacity of a cloud system. There are n servers, where n is always even. The memory capacity of the i-th server is giv...

Coding & Algorithms
3
0
58 people solved
Oct 1, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Find longest substring without repeating characters

Problem Given a string s, find the length of the longest contiguous substring that contains no repeated characters. Input - A string s (may contain le...

Coding & Algorithms
2
0
38 people solved
Sep 29, 2025