Tech Interview Questions

Practice 9,555+ interview questions from top companies including Google, Meta, Amazon, and more. Filter by company, role, and category.

Popular Interview Questions

Interview Questions

Practice the exact questions companies are asking right now.

9.6k Questions 505 Companies08.05.2026
Showing 20 results
Role
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
PayPal logo
PayPal
Medium
Data Scientist

Write conditional aggregates with CASE WHEN

Write conditional aggregates with CASE WHEN Write a query that produces conditional aggregates using CASE WHEN (e.g., counts of approved vs declined t...

Data Manipulation (SQL/Python)
4
0
55 people solved
Jul 31, 2025
Fidelity logo
Fidelity
Medium
Software Engineer

Explain using MapReduce

Explain using MapReduce Using the MapReduce Programming Model to Process Large Datasets You are asked to explain how the MapReduce programming model p...

System Design
5
0
51 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
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
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
Salesforce logo
Salesforce
Medium
Software Engineer

Implement 64-bit modular exponentiation safely

Implement a function to compute (a^b) mod m where 0 ≤ a,b < 2^61−1 and 1 ≤ m < 2^61−1 using only 64-bit operations without overflow. Provide implement...

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

Find palindrome-forming string pairs

Given an array of distinct lowercase strings words, return all index pairs (i, j) with i != j such that the concatenation words[i] + words[j] is a pal...

Coding & Algorithms
12
0
87 people solved
Jul 31, 2025
Salesforce logo
Salesforce
Hard
Software Engineer

Compare cloud compute; design Kubernetes security and CI/CD

Compare cloud compute; design Kubernetes security and CI/CD Cloud Compute Models, Testing Strategies, Kubernetes Deep Dive, Security, and CI/CD to GKE...

System Design
2
0
50 people solved
Jul 31, 2025
HubSpot logo
HubSpot
Hard
Software Engineer

Design a weather aggregation system

Design a weather aggregation system System Design: Weather Data Aggregation (10-minute Updates) Context Build a service that periodically fetches weat...

System Design
6
0
92 people solved
Jul 31, 2025