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

Find minimum processing rate

Find minimum processing rate You are given an array piles where piles[i] is the number of items in the i-th pile and an integer H (total hours). Find ...

Coding & Algorithms
5
0
48 people solved
Aug 9, 2025
Amazon logo
Amazon
Medium
Software Engineer

Validate 9x9 grid in one pass

Validate 9x9 grid in one pass Given a partially filled 9x9 board using digits '1'–'9' and '.' for empty cells, determine whether the current configura...

Coding & Algorithms
5
0
59 people solved
Aug 9, 2025
Amazon logo
Amazon
Medium
Software Engineer

Implement LRU cache with O(1) ops

Implement LRU cache with O(1) ops Design and implement a fixed-capacity cache supporting get(key) -> value and put(key, value) in O( 1) average time. ...

Coding & Algorithms
5
0
56 people solved
Aug 9, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Compute courier pay with peak-hour rules

Implement compute_pay(deliveries) to calculate a delivery driver's daily pay from a list of delivery records. Each record may include times, miles, ba...

Data Manipulation (SQL/Python)
0
0
6 people solved
Aug 9, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find odd-frequency element with O(1) space

You're given an integer array where exactly one value appears an odd number of times and all other values appear an even number of times. Implement a ...

Coding & Algorithms
4
0
34 people solved
Aug 9, 2025
Expedia logo
Expedia
Medium
Software Engineer

Count vowel-only substrings with all vowels

Count vowel-only substrings with all vowels Given a lowercase English string s, return the number of contiguous substrings that ( 1) consist only of v...

Coding & Algorithms
10
0
80 people solved
Aug 9, 2025
DoorDash logo
DoorDash
Hard
Software Engineer

Design limited-time donation platform

Design limited-time donation platform System Design: Donations Platform for a Three-Day Global Fundraising Campaign Context You are to design an inter...

System Design
9
0
67 people solved
Aug 9, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

Solve capital selection and grid escape

Solve capital selection and grid escape Implement two functions for algorithmic practice: 1) MaximizeCapitalAfterProjects(k, initialCapital, requiredC...

Coding & Algorithms
8
0
117 people solved
Aug 9, 2025
C3 AI logo
C3 AI
Hard
Data Scientist

Find longest substring with at least k repeats

Find longest substring with at least k repeats Longest substring where each character appears at least k times You are given: - a string s consisting ...

Coding & Algorithms
4
0
35 people solved
Aug 9, 2025
Databricks logo
Databricks
Medium
Software Engineer

Solve graph path, interval deletion, and robbery

Solve graph path, interval deletion, and robbery Part A — Optimal path with transport modes: You are given a directed weighted graph of a city. Each e...

Coding & Algorithms
19
0
288 people solved
Aug 9, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Generate the next lexicographic array arrangement

Generate the next lexicographic array arrangement Given an integer array nums (which may include negative numbers and duplicates), modify nums in plac...

Coding & Algorithms
4
0
54 people solved
Aug 8, 2025
Verkada logo
Verkada
Medium
Software Engineer

Find users with access to all cameras

Given entities and relationships (user, owns, camera), (user, belongs_to, group), (group, owns, camera), and (group, belongs_to, group) where groups c...

Coding & Algorithms
7
0
65 people solved
Aug 8, 2025
TikTok logo
TikTok
Hard
Software Engineer

Explain multithreading and locks

Explain multithreading and locks Multithreading, Locks, Concurrency Hazards, and a Bounded Queue Design Context: Technical screen for a software engin...

System Design
6
0
46 people solved
Aug 8, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Fix a BST with two misplaced keys

Fix a BST with two misplaced keys You are given the root of a binary search tree in which exactly two nodes’ keys were accidentally swapped. Restore t...

Coding & Algorithms
3
0
25 people solved
Aug 8, 2025
TikTok logo
TikTok
Medium
Software Engineer

Implement distinct islands and sliding maxima

Implement distinct islands and sliding maxima 1) Given a binary grid where 1 represents land and 0 represents water, count how many distinct island sh...

Coding & Algorithms
2
0
36 people solved
Aug 8, 2025
Akuna Capital logo
Akuna Capital
Medium
Software Engineer

Solve swaps, graph paths, and movie DP

Solve swaps, graph paths, and movie DP Design and implement solutions for three tasks derived from a HackerRank-style assessment. 1) Minimum swaps to ...

Coding & Algorithms
2
0
46 people solved
Aug 8, 2025
Amazon logo
Amazon
Medium
Software Engineer

Determine string segmentability with dictionary

Determine string segmentability with dictionary Given a string s and a dictionary of words, determine whether s can be segmented into a sequence of di...

Coding & Algorithms
3
0
30 people solved
Aug 8, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Compute nearest courier for each customer

Compute nearest courier for each customer You are given two sets of 2D points: customers C = {c1..cn} and active couriers (dashers) D = {d1..dm}. Each...

Coding & Algorithms
5
0
84 people solved
Aug 8, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Apply sliding window techniques

Apply sliding window techniques Explain the sliding window technique and apply it to solve: ( 1) Given an array of positive integers and a target S, r...

Coding & Algorithms
9
0
97 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Implement two array-cost minimization algorithms

Implement two array-cost minimization algorithms that appeared back-to-back in an AWS SDE online assessment. Each can be solved independently. Part 1 ...

Coding & Algorithms
4
0
35 people solved
Aug 7, 2025