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
Atlassian logo
Atlassian
Medium
Software Engineer Locked

Answer Values and Ownership Questions

This set of questions evaluates interpersonal and leadership competencies including values alignment, ownership, mentorship, teamwork, communication, ...

Behavioral & Leadership
2
0
28 people solved
Nov 10, 2025
Ripple logo
Ripple
Hard
Software Engineer

Find path between two nodes in a binary tree

Problem Given a binary tree and two target nodes a and b, return the simple path from a to b (inclusive) as an ordered list of node values. - The path...

Coding & Algorithms
5
0
45 people solved
Nov 10, 2025
Molocoads logo
Molocoads
Hard
Software Engineer

Compute subarray span for each element

You are given an integer array nums of length n. For each index i (0 <= i < n), define ans[i] as the maximum possible length of a contiguous subarray ...

Coding & Algorithms
6
0
57 people solved
Nov 9, 2025
Molocoads logo
Molocoads
Hard
Software Engineer

Find single element when others repeat k times

You are given a sorted array of integers nums in non-decreasing order, and an integer k ≥ 2. Every value in nums appears exactly k times in a row, exc...

Coding & Algorithms
6
0
49 people solved
Nov 9, 2025
Intuit logo
Intuit
Easy
Data Scientist

Pivot daily users and revenue by platform

You are given transaction-level data and need daily aggregates by platform. Input (Pandas DataFrame) df with columns: - file_date (DATE or string pars...

Data Manipulation (SQL/Python)
20
0
161 people solved
Nov 8, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Design an in-memory database with TTL and backups

You are asked to implement a small in-memory “database” that evolves across 4 parts. In each part you may reuse your previous code and only add/extend...

Coding & Algorithms
32
0
288 people solved
Nov 8, 2025
Intuit logo
Intuit
Easy
Data Scientist

Compute monthly signups, conversion, and YoY growth

You work at a subscription company and are given a user-level table. Table company_users - id (INT, PK) — user/customer id - signup_date (DATE) — date...

Data Manipulation (SQL/Python)
9
1
138 people solved
Nov 8, 2025
DoorDash logo
DoorDash
Hard
Software Engineer

Find longest common ordered restaurant list

You have two delivery drivers who each have a pickup plan represented as a list of restaurant IDs (strings). Because there is only one car, the combin...

Coding & Algorithms
26
0
197 people solved
Nov 7, 2025
Oracle logo
Oracle
Medium
Software Engineer

Implement an LRU cache

Design and implement an in-memory cache that evicts entries using the Least Recently Used (LRU) policy. The cache should store key–value pairs and sup...

Coding & Algorithms
3
0
41 people solved
Nov 6, 2025
Google logo
Google
Medium
Software Engineer

Find shared objects across two log files

You are given two large log files representing activity on two different days. Each line of each log has three fields: - timestamp: a time value (you ...

Coding & Algorithms
6
0
79 people solved
Nov 5, 2025
Google logo
Google
Medium
Software Engineer

Minimize calls to find all bad test pairs

You have \(n\) atomic tests \(t_1, t_2, \dots, t_n\). You are given access to a black-box function: `python bool runTest(set<Test> S) ` which behaves ...

Coding & Algorithms
13
0
140 people solved
Nov 5, 2025
Google logo
Google
Medium
Software Engineer

Compute servers needed for daily recurring jobs

You operate a cluster of identical servers that run recurring daily jobs. For a single day, you are given a list of job execution intervals. Each inte...

Coding & Algorithms
15
0
144 people solved
Nov 5, 2025
Read.Ai logo
Read.Ai
Medium
Software Engineer

Implement a per-user API rate limiter

You are building an API gateway that must enforce per-user rate limits. Task Implement a rate limiter with the following API: - RateLimiter(int maxReq...

Coding & Algorithms
7
0
61 people solved
Nov 3, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Find shortest substring with n unique letters

Problem You are given a string s consisting of lowercase English letters and an integer n (1 ≤ n ≤ 26). Find the length of the shortest contiguous sub...

Coding & Algorithms
5
0
46 people solved
Nov 3, 2025
Stripe logo
Stripe
Medium
Software Engineer Locked

Process multi-currency payments with fees

This question evaluates a software engineer's competency in precise integer arithmetic and rounding semantics, multi-currency FX conversion with basis...

Coding & Algorithms
3
0
35 people solved
Nov 2, 2025
Meta logo
Meta
Medium
Software Engineer

Find K-th Largest and Longest Vacation

Solve the following two coding problems. 1. Find the k-th largest element Given an integer array nums and an integer k, return the element that wou...

Coding & Algorithms
3
0
29 people solved
Nov 1, 2025
Schonfeld logo
Schonfeld
Medium
Data Scientist

Find smallest N for 5-and-21 sums

You are given two positive integers: 5 and 21. We say a positive integer x is representable if it can be written in the form \[ x = 5a + 21b \] for so...

Coding & Algorithms
2
0
26 people solved
Nov 1, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement delimiter-free string codec

Design an encoder/decoder for a list of strings. - Implement two functions: - encode(strings: List[str]) -> str - decode(blob: str) -> List[str] -...

Coding & Algorithms
13
0
110 people solved
Oct 31, 2025
Meta logo
Meta
Medium
Machine Learning Engineer

Optimize repeated-value vectors and compute exclusive times

You are given two separate coding tasks from an interview. Task 1: Optimize storage for vectors with repeated values, then compute dot product You are...

Coding & Algorithms
3
0
49 people solved
Oct 30, 2025
Uber logo
Uber
Medium
Software Engineer

Compute outer boundary of an N-ary tree

You are given the root of a rooted N-ary tree. Each node contains: - An integer value. - An ordered list of children from left to right (0 or more chi...

Coding & Algorithms
14
0
142 people solved
Oct 28, 2025