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
Pinterest logo
Pinterest
Medium
Data Scientist

Find available reservation time slots

Problem You are building an API to show which time slots are available for booking at a restaurant. You are given: - The restaurant’s opening hours (p...

Coding & Algorithms
12
0
101 people solved
Aug 2, 2025
Roblox logo
Roblox
Medium
Software Engineer

Design robot path boundedness with repeats

You are given a 2D grid with a set of blocked cells (obstacles) and a robot starting at (0, 0) facing north. The robot executes a finite instruction s...

Coding & Algorithms
21
0
169 people solved
Aug 1, 2025
Uber logo
Uber
Medium
Software Engineer

Design time-versioned KV without timestamp argument

Design a time-versioned key-value store that does not accept a timestamp argument on writes. Support set(key, value) which stores the value with an in...

Coding & Algorithms
3
0
74 people solved
Aug 1, 2025
Uber logo
Uber
Medium
Software Engineer

Define and integrate room ranking factors

Define and integrate room ranking factors Design a Room-Ranking System for Meeting Requests Context You are building a service that assigns conference...

Analytics & Experimentation
3
0
59 people solved
Aug 1, 2025
J.P. Morgan logo
J.P. Morgan
Medium
Software Engineer

Compute longest palindromic subsequence

Given a string s (1 ≤ |s| ≤ 2000), implement a function that returns the length of the longest subsequence of s that reads the same forward and backwa...

Coding & Algorithms
1
0
25 people solved
Aug 1, 2025
Circle logo
Circle
Medium
Software Engineer

Design payment scheduler with cancel and top-K outgoing

Design and implement an in-memory banking payment component with the following APIs: ( 1) schedulePayment(payerId, payeeId, amount, executeAt) -> paym...

Coding & Algorithms
14
0
120 people solved
Aug 1, 2025
Meta logo
Meta
Easy
Data ScientistSenior+

Compute invalid event percentage by pixel

Context You work on an ads pixel instrumentation platform. Each pixel emits events throughout the day; some events are missing (not observed) and some...

Data Manipulation (SQL/Python)
0
1
11 people solved
Aug 1, 2025
Uber logo
Uber
Medium
Software Engineer

Implement binary search from scratch

Question Implement binary search on a sorted integer array without using any library helpers (no bisect, Arrays.binarySearch, etc.). Provide both iter...

Coding & Algorithms
11
0
83 people solved
Aug 1, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Design O(nm) grouping of rearranged strings

Given an array of strings, group together words that are permutations of the same characters. Provide a baseline solution that sorts each word (O(n · ...

Coding & Algorithms
10
0
87 people solved
Aug 1, 2025
Samsara logo
Samsara
Medium
Software Engineer

Parse Markdown Links Without Regex

Implement a function that converts simplified link syntax text into an HTML anchor tag <a href="url">text</a> across an entire input string. Constrain...

Coding & Algorithms
13
0
103 people solved
Aug 1, 2025
Citadel logo
Citadel
Medium
Software Engineer

Optimize password transform and discount scheduling

Optimize password transform and discount scheduling Part 1 — Transform to palindromic k-periodic string: Input: a lowercase string currentPassword and...

Coding & Algorithms
15
0
134 people solved
Aug 1, 2025
Google logo
Google
Medium
Software Engineer

Implement zigzag level-order traversal

Given the root of a binary tree, return the node values in zigzag level order: visit nodes level by level, reading the first level from left to right,...

Coding & Algorithms
7
1
61 people solved
Aug 1, 2025
Instacart logo
Instacart
Medium
Software Engineer

Describe challenges and proud accomplishment

Describe challenges and proud accomplishment Behavioral: Significant Challenge and Proud Accomplishment (Software Engineer Onsite) Provide two concise...

Behavioral & Leadership
2
0
34 people solved
Aug 1, 2025
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
42 people solved
Jul 31, 2025
DoorDash logo
DoorDash
Medium
Software EngineerSenior+

Solve BFS grid delivery routing

You are given an m×n grid representing a city: 'S' are DashMart stores, 'H' are homes, '.' are roads, and '#' are obstacles. Movement is allowed in fo...

Coding & Algorithms
8
0
70 people solved
Jul 31, 2025
Amazon logo
Amazon
Hard
Software Engineer

Design document-tag classes with concurrency safety

Design document-tag classes with concurrency safety System Design: In‑Memory Document–Tag Manager (Single Node) Context You are designing an in-memory...

System Design
4
0
38 people solved
Jul 31, 2025
Instacart logo
Instacart
Medium
Software Engineer

Pivot data without date libraries

Transform a tall dataset into a wide, pivoted view without using any date/time libraries. Input: a list of records (date, store_id, metric, value) whe...

Data Manipulation (SQL/Python)
0
0
11 people solved
Jul 31, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Implement island counting with BFS and DFS

Question You are given an m x n grid of characters where '1' represents land and '0' represents water. Count the number of distinct islands (connected...

Coding & Algorithms
6
0
68 people solved
Jul 31, 2025
Fidelity logo
Fidelity
Medium
Software Engineer

Describe Java 8 features

Describe Java 8 features What are the key new features introduced in Java 8? Explain when and how you would use lambda expressions, the Stream API, Op...

Coding & Algorithms
4
0
42 people solved
Jul 31, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Merge overlapping time intervals efficiently

Given a list of closed intervals [start, end] with 0 <= start <= end, merge all intervals that overlap or touch and return a minimal set of non-overla...

Coding & Algorithms
15
1
204 people solved
Jul 31, 2025