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
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
13 people solved
Feb 16, 2026
PayPal logo
PayPal
Easy
Data Scientist

Compute variance of a list in Python

Task Given a Python list of numbers (ints/floats), write code to compute its variance. Requirements - Input: nums: list[float] (length \(n\ge 1\)) - C...

Coding & Algorithms
9
0
66 people solved
Feb 15, 2026
Coinbase logo
Coinbase
Medium
Data Scientist

Implement Plus One

Given a non-empty array of digits representing a non-negative integer, where the most significant digit comes first and each element is in [0, 9], add...

Coding & Algorithms
4
0
52 people solved
Feb 13, 2026
Databricks logo
Databricks
Hard
Software Engineer Locked

Find Path Between Fibonacci Tree Nodes

This question evaluates a candidate's ability to reason about recursive tree structures, map preorder indices to positions in a recursively defined Fi...

Coding & Algorithms
9
0
74 people solved
Feb 13, 2026
Palo logo
Palo
Medium
Software Engineer

Implement an Alert Execution Engine

You are given an alert client API that provides alert configurations, metric query execution, and notification methods. Implement an alert execution e...

Coding & Algorithms
0
0
8 people solved
Feb 13, 2026
Grammarly logo
Grammarly
Medium
Software Engineer

Merge overlapping corrections

Implement correctionMerge(corrections). You are given a list of text-correction spans. Each correction applies to an inclusive interval [start, end] a...

Coding & Algorithms
11
0
107 people solved
Feb 13, 2026
OpenAI logo
OpenAI
Easy
Software Engineer Locked

Simulate a Turn-Based Two-Player Game

This question evaluates API design, state management, move validation, board representation, and correctness guarantees for a turn-based game simulato...

Coding & Algorithms
11
0
77 people solved
Feb 13, 2026
Apple logo
Apple
Medium
Machine Learning Engineer

Implement Kubernetes Service Dependency Queries

You are given an in-memory inventory of Kubernetes-like services. Each service has the following fields: `text Service { id: string // ...

Coding & Algorithms
0
0
4 people solved
Feb 13, 2026
Coinbase logo
Coinbase
Hard
Software Engineer

Maximize block fee with transaction selection

You are given N transactions. Each transaction has: - id (unique identifier) - size (positive integer) - fee (positive integer) You are building a blo...

Coding & Algorithms
29
0
311 people solved
Feb 13, 2026
TikTok logo
TikTok
Medium
Machine Learning EngineerNew Grad

Implement stack variants and path-sum check

Coding tasks Solve the following algorithmic problems. 1) MinStack Design a stack supporting: - push(x), pop(), top() - getMin() returning the minimum...

Coding & Algorithms
11
0
78 people solved
Feb 12, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

Design O(1) insert/delete and frequency-weighted random

Problem Design a data structure that supports the following operations in average \(O(1)\) time: 1. add(x) -> bool - Inserts value x into the colle...

Coding & Algorithms
14
1
199 people solved
Feb 12, 2026
Flipster logo
Flipster
Easy
Software Engineer

Compute max profit from one stock trade

Given an integer array prices where prices[i] is the stock price on day i, compute the maximum profit you can achieve by choosing at most one day to b...

Coding & Algorithms
2
0
33 people solved
Feb 12, 2026
Bloomberg logo
Bloomberg
Medium
Software Engineer Locked

Solve common string/tree/grid interview tasks

This problem set evaluates practical coding competencies including string parsing and sign handling, positional and frequency-based matching for feedb...

Coding & Algorithms
10
0
77 people solved
Feb 12, 2026
Apple logo
Apple
Medium
Software Engineer

Zero out duplicates and sort an array

Coding question You are given an integer array arr of length about 75. - The data is not sorted. - The array may contain duplicate values. - You must ...

Coding & Algorithms
20
0
180 people solved
Feb 12, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Compute max reachable cells per threshold

This question evaluates a candidate's ability to reason about constrained grid reachability and efficient handling of multiple threshold queries, test...

Coding & Algorithms
35
0
261 people solved
Feb 12, 2026
Capital One logo
Capital One
Hard
Software Engineer

Solve multiple algorithmic interview questions

Below are several independent coding tasks. For each task, implement a function that returns the required output. Assume: - Arrays/lists are 0-indexed...

Coding & Algorithms
12
0
213 people solved
Feb 12, 2026
Apple logo
Apple
Hard
Software Engineer

Compute conflicts and minimum meeting rooms

You are given a list of meeting room booking requests. Each request is a half-open time interval [start, end), meaning it uses the room starting at st...

Coding & Algorithms
20
0
186 people solved
Feb 12, 2026
Rubrik logo
Rubrik
Hard
Software Engineer

Find largest connected group of overlapping intervals

You are given n people, where person i works during an inclusive time interval [start_i, end_i]. Define a communication graph: - Each person is a node...

Coding & Algorithms
5
0
75 people solved
Feb 12, 2026
Google logo
Google
Easy
Software Engineer Locked

Build a next-word frequency predictor

This question evaluates understanding of data structures and algorithms for frequency counting and associative lookups, including preprocessing-versus...

Coding & Algorithms
38
1
272 people solved
Feb 12, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Extend BFS maze solver with keys and arrows

This question evaluates mastery of breadth-first search, state-space modeling for grid-based traversal, and handling augmented states like keys and on...

Coding & Algorithms
21
0
155 people solved
Feb 12, 2026