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

Explain Amdahl’s law and GPU matmul optimization

This question evaluates understanding of systems and performance fundamentals including parallel speedup (Amdahl’s law), GPU memory hierarchy and thre...

Software Engineering Fundamentals
7
0
91 people solved
Jan 14, 2026
Snowflake logo
Snowflake
Medium
Software Engineer Locked

Answer Repeated Lookup Queries Efficiently

Implement batched lookups over a sorted integer array, returning the first index of each queried value while preserving query order. Account for dupli...

Coding & Algorithms
2
0
15 people solved
Jun 12, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

In-Memory URL Shortener: Encode and Decode

This question evaluates a candidate's ability to design a class-based data structure with paired encode and decode operations that maintain a consiste...

Coding & Algorithms
0
0
7 people solved
Jun 12, 2026
Sentry.Io logo
Sentry.Io
Medium
Software Engineer Locked

Design a Book Purchase Broker

Design a system for brokering book purchase requests across partner bookstores with target price constraints and expiration windows. The question eval...

System Design
0
0
10 people solved
Jun 12, 2026
Microsoft logo
Microsoft
Hard
Software Engineer Locked

Design a URL Shortener

This question evaluates a candidate's ability to design a scalable, highly available URL-shortening service, testing competencies in API design, short...

System Design
8
0
57 people solved
Mar 20, 2026
Amazon logo
Amazon
Medium
Machine Learning Engineer

Implement SGD for linear regression and derive gradients

Prompt You are given a dataset of \(n\) 1D samples \(\{(x_i, y_i)\}_{i=1}^n\), where \(x_i\) and \(y_i\) are real numbers. We want to fit a linear mod...

Machine Learning
10
0
106 people solved
Dec 15, 2025
Amazon logo
Amazon
Medium
Machine Learning EngineerSenior+

Explain core ML concepts and diagnostics

You are in an ML breadth interview for a Senior Applied Scientist role. Answer the following conceptual questions clearly and practically (definitions...

Machine Learning
15
0
107 people solved
Dec 15, 2025
Optiver logo
Optiver
Medium
Software Engineer

Compare common data structures and uses

Compare common data structures and uses Compare common data structures and select appropriate ones for specific tasks. For arrays, linked lists, stack...

Coding & Algorithms
23
0
213 people solved
Jul 17, 2025
Two Sigma logo
Two Sigma
Easy
Data Scientist Locked

Merge two sorted lists

This question evaluates a candidate's competency in array manipulation and merging algorithms, emphasizing understanding of ordered data and time comp...

Coding & Algorithms
4
0
69 people solved
Feb 13, 2026
Ford logo
Ford
Medium
Software Engineer

Design EV Telemetry Monitoring App

You are interviewing for a full-stack software role on an electric-vehicle team. Design an internal application that displays live vehicle telemetry, ...

System Design
2
0
50 people solved
Jan 13, 2026
Square logo
Square
Medium
Software EngineerSenior+

Build a Trust-Aware BIN Database

Build a Trust-Aware BIN Database Implement process_bin_operations(operations) for an in-memory database of card-number prefixes. A prefix identifies a...

Coding & Algorithms
1
0
14 people solved
Apr 27, 2026
NVIDIA logo
NVIDIA
Medium
Software Engineer

Solve unique triplets summing to target

Solve unique triplets summing to target Implement a function that, given an integer array nums and an integer target T, returns all unique triplets [x...

Coding & Algorithms
5
0
87 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Data Scientist

Design an ad recommendation and ranking system

You are building an ad recommendation/ranking system for a content feed (e.g., short-form videos). At each feed position, you may show either an organ...

Machine Learning
10
0
83 people solved
Oct 20, 2025
Applied logo
Applied
Hard
Machine Learning Engineer

Validate Nested Configuration Objects

You are given a set of custom descriptor objects that define the expected schema of a configuration object. Implement a validator that checks whether ...

Coding & Algorithms
2
0
41 people solved
Jan 12, 2026
Salesforce logo
Salesforce
Medium
Machine Learning EngineerSenior+

Build a concurrent site crawler

Implement a small crawler in Python for a single target website. Requirements: - Input: a start URL, a maximum crawl depth, and an output CSV path. - ...

Coding & Algorithms
9
0
91 people solved
Jan 12, 2026
Pinterest logo
Pinterest
Hard
Machine Learning Engineer

Explain overfitting and how to prevent it

You are asked rapid-fire ML fundamentals questions. 1. What is overfitting? Explain it in terms of training vs. validation performance and generalizat...

Machine Learning
14
0
93 people solved
Dec 13, 2025
Turo logo
Turo
Medium
Software Engineer

Plan a major database version upgrade

You have an application tier (API/web servers) talking to a primary database for writes and a secondary/replica database for reads. You need to perfor...

System Design
12
0
97 people solved
Feb 12, 2026
Google logo
Google
Medium
Software Engineer

Describe a challenging recent project

Behavioral Tell me about a challenging and interesting project you worked on recently. Follow-ups - What were the hardest problems you encountered? - ...

Behavioral & Leadership
6
0
115 people solved
Feb 12, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Solve common string/DP/stack problems

This set of four coding tasks evaluates proficiency in string algorithms, dynamic programming, sliding-window techniques, monotonic stack usage, and t...

Coding & Algorithms
8
0
107 people solved
Feb 12, 2026
Applied logo
Applied
Easy
Software Engineer

Design a mini compiler/interpreter

Problem Design and implement a mini compiler / interpreter for a small expression language. You are given a program as a string (possibly multiple lin...

Software Engineering Fundamentals
5
0
52 people solved
Feb 12, 2026