Tech Interview Questions

Practice 9,224+ 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.16.2026
Showing 20 results
Role
Bloomberg logo
Bloomberg
Hard
Software Engineer

Design a data structure for dynamic top‑K frequency

Design a data structure that maintains a multiset of integers and supports the following operations efficiently: Operations - insert(x): Add one occur...

Coding & Algorithms
17
0
185 people solved
Mar 1, 2026
Paradromics logo
Paradromics
Medium
Software Engineer

Implement a hash table with put/get

Problem Implement a simplified hash table (hash map) data structure from scratch. Required API Design a class HashTable with: - HashTable(int numBucke...

Coding & Algorithms
3
0
35 people solved
Mar 1, 2026
Snowflake logo
Snowflake
Easy
Software Engineer Locked

Schedule prerequisite classes with retakes

This question evaluates competency in graph algorithms, dependency resolution, stateful scheduling, and robust error handling within the Coding & Algo...

Coding & Algorithms
14
0
119 people solved
Mar 1, 2026
Snowflake logo
Snowflake
Hard
Software Engineer Locked

Minimize coins with overpay and change

This question evaluates algorithmic optimization and combinatorial reasoning in the coin-change domain, measuring proficiency with efficient numeric m...

Coding & Algorithms
6
0
84 people solved
Mar 1, 2026
Atlassian logo
Atlassian
Hard
Machine Learning Engineer Locked

Compute a moving average on a stream

This question evaluates understanding of streaming data structures, sliding-window aggregation, and the time/space trade-offs involved in maintaining ...

Coding & Algorithms
4
0
39 people solved
Mar 1, 2026
Applied logo
Applied
Medium
Software Engineer Locked

Merge overlapping 2D line segments

This question evaluates computational geometry and algorithmic skills, specifically collinearity detection, geometric segment intersection, merging of...

Coding & Algorithms
4
0
34 people solved
Mar 1, 2026
Salesforce logo
Salesforce
Medium
Software Engineer Locked

Maximize events attended given date ranges

This question evaluates understanding of interval scheduling and efficient algorithm design for allocating limited time-based resources, including con...

Coding & Algorithms
9
0
110 people solved
Mar 1, 2026
Google logo
Google
Easy
Software Engineer

Compute minimum rooms for time intervals

You are given a list of meeting time intervals, where each interval is represented as [start, end) (start time inclusive, end time exclusive) and star...

Coding & Algorithms
22
0
162 people solved
Mar 1, 2026
Harvey logo
Harvey
Medium
Software Engineer Locked

Implement retrieval and evaluation for a simple RAG

This question evaluates understanding of embedding-based retrieval, cosine similarity ranking, and retrieval evaluation metrics (Recall@10 and MRR@10)...

Coding & Algorithms
10
0
136 people solved
Mar 1, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Reconstruct DNA from tagged fragments

This question evaluates understanding of sequence reconstruction, graph modeling, and traversal/orientation constraints, focusing on ordering labeled ...

Coding & Algorithms
7
0
129 people solved
Mar 1, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Group strings that are anagrams

This question evaluates string-processing and data-structuring competency, focusing on identifying and grouping anagrams through comparison of unorder...

Coding & Algorithms
14
0
204 people solved
Mar 1, 2026
Coinbase logo
Coinbase
Hard
Software Engineer

Generate NFT metadata and ensure uniqueness

You are implementing an NFT metadata generator. Each NFT is defined by selecting exactly one trait value from each trait category. You must generate a...

Coding & Algorithms
21
0
289 people solved
Mar 1, 2026
MathWorks logo
MathWorks
Easy
Software Engineer

Maximize minimum after K decrements

You are given an integer array A of length N and an integer K. You must perform exactly K operations. In each operation, choose any index i and do A[i...

Coding & Algorithms
3
0
52 people solved
Mar 1, 2026
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Design a payment system with holds and batching

This question evaluates a candidate's competency in designing reliable, auditable payment workflows, covering authorization holds, batch settlement, i...

System Design
101
0
1049 people solved
Mar 1, 2026
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Implement follow graph with snapshots

This question evaluates a candidate's ability to design efficient persistent data structures and versioned state management for time-travel queries in...

Coding & Algorithms
27
1
205 people solved
Mar 1, 2026
Axon logo
Axon
Medium
Software Engineer

Find accessible devices via nested memberships

Problem You are given an access model with nested groups: - A group can contain users and also contain other groups (subgroups). - A user can own or b...

Coding & Algorithms
14
0
96 people solved
Mar 1, 2026
Samsara logo
Samsara
Medium
Machine Learning Engineer

Discuss salary expectations

Compensation Expectations (Machine Learning Engineer, Onsite) Context: You are interviewing for an onsite Machine Learning Engineer role. The intervie...

Behavioral & Leadership
2
0
31 people solved
Aug 14, 2025
Meta logo
Meta
Hard
Software Engineer

Design a product notifications system

System Design: Push Notifications and In‑App Messaging Platform Context Design a notifications platform for a large consumer mobile app with millions ...

System Design
2
0
46 people solved
Aug 14, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Count words in a document robustly

Given a text document, return the number of words under a precise definition. First, state the tokenization rules you will use (e.g., treat contractio...

Data Manipulation (SQL/Python)
10
0
74 people solved
Aug 14, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Design file deduplication across nested directories

Design and implement a file deduplication tool that, given a root directory, identifies groups of duplicate files. Requirements: traverse nested direc...

Coding & Algorithms
21
0
205 people solved
Aug 14, 2025