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

Find Maximum Candies With Two Types

You are given a row of candies represented by an array candies, where candies[i] is the type of the candy at position i. You may choose any starting p...

Coding & Algorithms
1
0
15 people solved
Apr 22, 2026
xAI logo
xAI
Medium
Software Engineer

Explain arrays and memory layout

What is an array? How is an array represented in memory (contiguous layout, element size and alignment, indexing arithmetic). Analyze time complexitie...

Coding & Algorithms
10
0
91 people solved
Aug 12, 2025
Airbnb logo
Airbnb
Hard
Software Engineer

Reduce frontend network requests efficiently

Reduce Redundant Frontend Requests for Availability and Pricing Context You are designing the web client and APIs for a bookings marketplace that disp...

System Design
11
0
116 people solved
Aug 12, 2025
TikTok logo
TikTok
Hard
Machine Learning Engineer

Implement attention and nucleus sampling; compare to top-k

Implement Multi‑Head Attention and Nucleus (Top‑p) Sampling Context You are building core components used in Transformer-based language models. Implem...

Machine Learning
8
0
70 people solved
Aug 11, 2025
MathWorks logo
MathWorks
Medium
Software Engineer

Calculate tiered cost and break-even

Tiered Pricing and Shipping Cost Function You are ordering q units from a vendor with the following pricing: - Fixed setup fee per order: $500 - Unit ...

Statistics & Math
6
0
47 people solved
Aug 10, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Find k closest values in a BST

Find k closest values in a BST Given a binary search tree with n nodes and a real target t, return k node values whose distances to t are smallest. Im...

Coding & Algorithms
5
0
102 people solved
Aug 10, 2025
Robinhood logo
Robinhood
Medium
Software Engineer

Produce a Deterministic Course Plan

Produce a Deterministic Course Plan There are num_courses courses numbered 0 through num_courses - 1. Each prerequisite pair is [course, prerequisite]...

Coding & Algorithms
1
0
15 people solved
Apr 21, 2026
Two Sigma logo
Two Sigma
Medium
Data Scientist

Compute Piecewise Linear Interpolation

You are given an unsorted list of distinct 2D points (x_i, y_i). When the points are sorted by x_i, connecting adjacent points forms a polyline. Given...

Coding & Algorithms
1
0
11 people solved
Apr 21, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Count Valid Infection Orders

This question evaluates combinatorial enumeration and algorithmic reasoning by counting valid sequences of state changes in a linear infection process...

Coding & Algorithms
2
0
24 people solved
Apr 21, 2026
NVIDIA logo
NVIDIA
Medium
Software Engineer

Explain a shader compiler pipeline

Explain a shader compiler pipeline Describe the architecture of a shader compiler that ingests GLSL/HLSL and outputs SPIR-V or ISA. Cover lexical anal...

Coding & Algorithms
8
0
70 people solved
Aug 9, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Explain linear algebra for graphics transforms

Explain linear algebra for graphics transforms MVP Pipeline, Homogeneous Coordinates, NDC, Screen Space, and Normal Transformation Context You are wor...

Statistics & Math
7
0
97 people solved
Aug 9, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

Explain move and recent project

Explain move and recent project Behavioral + Project Deep-Dive: Motivation and Recent Project Context: Onsite behavioral prompt for a Quantitative Sof...

Behavioral & Leadership
7
0
83 people solved
Aug 9, 2025
NewsBreak logo
NewsBreak
Hard
Machine Learning Engineer

Design approach for class imbalance

Design approach for class imbalance Imbalanced Binary Classification: Learning, Evaluation, and Model Selection Context You are training a binary clas...

Machine Learning
2
0
43 people solved
Aug 9, 2025
Meta logo
Meta
Medium
Software Engineer

Design core bank operations

Design core bank operations Design a BankSystem Class (Take‑home Project) Goal Design and document a BankSystem class that supports three operations: ...

System Design
3
0
37 people solved
Aug 9, 2025
Reevo logo
Reevo
Medium
Software Engineer

Maximize weighted sum with disjoint adjacent swaps

You are given an integer array arr of length n (0-indexed). Define the weighted sum as: S = Σ_{i=0..n-1} arr[i] * (i + 1). You may perform any number ...

Coding & Algorithms
3
0
36 people solved
Feb 2, 2026
Deca Technologies logo
Deca Technologies
Medium
Software Engineer

Explain why you want this company and leadership

Scenario You are interviewing with a hiring manager (recently promoted) for a small, globally distributed IC/package design team. Questions 1. Company...

Behavioral & Leadership
2
0
26 people solved
Feb 2, 2026
Verkada logo
Verkada
Hard
Software Engineer

Design camera access-control service

Design camera access-control service Design an Access-Control Service (Users, Cameras, Nested Groups) Context You are building a multi-tenant access-c...

System Design
19
0
155 people solved
Aug 8, 2025
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Find longest palindromic substring

This question evaluates knowledge of string algorithms and pattern recognition, focusing on identifying palindromic substrings and reasoning about tim...

Coding & Algorithms
6
0
68 people solved
Nov 28, 2025
Netflix logo
Netflix
Medium
Software EngineerSenior+ Locked

Design an ads data model

This question evaluates a candidate's ability to design scalable data models and system architecture for an ads platform, including entity relationshi...

System Design
39
0
274 people solved
Sep 30, 2025
Netflix logo
Netflix
Medium
Software EngineerSenior+ Locked

Design an ad frequency capping system

This question evaluates a candidate's ability to design scalable, low-latency distributed systems that enforce ad frequency caps across users, devices...

System Design
13
0
214 people solved
Sep 30, 2025