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

Implement sliding-window moving average

Design a class MovingAverage that supports a constructor MovingAverage(k) and a method next(val) returning the average of the last k values from a dat...

Coding & Algorithms
5
2
44 people solved
Jul 31, 2025
Adobe logo
Adobe
Medium
Software Engineer

Implement file word count

Write a function that reads a large text file and returns the frequency count of each word. Define how you will normalize tokens (case, Unicode, punct...

Coding & Algorithms
6
0
69 people solved
Jul 31, 2025
Vanta logo
Vanta
Medium
Software Engineer

Design test logging and failure-window queries

Build an in-memory service to log test run results and answer two queries. Assumptions: events arrive with strictly increasing timestamps across all t...

Coding & Algorithms
18
0
216 people solved
Jul 31, 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
Airbnb logo
Airbnb
Medium
Software Engineer

Implement Connect Four with win detection

Implement a Connect Four game engine. Support a general m×n board (default 6× 7) and a win condition of k in a row (default 4). Provide an API: Connec...

Coding & Algorithms
17
0
107 people solved
Jul 31, 2025
Fidelity logo
Fidelity
Medium
Software Engineer

Explain motivation, strengths, dislikes, and tech stack

Explain motivation, strengths, dislikes, and tech stack Behavioral & Technical Self‑Assessment (Software Engineer, Take‑Home Project Round) Context: Y...

Behavioral & Leadership
2
0
22 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
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
Nextdoor logo
Nextdoor
Medium
Software Engineer

Implement version string comparator with extensions

Implement a function compareVersions(a, b) that compares two software version strings. Each version consists of dot-separated numeric components (e.g....

Coding & Algorithms
11
0
92 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
Rippling logo
Rippling
Medium
Software Engineer

Compute max simultaneous drivers last 24 hours

Given delivery intervals (driverId, startTime, endTime) already recorded, implement maxSimultaneousDriverInPast24Hours() that returns the maximum numb...

Coding & Algorithms
29
0
209 people solved
Jul 31, 2025
Adobe logo
Adobe
Medium
Software Engineer

Determine feasible task ordering

You are given n tasks labeled 0..n−1 and a list of dependency pairs (a, b) meaning task a requires task b to be completed first. Implement functions t...

Coding & Algorithms
6
0
47 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
Coinbase logo
Coinbase
Medium
Software Engineer

Compute prices, distances, and Top-K for orders

Compute prices, distances, and Top-K for orders Build functions for a food‑delivery analytics module. Data: - Restaurants: id, (x, y) location, menu m...

Coding & Algorithms
13
0
97 people solved
Jul 31, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Compute shortest recursive string encoding

Given a string s, compress it by replacing any consecutive repetition of a substring with the form k{pattern} where k > 1 and pattern may itself be re...

Coding & Algorithms
5
0
54 people solved
Jul 31, 2025
Meta logo
Meta
Medium
Machine Learning Engineer

Check diagonal equality in a matrix

Given an m x n integer matrix, determine whether every top-left to bottom-right diagonal contains identical values (all elements along each such diago...

Coding & Algorithms
6
0
62 people solved
Jul 31, 2025
HubSpot logo
HubSpot
Medium
Software Engineer

Merge two sorted linked lists

Given the heads of two singly linked lists sorted in non-decreasing order, merge them into a single sorted singly linked list and return its head. Imp...

Coding & Algorithms
6
0
57 people solved
Jul 31, 2025
Atlassian logo
Atlassian
Medium
Software Engineer

Find nearest common manager for multiple employees

Given an organizational hierarchy modeled as a rooted tree, build the tree from (employee, manager) pairs and implement a function that, for k ≥ 2 emp...

Coding & Algorithms
9
0
116 people solved
Jul 31, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Solve rotating-lock BFS with blockers

You are given a 4-digit lock starting at "0000". In one move, you may pick a single position and rotate it +1 or −1 with wrap-around (0→9 on −1, 9→0 o...

Coding & Algorithms
2
0
47 people solved
Jul 31, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Count changed nodes in N-ary trees

Question Given two N-ary trees (old and new versions) where each node has a key (string), value (int), and list of children, compute how many nodes ar...

Coding & Algorithms
13
0
45 people solved
Jul 29, 2025