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
TikTok logo
TikTok
Easy
Software Engineer

Implement an LRU cache

Problem: LRU Cache Design and implement a data structure that supports an LRU (Least Recently Used) cache with a fixed capacity. Requirements Implemen...

Coding & Algorithms
5
0
74 people solved
Dec 15, 2025
Meta logo
Meta
Medium
Software Engineer

Return all root-to-leaf path sums

Problem You are given the root of a binary tree where each node contains an integer value (may be negative). Return an array/list containing the sum o...

Coding & Algorithms
2
0
40 people solved
Dec 15, 2025
Meta logo
Meta
Easy
Machine Learning Engineer Locked

Solve two linked list/array tasks

This two-part question evaluates proficiency with fundamental data structures and algorithmic problem-solving—specifically linked list manipulation an...

Coding & Algorithms
3
0
62 people solved
Dec 14, 2025
Agoda logo
Agoda
Medium
Software Engineer

Find two numbers that sum to a target

Array sum lookup Given an integer array nums and an integer target, find two distinct indices i and j such that: - nums[i] + nums[j] == target - i != ...

Coding & Algorithms
7
0
66 people solved
Dec 14, 2025
Coupang logo
Coupang
Medium
Software Engineer

Find shortest distance between two islands

Problem You are given an R x C binary grid where: - 1 represents land - 0 represents water The grid contains exactly two 4-directionally connected isl...

Coding & Algorithms
7
0
46 people solved
Dec 13, 2025
Roblox logo
Roblox
Easy
Data ScientistSenior+

Write SQL for influence score and follower growth

You are working on a social product with these tables: Tables / Schemas users - user_id BIGINT (PK) - created_at TIMESTAMP posts - post_id BIGINT (PK)...

Data Manipulation (SQL/Python)
10
0
147 people solved
Dec 11, 2025
Databricks logo
Databricks
Easy
Data ScientistIntern

Find top-5 most similar rows across datasets

You can solve this in SQL or Python. You are given two datasets with the same feature columns: Tables target_rows (rows you want to match) - target_id...

Data Manipulation (SQL/Python)
2
0
23 people solved
Dec 11, 2025
Voleon logo
Voleon
Medium
Software Engineer

Validate whether a binary string is good

You are given a binary string s consisting only of characters '0' and '1'. Define a good string recursively by the grammar: - '0' is a good string. - ...

Coding & Algorithms
42
0
326 people solved
Dec 9, 2025
Voleon logo
Voleon
Medium
Software Engineer

Implement sparse matrix addition and multiplication

Implement sparse-matrix operations with explicit error handling. Sparse matrix A matrix A has dimensions r x c and is sparse, meaning most entries are...

Coding & Algorithms
37
0
355 people solved
Dec 9, 2025
Voleon logo
Voleon
Medium
Software Engineer

Simulate an exchange and participation-rate trading

Implement a simplified trading simulation in three parts. Part 1 — Process market data / exchange interaction (order book) Design a minimal limit-orde...

Coding & Algorithms
86
0
703 people solved
Dec 9, 2025
Walmart Labs logo
Walmart Labs
Easy
Software EngineerSenior+

Merge two sorted arrays in-place

You are given two integer arrays sorted in non-decreasing order, and two integers m and n: - nums1 has length m + n. The first m elements of nums1 con...

Coding & Algorithms
7
0
71 people solved
Dec 9, 2025
Upstart logo
Upstart
Easy
Data Scientist

Implement factorial and count trailing zeros

Answer the following coding questions in Python. 1) Implement factorial Implement a function factorial(n) that returns \(n!\) for a non-negative integ...

Coding & Algorithms
8
0
139 people solved
Dec 9, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Implement an LRU cache with follow-ups

Coding: Implement an LRU Cache and discuss concurrency Design and implement an in-memory Least Recently Used (LRU) cache data structure. The cache sho...

Coding & Algorithms
15
0
207 people solved
Dec 8, 2025
Google logo
Google
Medium
Machine Learning Engineer

Solve meeting scheduling and robot cleaning tasks

You are given two independent coding problems. --- Problem 1: Prioritized Meeting Scheduling You are asked to schedule meetings in a single meeting ro...

Coding & Algorithms
10
1
128 people solved
Dec 8, 2025
Roblox logo
Roblox
Easy
Machine Learning Engineer

Extend counter to per-client rate limiting

You are extending the recent-requests counter to support per-client rate limiting. Each request now includes a clientId identifying the caller. You mu...

Coding & Algorithms
7
0
142 people solved
Dec 8, 2025
Roblox logo
Roblox
Easy
Machine Learning Engineer

Implement recent-requests counter

You are designing an in-memory component for a web service that needs to track how many requests ("hits") it has received in the last 5 minutes. Imple...

Coding & Algorithms
11
0
108 people solved
Dec 8, 2025
Morgan Stanley logo
Morgan Stanley
Medium
Data Scientist

Compute maximum non-overlapping meetings

Assume you are given a list of meeting time intervals for a single person. Each meeting i is represented by a pair of integers [start_i, end_i], where...

Coding & Algorithms
2
0
48 people solved
Dec 8, 2025
Squarepoint logo
Squarepoint
Medium
Software Engineer

Parse payroll file and answer queries

You are given a payroll "file" as a StringIO (file-like) object in Python. The underlying text represents manually-entered payroll data. Assume the fo...

Coding & Algorithms
4
0
79 people solved
Dec 8, 2025
Robinhood logo
Robinhood
Easy
Software Engineer

Design in-memory payment and friendship system

Design and implement an in-memory payment system with simple social features. The system processes a sequence of requests that can: 1. Register a user...

Coding & Algorithms
15
0
190 people solved
Dec 8, 2025
Robinhood logo
Robinhood
Easy
Software Engineer

Compute trigger counts in a DAG

You are given a directed acyclic graph (DAG) that represents trigger dependencies between tasks. - Each node represents a task. - There is exactly one...

Coding & Algorithms
8
0
106 people solved
Dec 8, 2025