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

Add two big integers from digit lists

You are given two non-empty singly linked lists (or arrays) representing two non-negative integers. The digits are stored in reverse order, and each n...

Coding & Algorithms
11
0
102 people solved
Nov 24, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Find the k-th largest element in an array

Given an integer array nums and an integer k, return the k-th largest element in the array. Notes: - The k-th largest element is the element that woul...

Coding & Algorithms
11
0
87 people solved
Nov 21, 2025
Amazon logo
Amazon
Medium
Machine Learning Engineer

Find two numbers that sum to target

Given an integer array nums of length n and an integer target, return the indices (i, j) (0-based) of two distinct elements such that nums[i] + nums[j...

Coding & Algorithms
2
0
28 people solved
Nov 20, 2025
Rippling logo
Rippling
Medium
Software EngineerIntern

Find median of two sorted arrays

You are given two sorted arrays of integers nums1 and nums2 in non-decreasing order. Let the lengths be m = nums1.length and n = nums2.length. Either ...

Coding & Algorithms
18
0
136 people solved
Nov 20, 2025
xAI logo
xAI
Easy
Software Engineer

Phone Keypad Predictive Text Suggestions

Phone Keypad Predictive Text Suggestions You are building the predictive-text feature for a classic 9-key phone keypad. Each digit from 2 to 9 maps to...

Coding & Algorithms
1
0
13 people solved
Jun 7, 2025
Tradedesk logo
Tradedesk
Medium
Machine Learning Engineer

Design a time-travel key-field store with TTL

Problem Implement an in-memory “database” that stores records by key and fields within each key. Each operation is given a timestamp (integer, non-dec...

Coding & Algorithms
5
0
91 people solved
Nov 19, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Implement staircase printing and distributed mode/median

Problem A: Print a “staircase” pattern Implement a function that prints a staircase with n rows. Input - An integer n (n >= 1) Output - Print n lines....

Coding & Algorithms
67
0
923 people solved
Nov 19, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Merge overlapping intervals

You are given an array of intervals, where each interval is represented as a pair of integers [start, end] with start <= end. The intervals may be uns...

Coding & Algorithms
3
0
55 people solved
Nov 19, 2025
Amazon logo
Amazon
Medium
Machine Learning Engineer

Implement decoder-only GPT-style transformer

Goal Implement a simplified decoder-only Transformer language model (similar in spirit to GPT) for next-token prediction. The implementation should be...

Coding & Algorithms
20
0
173 people solved
Nov 18, 2025
Amazon logo
Amazon
Medium
Software EngineerSenior+ Locked

Answer Leadership and Collaboration Prompts

This question evaluates leadership, collaboration, interpersonal communication, conflict resolution, adaptability, and self-reflection competencies wi...

Behavioral & Leadership
4
0
36 people solved
Nov 17, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Find max consecutive elements with sum below target

You are given: - An integer array nums of length n, sorted in non-decreasing order. - An integer index such that 0 ≤ index < n. - An integer target. S...

Coding & Algorithms
8
0
84 people solved
Nov 17, 2025
Uber logo
Uber
Hard
Software Engineer

Check feasibility of AI course schedule

You are designing a learning path for n AI-related courses, labeled from 0 to n - 1. Some courses have prerequisites. For example, to take course b, y...

Coding & Algorithms
7
0
79 people solved
Nov 17, 2025
Optiver logo
Optiver
Hard
Software EngineerNew Grad

Cargo Order Allocation Across Departing Planes

A freight company assigns incoming shipping orders to a fixed fleet of cargo planes. You must implement the order-processing logic: decide whether eac...

Coding & Algorithms
0
0
10 people solved
Nov 16, 2025
Google logo
Google
Medium
Software Engineer

Compute minimal transfers to settle group expenses

Problem A group of friends go on a trip and share expenses. Each expense is recorded as an object: - payer (string): who paid the full amount - amount...

Coding & Algorithms
11
0
81 people solved
Nov 16, 2025
Meta logo
Meta
Easy
Data Scientist Locked

Define hand-waving accuracy and launch decision

This question evaluates a data scientist's ability to define and operationalize detection metrics, design instrumentation and diagnostics, connect mod...

Analytics & Experimentation
4
0
53 people solved
Nov 16, 2025
TikTok logo
TikTok
Medium
Software Engineer

Explain Java ConcurrentHashMap and queues

An interviewer asks you conceptual questions about Java's concurrency primitives. Explain in detail: 1. How Java's ConcurrentHashMap is implemented in...

Software Engineering Fundamentals
3
0
54 people solved
Nov 16, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Update Box Probabilities After Drawing Red Balls

Three boxes are equally likely to be selected: - Box A contains two red balls. - Box B contains one red and one blue ball. - Box C contains two blue b...

Statistics & Math
0
0
3 people solved
Jan 5, 2025
Apple logo
Apple
Hard
Software Engineer

ASIC Verification Fundamentals Across SystemVerilog UVM CDC and Architecture

Work through this ASIC design-verification interview set. Use small SystemVerilog examples where they make an answer clearer, and distinguish simulati...

Software Engineering Fundamentals
0
0
8 people solved
Jan 5, 2025
Bytedance logo
Bytedance
Medium
Data Scientist

Explain Type I/II errors vs precision/recall

In the context of binary classification and hypothesis testing: 1) Define Type I error and Type II error. 2) Explain how they relate to false positive...

Statistics & Math
4
0
45 people solved
Nov 12, 2025
Meta logo
Meta
Easy
Software Engineer

Design a time-versioned key-value store and find common free time

You are given two coding tasks. Task 1: Time-versioned key-value store Design an in-memory data structure that supports: - set(key, value, timestamp):...

Coding & Algorithms
4
0
32 people solved
Nov 12, 2025