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 486 Companies08.11.2026
Showing 20 results
Role
Amazon logo
Amazon
Medium
Software Engineer

Describe diving deep into a problem

Describe diving deep into a problem Behavioral: Dive Deep to Resolve a Complex System Issue Prompt Describe a situation where you had to dive deep int...

Behavioral & Leadership
3
0
43 people solved
Jul 31, 2025
Amazon logo
Amazon
Medium
Software Engineer

Decide reachability with buses and limited walking

You are given: ( 1) a start point (xs, ys), ( 2) an end point (xe, ye), ( 3) an integer K, and ( 4) an undirected graph of bus stations where each nod...

Coding & Algorithms
3
0
38 people solved
Jul 31, 2025
J.P. Morgan logo
J.P. Morgan
Medium
Software Engineer

Compute ring window max and deletion indices

Part A — Ring window maximum: You are given n computers arranged in a circle, represented by an array of bits (1 = on, 0 = off), and an integer k (1 <...

Coding & Algorithms
8
0
79 people solved
Jul 31, 2025
Instacart logo
Instacart
Medium
Software Engineer

Compute and optimize average wait time

You are given n pickup orders for a grocery delivery counter. Each order i is described by orders[i] = [arrival_i, service_i] in minutes, where arriva...

Coding & Algorithms
16
0
114 people solved
Jul 31, 2025
PayPal logo
PayPal
Medium
Data Scientist

Write conditional aggregates with CASE WHEN

Write conditional aggregates with CASE WHEN Write a query that produces conditional aggregates using CASE WHEN (e.g., counts of approved vs declined t...

Data Manipulation (SQL/Python)
4
0
56 people solved
Jul 31, 2025
Databricks logo
Databricks
Medium
Software Engineer

Design an IP filter using CIDR rules

Explain CIDR notation with a couple of concrete examples. Show how to convert a prefix like 192.168.0.0/16 into an inclusive 32-bit integer range and ...

Coding & Algorithms
33
0
256 people solved
Jul 31, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Implement 64-bit modular exponentiation safely

Implement a function to compute (a^b) mod m where 0 ≤ a,b < 2^61−1 and 1 ≤ m < 2^61−1 using only 64-bit operations without overflow. Provide implement...

Coding & Algorithms
11
0
101 people solved
Jul 31, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Explain background and Salesforce motivation

Explain background and Salesforce motivation Behavioral: Background, Motivation, and Team Fit (Salesforce, GCP-Focused) Prompt Provide a concise, stru...

Behavioral & Leadership
13
0
100 people solved
Jul 31, 2025
Vanta logo
Vanta
Medium
Software Engineer

Design test logging and failure-window queries

Build an in-memory service to log test run results and answer two queries. Assumptions: events arrive with strictly increasing timestamps across all t...

Coding & Algorithms
18
0
217 people solved
Jul 31, 2025
xAI logo
xAI
Medium
Software Engineer

Minimum Time to Run All Jobs with a Cooldown Between Identical Jobs

You are given a list of jobs to run on a single-core CPU, where each job is represented by an uppercase letter 'A'–'Z' in an array jobs. Jobs of the s...

Coding & Algorithms
1
0
8 people solved
Jul 30, 2025
Meta logo
Meta
Medium
Software Engineer

Solve LeetCode stack and tree problems

Question LeetCode 1249. Minimum Remove to Make Valid Parentheses LeetCode 863. All Nodes Distance K in Binary Tree https://leetcode.com/problems/minim...

Coding & Algorithms
15
0
48 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Solve LeetCode string and list problems

Question LeetCode 767. Reorganize String LeetCode 23. Merge k Sorted Lists LeetCode 138. Copy List with Random Pointer https://leetcode.com/problems/r...

Coding & Algorithms
12
0
45 people solved
Jul 29, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Allocate refund across payments

Question Given a list of completed payment transactions (each with payment method, date, and amount) and a refund amount R, write an algorithm that is...

Coding & Algorithms
78
0
258 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Discuss deadline, challenge, feature

Discuss deadline, challenge, feature Behavioral Questions for a Software Engineer Phone Screen These prompts assess your ownership, delivery under pre...

Behavioral & Leadership
8
0
29 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Minimize cost & recommend movies

Question Given arrays size[] and cost[] where size[i] is the size of the i-th product and cost[i] is the cost to increase size[i] by one unit, compute...

Coding & Algorithms
18
0
63 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve three LeetCode coding problems

Question LeetCode 1249. Minimum Remove to Make Valid Parentheses LeetCode 827. Making A Large Island LeetCode 199. Binary Tree Right Side View https:/...

Coding & Algorithms
8
0
25 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Find integer in most intervals

Question Given N integer intervals [ai, bi] (positive integers), find an integer that belongs to the maximum number of intervals (return any such inte...

Coding & Algorithms
7
0
19 people solved
Jul 29, 2025
Ramp logo
Ramp
Medium
Software Engineer

Navigate maze via HTTP API

Question Implement a program that repeatedly calls a provided HTTP API which returns the next URL in a maze; continue following the URLs until reachin...

Coding & Algorithms
13
0
52 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Count deletions making array fair

Question LeetCode 1664. Ways to Make a Fair Array – Given an integer array nums, count the indices whose removal results in the sum of elements at eve...

Coding & Algorithms
5
0
19 people solved
Jul 29, 2025
Roblox logo
Roblox
Medium
Software Engineer

Randomly partition array into k segments

Question Given a list of integers and an integer k representing the number of segments, write a function that randomly partitions the list into k non-...

Coding & Algorithms
25
0
68 people solved
Jul 29, 2025