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

Explain and Harden Two Shell Commands

Explain and Harden Two Shell Commands Explain the behavior, operator semantics, and failure risks of these shell commands: `sh ps aux | grep foo | gre...

Software Engineering Fundamentals
3
0
39 people solved
Jul 12, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Refactor a Chatbot into Clean Object-Oriented Components

Prepare for a OpenAI software engineering interview question about refactor a chatbot into clean object-oriented components. The prompt highlights pra...

Software Engineering Fundamentals
11
0
110 people solved
Jun 22, 2026
Amazon logo
Amazon
Medium
Machine Learning Engineer

Implement Stable Sigmoid, Softmax, and Scaled Dot-Product Attention

Implement Stable Sigmoid, Softmax, and Scaled Dot-Product Attention Implement the mathematical core of three common neural-network operations without ...

Machine Learning
2
0
42 people solved
Jul 2, 2026
Pinterest logo
Pinterest
Medium
Machine Learning Engineer

Rank Newly Launched Ads Under Cold Start

Rank Newly Launched Ads Under Cold Start Design a ranking model dedicated to ads launched within the last seven days, where direct performance history...

ML System Design
8
0
64 people solved
Jul 2, 2026
Apple logo
Apple
Medium
Software Engineer

Design a Population-Weighted Random Country Picker

Design a Population-Weighted Random Country Picker Design a class initialized with country names and positive population weights. Each call to pick() ...

Software Engineering Fundamentals
4
0
49 people solved
Jul 2, 2026
NVIDIA logo
NVIDIA
Medium
Software Engineer Locked

Design the Control Plane for a Compute Cluster: Host Monitoring + Job Dispatch

This question assesses the ability to design a distributed control plane that tracks live host state across a large compute fleet under high write con...

System Design
14
0
132 people solved
Jun 20, 2026
Onepay logo
Onepay
Easy
Software Engineer

Design a Discord-Style Communication Platform

Design a Discord-Style Communication Platform Design a communication platform with organizations, channels, direct messages, and real-time text delive...

System Design
2
0
19 people solved
Jul 8, 2026
Clay logo
Clay
Medium
Software Engineer Locked

Design a Usage-Based Credit Tracking System for a SaaS Platform

This question evaluates a candidate's ability to design a distributed metering and billing system that tracks account balances, authorizes consumption...

System Design
9
0
65 people solved
Jun 21, 2026
Persistence logo
Persistence
Medium
Software Engineer

Explain Lazy Loading and Frontend Code Splitting

Explain Lazy Loading and Frontend Code Splitting A single-page application has grown until its initial JavaScript bundle delays interactivity. Explain...

Software Engineering Fundamentals
0
0
7 people solved
Jul 26, 2026
Epic logo
Epic
Hard
Software Engineer

Solve Timed Logical and Quantitative Reasoning Cases

Solve Timed Logical and Quantitative Reasoning Cases Work through the seven short assessment cases below. For each reasoning case, use only the stated...

Software Engineering Fundamentals
0
0
7 people solved
Jul 26, 2026
Ramp logo
Ramp
Hard
Software Engineer AI Locked

Implement and Defend an AI-Assisted Repository Change

Implement a feature in an unfamiliar repository with AI assistance while remaining able to explain and defend every change. Record prompts, respect re...

Software Engineering Fundamentals
9
0
98 people solved
May 25, 2026
OpenAI logo
OpenAI
Hard
Software Engineer

Design a Text-to-Video Generation System

Design a Sora-like text-to-video generation platform. Users submit a text prompt, optional generation settings (duration, resolution, fps, seed, model...

ML System Design
98
1
796 people solved
May 12, 2026
Bnsf logo
Bnsf
Hard
Software EngineerSenior+

Maximize Valid Trains from Shared Equipment

You have a pool of locomotives and railcars. Partition any subset of them into valid trains while using each locomotive and railcar at most once. A va...

Coding & Algorithms
0
0
8 people solved
Jul 23, 2026
Harvey logo
Harvey
Medium
Software Engineer Locked

Project Deep Dive + Core-Values Behavioral Round

This behavioral and leadership interview question evaluates a software engineer's ability to demonstrate genuine technical ownership through a deep di...

Behavioral & Leadership
15
0
145 people solved
Jun 20, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Debug a GRPO training loop and explain ratios

You are given a simplified implementation of a GRPO (Group Relative Policy Optimization) training step for an RLHF-style policy model. The training is...

Machine Learning
153
0
1572 people solved
Feb 19, 2026
Meta logo
Meta
Hard
Machine Learning Engineer Locked

Machine Learning Fundamentals: Optimizers, Scaling Laws, and Clustering

This question evaluates conceptual grasp of core machine learning fundamentals: gradient-based optimizers, neural scaling laws, and unsupervised clust...

Machine Learning
10
0
134 people solved
Jun 27, 2026
Salesforce logo
Salesforce
Medium
Software Engineer

Design a Synchronized Watch Party System (LLD)

Design a Watch Party system that lets a host create a virtual room and have multiple users join — via a unique Room ID — to watch the same video conte...

System Design
10
0
97 people solved
Jun 30, 2026
Morgan Stanley logo
Morgan Stanley
Medium
Data Scientist

Describe Your Analysis and Visualization Toolkit

Give a recruiter-friendly overview of the data-analysis and visualization tools you use in your work. Explain what each tool helps you accomplish, how...

Data Manipulation (SQL/Python)
3
0
25 people solved
Jul 10, 2026
Datadog logo
Datadog
Medium
Software Engineer Locked

Design an LLM Agent System That Automatically Resolves Jira Tickets and Opens Pull Requests

This ML system design question evaluates the ability to architect an autonomous LLM-agent pipeline spanning retrieval-augmented generation, tool integ...

ML System Design
23
0
160 people solved
Jun 4, 2026
Google logo
Google
Medium
Software Engineer Locked

Design a Security Monitoring Framework

This question evaluates a candidate's understanding of designing security monitoring frameworks for cloud infrastructure, covering competencies in sys...

System Design
130
0
975 people solved
May 26, 2026