Tech Interview Questions

Practice 9,224+ 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.16.2026
Showing 20 results
Role
LinkedIn logo
LinkedIn
Hard
Data Scientist

One of the most comprehensive LinkedIn DS Product Cases!

You are a Data Scientist working on LinkedIn's profile experience. Define, diagnose, and improve profile completion. Answer these questions: 1. How wo...

Analytics & Experimentation
15
0
76 people solved
Apr 30, 2025
Uber logo
Uber
Medium
Data ScientistIntern

Design Rideshare Marketplace Causal Analyses

You are a data scientist at a ride-hailing marketplace. Answer the following case prompts as if you were advising product, operations, and marketplace...

Analytics & Experimentation
2
0
20 people solved
Feb 18, 2026
Bytedance logo
Bytedance
Medium
Software EngineerSenior+

Build a validated add-sub calculator

Given a string expression, write a function that validates and evaluates it. The expression represents arithmetic using only non-negative integers and...

Coding & Algorithms
5
0
44 people solved
Feb 18, 2026
Palo logo
Palo
Medium
Software Engineer

Design a thread-safe high-QPS rate limiter

Question You are building a backend service that must enforce API rate limits. Design and (at a high level) implement a rate limiter, then work throug...

System Design
5
0
44 people solved
Feb 18, 2026
LinkedIn logo
LinkedIn
Medium
Machine Learning Engineer

Generate uniform 0–6 from biased coin

You are given a function: - int getRandom01Biased() returns 0 with probability p and 1 with probability 1-p, where p is unknown and may be any value i...

Coding & Algorithms
14
0
109 people solved
Feb 18, 2026
Shopify logo
Shopify
Medium
Machine Learning Engineer

Simulate robot moves on a grid

You are given an m x n grid and a robot that starts at position (r, c) (0-indexed). You are also given a string commands consisting of characters 'U',...

Coding & Algorithms
10
0
120 people solved
Feb 18, 2026
Easy
Data Scientist Locked

How would you measure and experiment on harmful content?

This question evaluates a data scientist's competency in measuring and experimenting on harmful user-generated content, focusing on severity quantific...

Analytics & Experimentation
2
0
17 people solved
Feb 17, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Compute Plant Infection Stabilization

This question evaluates a candidate's ability to model and simulate discrete-time state transitions on grids, reason about propagation dynamics and ev...

Coding & Algorithms
13
0
88 people solved
Feb 17, 2026
Meta logo
Meta
Hard
Software Engineer

Remove minimum invalid mixed brackets

Given a string s containing letters and bracket characters from the set (), [], {}, remove the minimum number of bracket characters so that the result...

Coding & Algorithms
7
0
66 people solved
Feb 17, 2026
Meta logo
Meta
Hard
Software Engineer

Connect next pointers for each tree level

You are given the root of a binary tree where each node has fields left, right, and next (initially null). For every node, set its next pointer to the...

Coding & Algorithms
2
1
27 people solved
Feb 17, 2026
Sunrise logo
Sunrise
Easy
Software Engineer

Solve common data-structure and puzzle problems

Solve common data-structure and puzzle problems Solve the following independent problems (language of your choice; assume typical 32/64-bit constraint...

Coding & Algorithms
2
0
38 people solved
Jul 21, 2025
Meta logo
Meta
Easy
Data Scientist Locked

Detect bots using comment distribution patterns

This question evaluates a candidate's competency in behavioral analytics, feature engineering, anomaly and bot detection, statistical validation, and ...

Analytics & Experimentation
4
0
59 people solved
Feb 16, 2026
Meta logo
Meta
Easy
Data Scientist Locked

Investigate why an advertiser’s spend decreased

This question evaluates a Data Scientist's competency in analytics and experimentation—specifically root-cause analysis of ad spend declines, attribut...

Analytics & Experimentation
4
0
66 people solved
Feb 16, 2026
Bitkernel logo
Bitkernel
Medium
Software Engineer

Count calls in recursive function evaluation

Consider the following recursive function in C-like pseudocode: `c int x(int n) { if (n <= 3) return 1; else return x(n - 2) + x(n - 4) + 1; }...

Software Engineering Fundamentals
4
0
33 people solved
Oct 24, 2025
LinkedIn logo
LinkedIn
Medium
Software EngineerSenior+

Solve Cache, Window, and Heap Problems

You may be asked to solve multiple algorithmic problems in coding rounds: 1. Frequency-based cache: Implement a cache with get(key) and put(key, value...

Coding & Algorithms
0
0
14 people solved
Feb 16, 2026
Wayfair logo
Wayfair
Easy
Data Scientist

How to improve complaint resolution

You are given three related tables for a Wayfair-style e-commerce customer-support dataset. complaints - complaint_id STRING - customer_id STRING - or...

Analytics & Experimentation
2
0
28 people solved
Feb 16, 2026
Meta logo
Meta
Easy
Data Scientist Locked

Analyze and mitigate fake advertiser accounts

This question evaluates competency in fraud detection analytics, including operationally defining fake advertiser accounts, designing longitudinal met...

Analytics & Experimentation
10
0
101 people solved
Feb 15, 2026
Voleon logo
Voleon
Hard
Software EngineerNew Grad Locked

Solve classic coding interview problems

These problems evaluate algorithmic problem-solving skills including dynamic programming and combinatorics for the egg-dropping scenario, array manipu...

Coding & Algorithms
25
0
166 people solved
Feb 15, 2026
Bytedance logo
Bytedance
Medium
Software Engineer

Count Similar Photo Groups

You are given n photos labeled 0 to n - 1 and an n x n binary matrix isSimilar. - isSimilar[i][j] = 1 means photo i and photo j are directly similar. ...

Coding & Algorithms
2
0
21 people solved
Feb 15, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Implement greedy decoding and beam search

You are given access to an auto-regressive language model that can score the next token based on a prefix. Assume: - next_logprobs(prefix_tokens) -> M...

Coding & Algorithms
8
0
134 people solved
Feb 15, 2026