Tech Interview Questions

Practice 9,160+ 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.2k Questions 486 Companies08.11.2026
Showing 20 results
Role
TikTok logo
TikTok
Medium
Software Engineer

Solve pair-counting and account-merging problems

Problem A — Count qualifying products You are given two integer arrays A and B, and an integer T. For each element a in A, count how many elements b i...

Coding & Algorithms
3
0
57 people solved
Dec 8, 2025
Amazon logo
Amazon
Medium
Software Engineer

Solve three coding tasks: binary search, tree path, subarray

Solve three coding tasks: binary search, tree path, subarray Solve the following coding tasks: 1) In a sorted array, every value appears exactly twice...

Coding & Algorithms
7
0
56 people solved
Aug 10, 2025
Verkada logo
Verkada
Medium
Software Engineer

Implement LRU and LFU caches

Implement two in-memory cache classes with fixed capacity: 1. Recent-use cache - get(key): return the value for key, or -1 if the key does not exis...

Coding & Algorithms
3
0
68 people solved
Jan 23, 2026
Databricks logo
Databricks
Medium
Software Engineer

Share background, conflicts, and proud project details

Share background, conflicts, and proud project details Behavioral & Leadership HR Screen — Software Engineer Context You are in an HR screen for a Sof...

Behavioral & Leadership
6
0
117 people solved
Aug 9, 2025
Apple logo
Apple
Medium
Software Engineer

Compute top three scores per student

Compute top three scores per student You are given a list of (student_id, score) records. Return, for each student, their highest three scores in desc...

Coding & Algorithms
7
0
80 people solved
Aug 9, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Design webhook, POI, chat, CI/CD, payments

You are asked to design several large-scale backend systems in a single onsite session. The bar is breadth and judgment under time pressure: for each ...

System Design
22
0
339 people solved
Jul 4, 2025
PayPal logo
PayPal
Easy
Data Scientist

Decide if a dice-betting game is favorable

You are considering a game against a “house” using fair six-sided dice. Rules: - You roll one die; the house rolls one die. - If your roll is strictly...

Statistics & Math
7
0
50 people solved
Dec 7, 2025
Meta logo
Meta
Medium
Software Engineer

Design an online auction platform

Design an Online Auction System Design a scalable, highly available online auction platform where users can list items for auction and other users can...

System Design
3
0
57 people solved
Dec 7, 2025
WeRide logo
WeRide
Medium
Data Scientist

Compute window averages and merge intervals

Compute window averages and merge intervals You are given two independent pandas tasks. 1. Centered sliding-window average - Input DataFrame df with c...

Data Manipulation (SQL/Python)
11
0
87 people solved
Jan 23, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer Locked

Design training for multimodal embedding model

This question evaluates proficiency in end-to-end multimodal embedding system design, including model architecture, supervision and loss strategies, e...

ML System Design
4
0
56 people solved
Jan 22, 2026
BlackRock logo
BlackRock
Easy
Software Engineer Locked

Traverse a tree and answer 2D prefix sums

This question evaluates a candidate's competency in tree traversal and array preprocessing, specifically in-order traversal of binary trees and 2D pre...

Coding & Algorithms
10
0
68 people solved
Jan 22, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Build a responsive grid of fixed boxes

This question evaluates front-end layout and responsiveness skills including HTML/CSS and React component rendering, plus performance scaling for larg...

Software Engineering Fundamentals
5
0
67 people solved
Jan 22, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Explain Aurora-style internals: WAL, MVCC, replication, recovery

This question evaluates knowledge of database storage engine and distributed database internals, covering write-ahead logging, MVCC, replication model...

Software Engineering Fundamentals
6
0
54 people solved
Jan 22, 2026
Robinhood logo
Robinhood
Medium
Software EngineerSenior+ Locked

Design a constrained cache and secure string validator

This question evaluates proficiency in data structures and algorithms (constrained cache design), concurrent programming, complexity analysis, and sec...

Coding & Algorithms
5
0
99 people solved
Jan 22, 2026
Databricks logo
Databricks
Hard
Software EngineerNew Grad Locked

Optimize a SQL query plan tree

This question evaluates understanding of relational algebra, query optimization techniques, and tree-based plan transformations such as predicate push...

Coding & Algorithms
7
0
65 people solved
Jan 22, 2026
Shopify logo
Shopify
Easy
Machine Learning Engineer Locked

Implement an LRU Cache

This question evaluates a candidate's competency in designing efficient cache mechanisms and managing time and space complexity for operations require...

Coding & Algorithms
16
0
165 people solved
Jan 22, 2026
Stripe logo
Stripe
Medium
Software Engineer Locked

Propagate runtime ID across API requests

This question evaluates proficiency in runtime ID propagation across HTTP requests, JSON parsing and serialization, nested data traversal, and type-pr...

Coding & Algorithms
12
0
122 people solved
Jan 22, 2026
Citadel logo
Citadel
Medium
Software Engineer Locked

Merge K timestamped lists with timestamp coalescing

This question evaluates algorithmic skills in merging multiple sorted sequences, coalescing records by key (timestamp), merging sorted value arrays, a...

Coding & Algorithms
21
0
148 people solved
Jan 22, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Explain how Kafka works

This question evaluates understanding of Kafka and distributed streaming system concepts, covering core entities (broker, topic, partition, producer, ...

Software Engineering Fundamentals
6
0
52 people solved
Jan 22, 2026
J.P. Morgan logo
J.P. Morgan
Medium
Data Scientist Locked

Explain C++ virtual dispatch and object lifetime

This question evaluates a candidate's understanding of C++ virtual function dispatch, destructor and object lifetime semantics, stack versus heap allo...

Software Engineering Fundamentals
3
0
55 people solved
Jan 22, 2026