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

Parallelize chunked file download and verify integrity

This question evaluates understanding of parallelized I/O, concurrency control, failure and retry handling, and data-integrity verification for chunke...

Coding & Algorithms
8
0
73 people solved
Feb 12, 2026
Google logo
Google
Medium
Software Engineer Locked

Min deletions to avoid overlap in first k

This question evaluates array and sequence manipulation skills, set-based reasoning about value overlap, and the ability to compute minimal edits whil...

Coding & Algorithms
20
0
342 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
Bloomberg logo
Bloomberg
Medium
Software Engineer

Implement sliding-window timestamped average

Problem Implement a class that maintains a time-based sliding window of records and can return the average score within the current window. Requiremen...

Coding & Algorithms
8
0
120 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
Stripe logo
Stripe
Medium
Software Engineer Locked

Implement bitmap font render/compress/invert

This question evaluates proficiency in bitmap and matrix manipulation, lossless compression/decompression techniques, and modular code reuse for trans...

Coding & Algorithms
7
0
81 people solved
Feb 12, 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
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Remove duplicates in-place from unsorted array

This question evaluates understanding of in-place array manipulation, duplicate removal, and algorithmic analysis under strict extra-space constraints...

Coding & Algorithms
8
0
86 people solved
Feb 12, 2026
Robinhood logo
Robinhood
Medium
Software Engineer Locked

Compute dependency load factors in a DAG

This question evaluates understanding of graph theory and algorithms, specifically reachability and dependency analysis in a directed acyclic graph, a...

Coding & Algorithms
10
1
190 people solved
Feb 12, 2026
Google logo
Google
Medium
Software Engineer Locked

Check pivot after removing one element

This question evaluates array-manipulation skills, cumulative-sum/prefix-sum reasoning, and robustness in handling negative values and duplicates, tes...

Coding & Algorithms
8
0
141 people solved
Feb 12, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Compute total revenue from greedy VM rentals

This question evaluates understanding of greedy allocation strategies and the ability to maintain dynamic summaries (tracking current maximum and smal...

Coding & Algorithms
23
0
306 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
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Maximize unique characters from a word list

This question evaluates algorithmic problem-solving skills focused on combinatorial subset selection and character-uniqueness constraints in strings, ...

Coding & Algorithms
11
0
84 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
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
Citadel logo
Citadel
Medium
Software EngineerIntern

Implement task queue with insert, delete, execute

Problem: Task manager with insert/delete/execute-next Design a data structure to manage executable tasks. Each task has: - taskId (unique) - priority ...

Coding & Algorithms
30
0
215 people solved
Feb 11, 2026
Uber logo
Uber
Hard
Software Engineer

Check if each prefix forms 1..k permutation

You are given an integer array arr of length n that is a permutation of the numbers 1..n (each number appears exactly once), but in arbitrary order. F...

Coding & Algorithms
20
0
204 people solved
Feb 11, 2026
Instacart logo
Instacart
Hard
Software Engineer Locked

Implement worker time and payroll tracker

This question evaluates skills in designing in-memory data structures and algorithms for temporal event handling, interval arithmetic, stateful toggle...

Coding & Algorithms
33
0
282 people solved
Feb 11, 2026
Salesforce logo
Salesforce
Medium
Software Engineer Locked

Implement an LFU cache with O(1) operations

This question evaluates a candidate's ability to design and implement efficient data structures for caching, including understanding frequency-based e...

Coding & Algorithms
5
0
61 people solved
Feb 11, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

Check perfect square using binary search

Perfect Square Check (Binary Search) Given a positive integer n, determine whether it is a perfect square (i.e., there exists an integer x such that x...

Coding & Algorithms
10
2
145 people solved
Feb 11, 2026