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
Meta logo
Meta
Hard
Software Engineer

Solve common array/string/linked-list tasks

You may be asked one or more of the following independent coding tasks. For each task, implement an efficient algorithm and clearly state time/space c...

Coding & Algorithms
5
0
46 people solved
Oct 21, 2025
Meta logo
Meta
Medium
Software Engineer

Design structure for top-K frequent elements

You are working with a large collection of items represented by integer IDs (e.g., product IDs, user IDs, etc.). Updates and queries arrive over time....

Coding & Algorithms
3
0
51 people solved
Oct 21, 2025
Meta logo
Meta
Medium
Software Engineer

Find shortest substring with N unique characters

You are given a string s and an integer n. Find the shortest contiguous substring of s that contains exactly n distinct characters. If there is no suc...

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

Explain forward contracts and options

In a finance-focused technical interview, you are asked to explain two basic derivative instruments: 1. What is a forward contract? 2. What is an opti...

Software Engineering Fundamentals
5
0
42 people solved
Oct 21, 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
19 people solved
Oct 20, 2025
Illumio logo
Illumio
Medium
Software Engineer Locked

Design a Moderated Messaging Service

This question evaluates system design competency, covering scalable distributed architecture, data modeling, API design, integration with external mod...

System Design
2
0
22 people solved
Oct 20, 2025
Point72 logo
Point72
Easy
Data ScientistIntern

Find kth missing integer and redundant operations

You are given two independent coding tasks. Task 1: K-th missing number You are given an integer array nums (not necessarily sorted) containing distin...

Coding & Algorithms
7
0
55 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
60 people solved
Oct 19, 2025
TikTok logo
TikTok
Easy
Software Engineer

Find first and last index of target

You are given an integer array nums sorted in non-decreasing order and an integer target. Return a pair [left, right] where: - left is the index of th...

Coding & Algorithms
7
0
64 people solved
Oct 19, 2025
Rippling logo
Rippling
Easy
Software Engineer AI Locked

Build an Expense Policy Rule Engine

This question evaluates implementing rule-evaluation logic, data modeling for expense records and rule representations, operator semantics, and design...

Coding & Algorithms
4
0
45 people solved
Apr 17, 2025
Tradedesk logo
Tradedesk
Easy
Data Scientist

Implement monotonic-array linear interpolation

Question Implement a function interpolate(array_x, array_y, x) that returns the linearly interpolated y-value for a query x-value, given paired data p...

Coding & Algorithms
2
0
57 people solved
Oct 18, 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
227 people solved
Oct 18, 2025
Meta logo
Meta
Medium
Software Engineer

Design ticketing and coding practice platforms

You are asked two separate system design questions. --- 1. Design an online event ticketing platform (like Ticketmaster) Design a large-scale web serv...

System Design
2
0
30 people solved
Oct 18, 2025
Meta logo
Meta
Medium
Software Engineer AI Locked

Solve tree, array, and maze tasks

This set of problems evaluates proficiency in algorithms and data structures, covering binary tree diameter computation, array optimization for maximu...

Coding & Algorithms
2
0
25 people solved
Oct 17, 2025
Rippling logo
Rippling
Medium
Software Engineer

Aggregate expenses by person, trip, and category

Problem You are given a list of expense records. Each record has: - employee_id (string) - trip_id (string) - category (string, e.g., MEAL, HOTEL, TRA...

Coding & Algorithms
20
0
314 people solved
Oct 17, 2025
Cvs logo
Cvs
Easy
Data Scientist Locked

Reduce LLM hallucination and handle class imbalance

This question evaluates applied machine learning competencies including LLM safety and hallucination mitigation, retrieval-augmented generation and to...

Machine Learning
5
0
41 people solved
Oct 17, 2025
League logo
League
Medium
Software Engineer

Design matrix-operations HTTP service and test strategy

You are given a take-home assignment to build a small backend server. The goal is not algorithmic difficulty but demonstrating solid software engineer...

Software Engineering Fundamentals
3
0
31 people solved
Oct 17, 2025
Google logo
Google
Easy
Software Engineer

Find largest subset sharing a common digit

You are given a list A of two-digit integers (each from 10 to 99). Two integers are said to “share a digit” if they have at least one digit in common ...

Coding & Algorithms
4
1
49 people solved
Oct 16, 2025
IBM logo
IBM
Easy
Software Engineer

Explain CI/CD, Kubernetes delivery, and troubleshooting

You are interviewing for a DevOps/SRE-style role. Answer the following practical questions: 1) What is CI/CD? Which CI/CD tools have you used and why?...

Software Engineering Fundamentals
5
0
52 people solved
Oct 15, 2025
Atlassian logo
Atlassian
Medium
Machine Learning Engineer Locked

Compute moving and weighted averages from a stream

This question evaluates a candidate's understanding of streaming algorithms, sliding-window statistics, and resource-constrained data structure design...

Coding & Algorithms
3
0
36 people solved
Oct 15, 2025