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

Find shortest subarray to restore order

Given an integer array, find the shortest contiguous segment which, if sorted in ascending order, makes the entire array non-decreasing. Return the le...

Coding & Algorithms
3
0
46 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
204 people solved
Aug 14, 2025
Amazon logo
Amazon
Medium
Software Engineer

Describe handling deadlines, conflicts, feedback, and ownership

Behavioral Interview Prompts — Software Engineer (Onsite) Context: You will be asked to share specific, first-person examples using a structured forma...

Behavioral & Leadership
3
0
46 people solved
Aug 13, 2025
Uber logo
Uber
Medium
Machine Learning Engineer

Compute currency conversion via graph search

Given a list of currency pairs, e.g., [('USD','CAD'), ('CAD','EUR'), ...], and a parallel list of conversion ratios [1.1, 1.2, ...] where ratio r mean...

Coding & Algorithms
8
0
124 people solved
Aug 13, 2025
Optiver logo
Optiver
Medium
Software Engineer

Compute negative-price probability after n steps

Random-Walk Price Crossing Probability Setup - Initial price: S₀ = s (real number). - Step size: x > 0. - Number of days: n (integer ≥ 0). - Each day ...

Statistics & Math
5
0
81 people solved
Aug 13, 2025
Optiver logo
Optiver
Easy
Software Engineer

Compute permutations with repeated letters

Counting Strings with Repeated Characters Problem Given two nonnegative integers m and n, how many distinct strings can be formed that contain exactly...

Statistics & Math
11
0
105 people solved
Aug 13, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Describe improving workflow and challenges

Behavioral: Improving a Team's Development Workflow You are a software engineer in a technical screen. Answer using a concise, structured story (e.g.,...

Behavioral & Leadership
4
0
76 people solved
Aug 13, 2025
PayPal logo
PayPal
Medium
Software Engineer

Find k most frequent in linear time

Given an integer array nums and an integer k (1 ≤ k ≤ number of distinct values in nums), return any k values that appear most frequently. Implement a...

Coding & Algorithms
8
0
99 people solved
Aug 13, 2025
Meta logo
Meta
Medium
Software Engineer

Implement tree column grouping and minimal parentheses fixes

Part A — Binary tree column grouping: Given the root of a binary tree, group node values by their vertical columns from leftmost to rightmost using x-...

Coding & Algorithms
3
0
32 people solved
Aug 13, 2025
Motive logo
Motive
Medium
Software Engineer

Implement Union-Find for connectivity

Implement a Disjoint Set Union (Union-Find) data structure with path compression and union by rank. Support operations: make_set, find(x), union(x, y)...

Coding & Algorithms
2
0
38 people solved
Aug 13, 2025
Citadel logo
Citadel
Medium
Data Scientist

Introduce your background and motivations

Behavioral Prompt — Introduce Yourself (Data Scientist) Context You are interviewing for a Data Scientist role. Prepare a concise 2–3 minute introduct...

Behavioral & Leadership
6
0
48 people solved
Aug 13, 2025
Google logo
Google
Medium
Software EngineerSenior+

Design set with O(1) random access

Design a data structure ("FancySet") that stores unique integers and supports the following operations, each in average O(1) time: - add(x): Insert va...

Coding & Algorithms
12
0
144 people solved
Jan 1, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Validate a training courses catalog

This question evaluates understanding of directed graphs, cycle detection, dependency validation, and data consistency in the context of a training co...

Coding & Algorithms
4
0
47 people solved
Jan 1, 2026
Instacart logo
Instacart
Medium
Software Engineer Locked

Design a task system with assignments

This question evaluates data modeling, API/interface design, and system-design competencies—focusing on entity relationships (Task versus Assignment),...

Software Engineering Fundamentals
11
0
85 people solved
Jan 1, 2026
Citadel logo
Citadel
Easy
Software Engineer Locked

Implement an in-memory order book API

This question evaluates understanding of in-memory data structures and API design for maintaining ordered collections with FIFO semantics, correctness...

Coding & Algorithms
5
0
106 people solved
Jan 1, 2026
Snowflake logo
Snowflake
Hard
Software Engineer Locked

Check if each recipe is a contiguous subsequence

This question evaluates proficiency in algorithmic sequence matching and contiguous subarray detection, encompassing array/string pattern matching and...

Coding & Algorithms
5
0
58 people solved
Jan 1, 2026
Snowflake logo
Snowflake
Hard
Software Engineer Locked

Maximize revenue by choosing one query type

This question evaluates optimization and numerical reasoning skills, specifically selecting a single repetitive action to maximize aggregate revenue u...

Coding & Algorithms
13
0
103 people solved
Jan 1, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Design ad click tracking and dashboard at scale

This question evaluates a candidate's skills in designing large-scale distributed systems including real-time data ingestion and aggregation, storage ...

System Design
4
0
46 people solved
Jan 1, 2026
BitGo logo
BitGo
Medium
Software Engineer

Explain your most impactful project end-to-end

End-to-End Project Deep Dive (Behavioral) Walk through one recent, high-impact project you led or contributed to end-to-end. Cover the following: 1. P...

Behavioral & Leadership
3
0
50 people solved
Aug 12, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Describe a flagship project’s architecture and tradeoffs

Behavioral/Leadership: Deep Dive on a Significant Project Context: Onsite software engineering interview. Choose one substantial project you personall...

Behavioral & Leadership
10
0
107 people solved
Aug 12, 2025