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
Citadel logo
Citadel
Hard
Data Scientist

Sort a nearly sorted array

Given an array of length \(n\) in which every element is at most \(k\) positions away from its location in the fully sorted order, design an algorithm...

Coding & Algorithms
4
0
79 people solved
Jan 30, 2026
Uber logo
Uber
Medium
Data Scientist Locked

How should Uber evaluate lower ETA?

This question evaluates competency in metrics design, causal inference, and experiment strategy for two-sided marketplaces, including detecting and ad...

Analytics & Experimentation
7
0
47 people solved
Jan 30, 2026
Snapchat logo
Snapchat
Hard
Machine Learning Engineer

Implement calculator and graph connectivity

Answer the following coding problems: 1. Implement an arithmetic expression evaluator. Given a string containing non-negative integers, spaces, +, -, ...

Coding & Algorithms
6
0
53 people solved
Jan 30, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Implement an IPv4 Range Iterator

This question evaluates implementing iterative data structures and range-handling algorithms alongside numeric representation of IPv4 addresses and bi...

Coding & Algorithms
4
0
70 people solved
Jan 29, 2026
Uber logo
Uber
Medium
Software Engineer

Return a Package Build Order

You are given an API: `python get_dependencies(package) -> list[str] ` It returns the direct dependencies of a given package. If package A depends on ...

Coding & Algorithms
4
0
58 people solved
Jan 28, 2026
Uber logo
Uber
Medium
Software Engineer

Find shortest jumps in circular array

You are given a circular array arr of length n. From index i, you may jump exactly arr[i] steps either to the left or to the right (wrapping around th...

Coding & Algorithms
11
0
111 people solved
Jan 28, 2026
Amazon logo
Amazon
Medium
Software Engineer

Maximize weighted subsequence pairs with wildcards

You are given a string s of length n consisting only of characters '0', '1', and '!'. Each '!' can be replaced by either '0' or '1'. For the final bin...

Coding & Algorithms
113
0
1013 people solved
Jan 27, 2026
Apple logo
Apple
Medium
Software Engineer

Solve 15 common interview problems

Below are fifteen independent coding problems commonly discussed in software engineering interviews. For each one, write an efficient algorithm and be...

Coding & Algorithms
8
0
83 people solved
Jan 27, 2026
Bridge.Xyz logo
Bridge.Xyz
Medium
Software Engineer

Normalize a file path

Given an absolute Unix-style file path as a string, return its canonical normalized form. Rules: - The input always starts with /. - A single . means ...

Coding & Algorithms
5
0
89 people solved
Jan 27, 2026
Snapchat logo
Snapchat
Medium
Software Engineer

Compute minimum escape time in a grid

You are given a 2D floor plan grid. Each cell is one of: - . empty space (walkable) - # wall/blocked (not walkable) - P a person - E an exit A person ...

Coding & Algorithms
7
0
55 people solved
Jan 26, 2026
Bytedance logo
Bytedance
Medium
Software Engineer

Solve Search Speed and String Product

You are asked to solve two coding problems. Problem 1: Find the Minimum Constant Processing Speed You are given an array piles, where piles[i] is the ...

Coding & Algorithms
0
0
4 people solved
Jan 26, 2026
Snapchat logo
Snapchat
Medium
Software Engineer

Determine Whether a Word Transformation Exists

Given a beginWord, an endWord, and a list of valid words wordList, determine whether it is possible to transform beginWord into endWord. Rules: - Each...

Coding & Algorithms
1
0
31 people solved
Jan 25, 2026
Dropbox logo
Dropbox
Medium
Software Engineer

Compute worst-case guesses for adaptive hangman

You are given a set of distinct lowercase words, all of the same length. A hidden word is chosen from this set, but the host is adversarial: after eac...

Coding & Algorithms
5
0
70 people solved
Jan 25, 2026
Whatnot logo
Whatnot
Medium
Software Engineer

Build a Tic-Tac-Toe App

Implement a simple Tic-Tac-Toe mobile app that can be completed in a 45-minute coding interview. Requirements: - Display a 3x3 board. - Support two lo...

Coding & Algorithms
0
0
10 people solved
Jan 24, 2026
Tesla logo
Tesla
Medium
Software Engineer

Implement a Timed Task Scheduler

Implement a runnable task scheduler. The scheduler should allow clients to add new tasks at any time. Each task has: - A callback or function to execu...

Coding & Algorithms
0
0
6 people solved
Jan 24, 2026
Dropbox logo
Dropbox
Medium
Software Engineer Locked

Return all files under a path

This question evaluates filesystem traversal and recursive/iterative algorithm skills, including handling different path types, edge cases such as mis...

Coding & Algorithms
6
0
115 people solved
Jan 22, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve matrix groups and recipe inventory

This pair of problems evaluates block-wise grid processing and aggregation for minimum-value selection alongside dependency-resolution and resource-al...

Coding & Algorithms
25
0
215 people solved
Jan 22, 2026
TikTok logo
TikTok
Medium
Machine Learning Engineer Locked

Find length of longest common subsequence

This question evaluates understanding of dynamic programming, string algorithms, and algorithmic problem-solving skills related to sequence comparison...

Coding & Algorithms
5
0
45 people solved
Jan 22, 2026
Instacart logo
Instacart
Hard
Software Engineer Locked

Decode a password string into letters

This question evaluates string parsing and encoding/decoding skills, specifically mapping numeric tokens and handling delimiter characters within the ...

Coding & Algorithms
15
0
137 people solved
Jan 22, 2026
Stripe logo
Stripe
Medium
Software Engineer Locked

Compute balances with transaction fees and rejections

This question evaluates transaction processing, ledger state management, handling of edge cases like insufficient funds and fixed fees, and efficient ...

Coding & Algorithms
8
0
61 people solved
Jan 22, 2026