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
TikTok logo
TikTok
Easy
Data Scientist

When prioritize precision vs recall

Context You are working on a product team and building (or evaluating) a binary classifier that triggers an action (e.g., show a warning, block conten...

Machine Learning
3
0
49 people solved
Nov 15, 2025
Meta logo
Meta
Medium
Software Engineer

Design a Scalable Post, Feed, and Search Service

Design a Scalable Post, Feed, and Search Service Design a social-post service with three core capabilities: a user can publish a text post, retrieve a...

System Design
1
0
11 people solved
Mar 2, 2026
Meta logo
Meta
Medium
Software Engineer

Resolve a cd Path Against the Current Directory

Resolve a cd Path Against the Current Directory Implement path resolution for a simplified Unix-like cd command. cwd is a normalized absolute path. ar...

Coding & Algorithms
0
0
12 people solved
Mar 2, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Implement Parallel Image Processing

Build an image-processing utility in Python using the Pillow library. You are given a collection of image file paths and an output directory. For each...

Coding & Algorithms
3
0
14 people solved
Mar 2, 2026
Reddit logo
Reddit
Hard
Machine Learning Engineer Locked

Solve palindrome and list tasks

This question evaluates proficiency in string algorithms and linked list manipulation, specifically techniques for constructing the shortest palindrom...

Coding & Algorithms
3
0
66 people solved
Mar 2, 2026
Amazon logo
Amazon
Medium
Software Engineer

Design pickup point planning for ride-hailing

Design an algorithm and high-level system for recommending a pickup point in a ride-hailing app. A passenger requests a ride from an approximate city ...

System Design
8
0
68 people solved
May 28, 2025
Amazon logo
Amazon
Medium
Software Engineer

Describe Linux and SQL experience

You are being assessed on basic tooling skills as an engineer. Answer: 1. Linux/Unix commands: list commands you are comfortable with and briefly expl...

Software Engineering Fundamentals
6
0
46 people solved
May 28, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Update Box Probabilities After Drawing Red Balls

Three boxes are equally likely to be selected: - Box A contains two red balls. - Box B contains one red and one blue ball. - Box C contains two blue b...

Statistics & Math
0
0
6 people solved
Jan 5, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Derive the Long-Run Sex Ratio Under a Stopping Rule

Assume each child is independently equally likely to be a girl or a boy. Every family continues having children until its first boy, then stops. For a...

Statistics & Math
0
0
6 people solved
Jan 5, 2025
Airwallex logo
Airwallex
Medium
Data Scientist

Compute Moderation View Metrics

Question You are working on a content moderation analytics problem. You have two tables. Table 1: content_views (one row per user / post / day) - user...

Data Manipulation (SQL/Python)
15
0
126 people solved
Nov 14, 2025
Reuters logo
Reuters
Easy
Software EngineerIntern

Explain Python tuples and typical usage

You are asked some Python fundamentals. 1. What is a tuple in Python? Describe its key properties (e.g., ordering, mutability, hashability). 2. How do...

Software Engineering Fundamentals
4
0
41 people solved
Nov 14, 2025
Meta logo
Meta
Medium
Data Scientist Locked

Evaluate AI-assisted ad creation

This question evaluates a candidate's competence in product analytics, causal inference, experimentation design, metric definition, and monitoring for...

Analytics & Experimentation
5
0
75 people solved
Mar 1, 2026
Morgan Stanley logo
Morgan Stanley
Medium
Data Scientist

Explain Chunking for Financial RAG

Suppose you are building a retrieval-augmented generation (RAG) assistant over long financial research reports, filings, and policy documents. Explain...

Machine Learning
4
0
49 people solved
Mar 1, 2026
Walmart Labs logo
Walmart Labs
Medium
Software Engineer

Compute days until plants stop dying

You are given a row of plants, each with an integer pesticide level. Rules - On each day, any plant with a strictly greater pesticide level than the p...

Coding & Algorithms
19
0
345 people solved
Mar 1, 2026
Walmart Labs logo
Walmart Labs
Medium
Software Engineer Locked

Check whether brackets are balanced

This question evaluates a candidate's competency in string processing and bracket-matching concepts, testing familiarity with linear-time algorithms a...

Coding & Algorithms
5
0
42 people solved
Mar 1, 2026
Netflix logo
Netflix
Medium
Software Engineer Locked

Solve sliding-window and disjoint-string-pairs tasks

This question evaluates proficiency in string-processing algorithms, sliding-window techniques, efficient set or bitmask representations, and combinat...

Coding & Algorithms
28
0
271 people solved
Mar 1, 2026
Codeium logo
Codeium
Medium
Software Engineer

Validate whether a given sequence is a Hamiltonian path

You are given strArr, an array of three strings describing an undirected graph and a proposed vertex visit order: 1. strArr[0]: a comma-separated list...

Coding & Algorithms
3
0
36 people solved
Mar 1, 2026
Codeium logo
Codeium
Medium
Software Engineer

Find the third-largest word by length

Given an array of strings strArr (length ≥ 3), return the third largest word when ranking words by string length in descending order. Ranking rules: -...

Coding & Algorithms
1
0
29 people solved
Mar 1, 2026
Microsoft logo
Microsoft
Hard
Software Engineer

Compute discounted prices and full-price indices

You are given an array prices of length \(n\). Items are sold from left to right, and each item’s final selling price is computed as follows: For item...

Coding & Algorithms
17
0
118 people solved
Mar 1, 2026
Microsoft logo
Microsoft
Hard
Software Engineer

Find all balanced k in a permutation

You are given a permutation \(p\) of length \(n\) containing each integer from \(1\) to \(n\) exactly once. For each \(k\) where \(1 \le k \le n\), de...

Coding & Algorithms
26
0
202 people solved
Mar 1, 2026