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
Medium
Software Engineer

Decide string transform with directional tokens and walls

Decide string transform with directional tokens and walls You are given two equal-length strings start and target of length n, each consisting only of...

Coding & Algorithms
4
0
59 people solved
Jul 15, 2025
Uber logo
Uber
Medium
Software Engineer

Implement uniform sampling in squares

Implement uniform sampling in squares Implement a class Square representing an axis-aligned square on the 2D plane that supports sampling a uniformly ...

Coding & Algorithms
6
0
75 people solved
Jul 15, 2025
SoFi logo
SoFi
Medium
Software Engineer

Design a key-value store with getLast

Design a key-value store with getLast Design and implement an in-memory key–value store with this API: add(key, value), get(key), remove(key), and get...

Coding & Algorithms
11
0
82 people solved
Jul 15, 2025
Apple logo
Apple
Medium
Data Scientist

Implement sparse vector dot product and cosine similarity

Sparse Vector Class Implement a SparseVector class for high-dimensional vectors where most entries are zero. Representation Assume each vector has: - ...

Coding & Algorithms
6
0
56 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Maximize number with one digit swap

Maximize number with one digit swap Given a non-negative integer n (as an int or string), perform at most one swap of two digits to produce the maximu...

Coding & Algorithms
2
0
30 people solved
Jul 15, 2025
Amazon logo
Amazon
Medium
Software Engineer

Design 2D DP on a DAG

Design 2D DP on a DAG Given a directed acyclic graph G(V, E) with N nodes, M edges, a designated source s, and an integer L, design a 2D dynamic progr...

Coding & Algorithms
6
0
54 people solved
Jul 15, 2025
Amazon logo
Amazon
Medium
Software Engineer

Brainstorm a business problem approach

Brainstorm a business problem approach Analytics & Experimentation Brainstorm (Scenario Provided) Context You are evaluating a feature proposal for a ...

Analytics & Experimentation
4
0
42 people solved
Jul 15, 2025
Palantir logo
Palantir
Medium
Software Engineer

Group employees by shared interests

Given N employees, each with an integer id and a set of interests (strings), write an algorithm to find all employees who share at least one common in...

Coding & Algorithms
17
0
185 people solved
Jul 15, 2025
TikTok logo
TikTok
Medium
Software Engineer

Write complex SQL for cohorts and retention

Given tables users(uid, created_at, country), orders(order_id, uid, amount, created_at, status), and events(uid, ts, event_type, campaign), write one ...

Data Manipulation (SQL/Python)
0
0
9 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Evaluate arithmetic expression without parentheses

Evaluate arithmetic expression without parentheses Write evaluate(s: string) to compute the value of an arithmetic expression containing non-negative ...

Coding & Algorithms
3
0
38 people solved
Jul 15, 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
Capital One logo
Capital One
Medium
Data Scientist

Explain Python Virtual Environment Setup and Function Analysis

Scenario Technical screen where candidate and interviewer jointly walk through Python code snippets used in a data-science repository. Question Show h...

Coding & Algorithms
57
0
9 people solved
Jul 12, 2025
PayPal logo
PayPal
Medium
Data Scientist

Describe Leading Without Authority in Data Management

Behavioral Interview: Leading Without Authority in Data Management You will be assessed on cultural fit and how you operate in ambiguous, messy data e...

Behavioral & Leadership
30
0
75 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
TikTok logo
TikTok
Medium
Data Scientist

Compute Averages of Unique Numbers in Dictionary Lists

Scenario Python tech screen: given a dictionary mapping keys to numeric lists, e.g., {'a':[1,2,1],'b':[1,2,3]}, compute the average of each list after...

Coding & Algorithms
24
0
46 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
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
Hard
Data Scientist

Impact of parents joining Facebook on teen engagement

Parental Presence and Teen Engagement on Facebook Facebook's teen audience overlaps increasingly with parents, who may friend their children, comment ...

Analytics & Experimentation
66
1
133 people solved
Jul 12, 2025
Meta logo
Meta
Medium
Data Scientist

Determine Facebook's Restaurant Recommendation Viability Using Data

Determine Facebook's Restaurant Recommendation Viability Using Data Facebook may launch a restaurant-recommendation product that helps people discover...

Analytics & Experimentation
6
0
28 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