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
Software Engineer

Solve LeetCode array & stream problems

Question LeetCode 346. Moving Average from Data Stream LeetCode 249. Group Shifted Strings LeetCode 163. Missing Ranges Remove duplicates from a chara...

Coding & Algorithms
19
0
60 people solved
Jul 29, 2025
PayPal logo
PayPal
Medium
Software Engineer

Discuss Project Motivation and Career Goals

Discuss Project Motivation and Career Goals Behavioral Phone Screen Prompts — Software Engineer (PayPal) Context: You are in a technical phone screen ...

Behavioral & Leadership
7
0
52 people solved
Jul 29, 2025
Google logo
Google
Medium
Software Engineer

Parse strings and find meeting slots

Question Given a text file where each line contains raw information, extract the user identifier and the numeric quantity on that line and store the r...

Coding & Algorithms
31
0
61 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find most frequent log user

Question You are given a list of log entries in string format, where each entry contains a username and an access timestamp separated by a delimiter (...

Coding & Algorithms
24
0
49 people solved
Jul 29, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Determine blockage and parse HTML tokens

Question Given a set of 2-D circular stones, determine whether they can completely block the width of a river. You may define the input format. Given ...

Coding & Algorithms
19
0
52 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute minimum passes to collect numbers

Question You are given an array shelf of n distinct integers that is a permutation of 1…n. Starting with target = 1, you repeatedly scan shelf from le...

Coding & Algorithms
76
0
200 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve 4 LeetCode algorithm problems

Question LeetCode 636. Exclusive Time of Functions LeetCode 253. Meeting Rooms II LeetCode 314. Binary Tree Vertical Order Traversal LeetCode 215. Kth...

Coding & Algorithms
1
0
7 people solved
Jul 29, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Allocate refund across payments

Question Given a list of completed payment transactions (each with payment method, date, and amount) and a refund amount R, write an algorithm that is...

Coding & Algorithms
78
0
257 people solved
Jul 29, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Review Python geodata code

Question You are given a Python codebase that performs geolocation data processing. Conduct a thorough code review: identify readability, correctness,...

Coding & Algorithms
8
0
29 people solved
Jul 29, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Determine equality after limited swaps

Question LeetCode 1790. Check if One String Swap Can Make Strings Equal Follow-up: Given two strings, determine if they can become anagrams of each ot...

Coding & Algorithms
10
0
5 people solved
Jul 29, 2025
SoFi logo
SoFi
Medium
Software Engineer

Implement tree ops and LRU cache

Question Implement set(index) and clear(index) for the leaves of a full binary tree initially filled with 0s, where a parent node becomes 1 only when ...

Coding & Algorithms
19
0
48 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Compute product of array except self

Given an integer array nums, return an array out where out[i] equals the product of all elements in nums except nums[i]. Do it in O(n) time using cons...

Coding & Algorithms
2
0
22 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Format messages with paginated suffixes

You are given a message string s and an integer width w. Split s into multiple chunks, preserving character order, and append a suffix "i/n" to each c...

Coding & Algorithms
5
0
39 people solved
Jul 29, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Reconstruct tree from inorder and postorder

Given two arrays representing the inorder and postorder traversals of a binary tree with unique values, reconstruct the original binary tree and retur...

Coding & Algorithms
7
0
56 people solved
Jul 29, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Implement bank account with cashback

Implement a bank account processor. Given an initial non-negative integer balance B and a list of operations (n up to 1e 5), apply each operation in o...

Coding & Algorithms
3
0
56 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Implement a match-3 board resolver

Question Implement a match-3 board resolver (the core loop of a "candy crush"-style game). You are given an m×n grid of cells. Each cell holds a value...

Coding & Algorithms
3
0
41 people solved
Jul 29, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Deduplicate a Linked List

Given a singly linked list, remove duplicate values in-place. Variant A (sorted list): delete repeated nodes so each value appears once using O( 1) ex...

Coding & Algorithms
3
0
40 people solved
Jul 28, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Find max distance between alive tree nodes

Find max distance between alive tree nodes Given a binary tree, define alive nodes. Base case: alive nodes are the leaves. Find the maximum distance (...

Coding & Algorithms
7
0
57 people solved
Jul 28, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Detect runs and answer suffix queries

Given an array of comparable elements a[0..m-1] and an integer N: 1) Write a function that returns the maximum length of any run of consecutive equal ...

Coding & Algorithms
18
0
250 people solved
Jul 28, 2025
Meta logo
Meta
Medium
Data Scientist

Find posts with >60s unconnected viewing time

Context You work on a social app where users can view posts. A view can be from a connected user (viewer is friends/connected with the post author) or...

Data Manipulation (SQL/Python)
3
1
58 people solved
Jul 28, 2025