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
Meta logo
Meta
Medium
Machine Learning Engineer

Optimize repeated-value vectors and compute exclusive times

You are given two separate coding tasks from an interview. Task 1: Optimize storage for vectors with repeated values, then compute dot product You are...

Coding & Algorithms
3
0
49 people solved
Oct 30, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Reverse linked list in fixed-size groups

Problem You are given the head of a singly linked list and an integer k (k >= 1). Reverse the nodes of the list in-place in groups of size k: - The no...

Coding & Algorithms
4
0
58 people solved
Oct 28, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Merge multiple sorted arrays using min-heap

Problem You are given k sorted arrays of integers: - arrays[0], arrays[1], ..., arrays[k-1] - Each arrays[i] is sorted in non-decreasing order. - The ...

Coding & Algorithms
4
0
51 people solved
Oct 28, 2025
Uber logo
Uber
Medium
Software Engineer

Compute outer boundary of an N-ary tree

You are given the root of a rooted N-ary tree. Each node contains: - An integer value. - An ordered list of children from left to right (0 or more chi...

Coding & Algorithms
14
0
142 people solved
Oct 28, 2025
TikTok logo
TikTok
Medium
Software Engineer

Find k-th largest element in array

You are given an unsorted array of integers nums and a positive integer k. Design an efficient algorithm to find the k-th largest element in the array...

Coding & Algorithms
5
0
43 people solved
Oct 27, 2025
Meta logo
Meta
Hard
Data Scientist Locked

How to design Shop ad ranking

This question evaluates a candidate's expertise in machine learning and data science for ad ranking systems, including objective formulation and trade...

Machine Learning
3
0
28 people solved
Oct 26, 2025
Google logo
Google
Easy
Data Scientist

Match payments to invoices by memo or amount

Scenario You are building a small reconciliation tool that matches payments to invoices. Data structures Assume you are given: - invoices: a list of i...

Coding & Algorithms
8
0
57 people solved
Oct 25, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Find all unique triplets summing to zero

Problem Given an integer array nums, return all unique triplets [nums[i], nums[j], nums[k]] such that: - i, j, and k are distinct indices (i != j != k...

Coding & Algorithms
5
0
47 people solved
Oct 23, 2025
Snapchat logo
Snapchat
Medium
Software Engineer Locked

Compute maximum perimeter among islands

This question evaluates a candidate's proficiency with grid traversal, connected-component identification, and perimeter computation in binary matrice...

Coding & Algorithms
4
0
45 people solved
Oct 21, 2025
Morgan Stanley logo
Morgan Stanley
Easy
Data Scientist

Compute win probability in coin-toss game

Two players, A and B, play the following game with a fair coin: - They toss the coin alternately: A tosses first, then B, then A, then B, and so on. -...

Coding & Algorithms
2
0
45 people solved
Oct 21, 2025
Illumio logo
Illumio
Medium
Software Engineer Locked

Explain Kafka Reliability and Offset Recovery

This question evaluates understanding of distributed messaging and event-processing concepts, specifically partitioning effects on ordering, paralleli...

Software Engineering Fundamentals
3
0
25 people solved
Oct 20, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Validate parentheses with one or three bracket types

Problem Given a string s consisting only of bracket characters, determine whether it is valid. A string is valid if: - Every opening bracket has a cor...

Coding & Algorithms
5
1
65 people solved
Oct 20, 2025
Illumio logo
Illumio
Medium
Software Engineer Locked

Count Regions in a Binary Grid

This question evaluates understanding of grid-as-graph representations, identification of connected components, and competency in algorithmic problem-...

Coding & Algorithms
1
0
18 people solved
Oct 20, 2025
Square logo
Square
Hard
Software Engineer

Implement transaction network queries

Problem You are building a small in-memory library to track pairwise customer transactions and answer connectivity questions about who has transacted ...

Coding & Algorithms
5
0
59 people solved
Oct 19, 2025
Roblox logo
Roblox
Easy
Data ScientistIntern

Implement four DS coding tasks

You are completing a CodeSignal-style assessment (Python or R). Implement solutions for the following four independent questions. 1) Two-sample z-test...

Coding & Algorithms
11
0
226 people solved
Oct 18, 2025
Uber logo
Uber
Medium
Software Engineer

Print directory tree with indentation

You are given a root directory of a filesystem represented as a tree. Each node is either a directory (can have children) or a file (no children). Pri...

Coding & Algorithms
15
0
113 people solved
Oct 18, 2025
Dropbox logo
Dropbox
Medium
Software Engineer

Implement hierarchical folder access check

You are asked to simulate a simple hierarchical file system and implement an access-check function. The file system consists of folders arranged in a ...

Coding & Algorithms
8
0
85 people solved
Oct 18, 2025
Google logo
Google
Easy
Software Engineer

Compute max coins with 3-step token moves

You are given a one-dimensional board with n positions represented by a string s of length n: - . = empty cell - T = token - C = coin You may move tok...

Coding & Algorithms
22
0
151 people solved
Oct 16, 2025
Atlassian logo
Atlassian
Medium
Machine Learning Engineer Locked

Assign bookings to minimum tennis courts

This question evaluates interval scheduling and resource-allocation competencies, testing algorithmic and data-structure knowledge for handling time-i...

Coding & Algorithms
3
0
34 people solved
Oct 15, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Build a time-based key-value store

Problem Design a data structure that stores multiple values for the same key at different timestamps, and can retrieve the most recent value as of a g...

Coding & Algorithms
6
0
69 people solved
Oct 14, 2025