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

Design an LLM-based binary classifier

Design a Binary Text Classifier Using Only a Log-Probability Scoring Helper Context You are building a binary text classifier without fine-tuning. You...

ML System Design
30
0
565 people solved
Sep 6, 2025
Cresta logo
Cresta
Medium
Machine Learning Engineer

Implement greedy and beam decoding

Implement Greedy and Beam Search Decoders over Next-Token Probabilities Context You are given a directed token graph represented as a Python dictionar...

Machine Learning
66
0
549 people solved
Sep 6, 2025
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Design a Distributed Rate Limiter

This question evaluates a candidate's understanding of distributed systems, rate limiting strategies, API design, consistency and scalability trade-of...

System Design
3
0
24 people solved
Jun 2, 2026
xAI logo
xAI
Medium
Software Engineer Locked

Design a backend for an online checkers game

This question evaluates system design and backend engineering competencies, including authoritative game-state modeling, turn-based concurrency contro...

System Design
18
0
147 people solved
Feb 11, 2026
Playstation logo
Playstation
Medium
Data ScientistSenior+

Design Experiments Under Network Interference

You are a Senior Data Scientist for a gaming platform such as PlayStation. Answer the following experimentation questions. 1. A/A test validation: The...

Analytics & Experimentation
4
0
32 people solved
Apr 2, 2026
Reddit logo
Reddit
Hard
Machine Learning Engineer

Improve Reddit onboarding

How would you improve the onboarding experience for new users on a community platform similar to Reddit? Assume the goal is to help first-time users q...

Behavioral & Leadership
7
0
70 people solved
Mar 2, 2026
Bytedance logo
Bytedance
Medium
Software Engineer

Solve these string, subset, and date problems

You are asked to solve multiple coding tasks. 1) Reverse word order in a string - Input: a string s containing words separated by spaces (may contain ...

Coding & Algorithms
6
0
86 people solved
Jan 23, 2026
Reddit logo
Reddit
Medium
Machine Learning Engineer Locked

Analyze CTR Data and Train Model

This question evaluates end-to-end supervised machine learning competencies for tabular click-through rate prediction, including exploratory data anal...

Machine Learning
8
0
107 people solved
Feb 1, 2026
Databricks logo
Databricks
Medium
Software Engineer

Describe project impact and critical feedback

Prepare for two behavioral prompts commonly asked in a software engineering onsite interview: 1. Describe a project you are proud of Explain the bu...

Behavioral & Leadership
10
0
148 people solved
Jan 5, 2026
Zipline logo
Zipline
Medium
Software Engineer

Design a Checkers Game Simulator

Design and partially implement an object-oriented simulator for a two-player checkers-like board game. Requirements: - The game is played on an 8 x 8 ...

Software Engineering Fundamentals
4
0
63 people solved
Mar 11, 2026
Meta logo
Meta
Easy
Software EngineerSenior+

Design a location-based radius top-K search

Design a location-based search service. Input: - latitude, longitude - radius (meters) - K Output: - The top K locations within the radius. The term “...

System Design
33
0
293 people solved
Mar 11, 2026
Google logo
Google
Medium
Software Engineer

Build Prefix Lookup with a Trie

Build prefix lookup for repeated queries. Given words and query prefixes, return matching words for each query in lexicographic order. Implement: `pyt...

Coding & Algorithms
3
1
11 people solved
Jul 3, 2026
Circle logo
Circle
Hard
Software Engineer

Design in-memory DB with TTL and backup

Question Design and implement an in-memory, versioned key → (field → value) database that supports per-field TTL, time-travel reads, lexicographically...

System Design
43
0
429 people solved
Aug 13, 2025
Shopify logo
Shopify
Easy
Software Engineer

Implement cache and gift assignment system

You are given two independent programming problems. --- Problem 1: Implement a bounded key–value cache Design a data structure that stores key–value p...

Coding & Algorithms
36
0
365 people solved
Oct 1, 2025
Optiver logo
Optiver
Medium
Software Engineer

Introduce yourself and justify quant research fit

Behavioral Prompt: Self-Intro, Motivation, and High-Stakes Decision You are interviewing for a Software Engineer role in a quantitative trading resear...

Behavioral & Leadership
28
0
202 people solved
Aug 12, 2025
Two Sigma logo
Two Sigma
Hard
Data ScientistIntern

Build a Housing Price Prediction Model from Historical Data

You are given a historical dataset of residential real-estate transactions — sale records with property attributes, location information, and sale dat...

Machine Learning
8
0
68 people solved
Nov 15, 2025
Hudson River Trading logo
Hudson River Trading
Medium
Software Engineer

Calculate Completion Time for a Single-Server Reactor Queue

A laboratory has one molecular reactor. Each accepted sample takes exactly 5 minutes to process. Samples arrive throughout the day at integer timestam...

Coding & Algorithms
1
0
13 people solved
Jul 2, 2026
LinkedIn logo
LinkedIn
Easy
Software Engineer Locked

Design a Top-K Ranking Service

This question evaluates a candidate's ability to design scalable, real-time Top-K ranking services, testing competencies in distributed systems, strea...

System Design
6
0
87 people solved
Mar 10, 2026
Microsoft logo
Microsoft
Medium
Machine Learning Engineer Locked

How do you choose a model?

This question evaluates skills in model selection, task and business-objective definition, data-property analysis, production constraint reasoning, ba...

Machine Learning
10
0
97 people solved
Mar 10, 2026
Startups.Com logo
Startups.Com
Medium
Machine Learning Engineer

Implement common neural network layers in PyTorch

Implement the following neural-network building blocks from scratch in PyTorch (using only basic tensor ops such as matmul, sum, mean, var, exp, max, ...

Coding & Algorithms
4
0
71 people solved
Mar 10, 2026