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
Coinbase logo
Coinbase
Medium
Software Engineer

Recommend movies by shared ratings

Recommend movies by shared ratings Write a function recommendations(user, ratings) that returns a list of movies to recommend to the given user based ...

Coding & Algorithms
6
0
70 people solved
Aug 7, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Apply sliding window techniques

Apply sliding window techniques Explain the sliding window technique and apply it to solve: ( 1) Given an array of positive integers and a target S, r...

Coding & Algorithms
9
0
97 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Compute binary tree diameter

Compute binary tree diameter Given the root of a binary tree, compute the tree's diameter defined as the maximum number of edges on any path between t...

Coding & Algorithms
4
0
43 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Implement two array-cost minimization algorithms

Implement two array-cost minimization algorithms that appeared back-to-back in an AWS SDE online assessment. Each can be solved independently. Part 1 ...

Coding & Algorithms
4
0
35 people solved
Aug 7, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Count users over n connections

Count users over n connections Given a stream of relationship events in the form [[user_a, user_b, op], ...], where op ∈ {"connect", "disconnect"}, tr...

Coding & Algorithms
7
0
51 people solved
Aug 7, 2025
Coinbase logo
Coinbase
Hard
Software Engineer

Design image upload end-to-end

Design image upload end-to-end System Design: End-to-End Image Upload Pipeline Context Design an end-to-end system that handles user picture uploads f...

System Design
6
0
68 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Find power-of-two subarrays within sum range

Find power-of-two subarrays within sum range Given an integer array nums and an integer k, find all subarrays whose length is a power of two and whose...

Coding & Algorithms
3
0
29 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Sort a string by custom order

Sort a string by custom order Given a priority string P of distinct characters and a text string S, reorder S so that all characters appearing in P co...

Coding & Algorithms
3
0
39 people solved
Aug 7, 2025
Bridge logo
Bridge
Medium
Software Engineer

Design Minesweeper and Optimize Click Performance

Design a Minesweeper game. At game start, initialize an m×n board by randomly placing k bombs. Implement: ( 1) printBoard(): return a human-readable s...

Coding & Algorithms
8
0
66 people solved
Aug 7, 2025
Oracle logo
Oracle
Medium
Software Engineer

Minimize sum with halving operations

Minimize sum with halving operations You are given an array of non-negative integers nums and an integer k. In one operation, choose any index i and r...

Coding & Algorithms
4
0
46 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Find buildings with rightward view

Find buildings with rightward view You are given an array of building heights aligned along a street that faces the ocean to the right. Return the ind...

Coding & Algorithms
3
0
25 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Decide palindrome within k deletions

Decide palindrome within k deletions Given a string s and integer k, decide whether s can be transformed into a palindrome by deleting at most k chara...

Coding & Algorithms
1
0
22 people solved
Aug 7, 2025
PayPal logo
PayPal
Medium
Software Engineer

Describe std::string copy semantics

Describe std::string copy semantics In C++, what happens with std::string when you write: std::string a = "123"; std::string b = a; Describe which ope...

Coding & Algorithms
4
0
41 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute optimal locker placement with obstacles

Compute optimal locker placement with obstacles Given house coordinates H = {(xi, yi)} and tree coordinates T = {(xj, yj)} on a 2D integer grid, choos...

Coding & Algorithms
4
0
30 people solved
Aug 7, 2025
Chime logo
Chime
Medium
Software Engineer

Compute minimum time with task cooldowns

You are given a multiset of task types represented by uppercase letters (e.g., A, A, A, B, B, C). Each task takes exactly 1 time unit to execute. Runn...

Coding & Algorithms
33
0
282 people solved
Aug 7, 2025
Capital One logo
Capital One
Medium
Machine Learning Engineer

Solve matrix rotation and 1-D illumination

Question LeetCode 48. Rotate Image – rotate an n×n matrix 90° clockwise (extra space allowed). Find the point(s) with the maximum number of illuminate...

Coding & Algorithms
4
0
10 people solved
Aug 4, 2025
TikTok logo
TikTok
Medium
Software Engineer

Solve message splitting and board crushing

Question LeetCode 2468. Split Message Based on Limit – Given a message string and a per-line width, split it into parts adding the suffix "<i/n>" (e.g...

Coding & Algorithms
7
0
85 people solved
Aug 4, 2025
Applied Intuition logo
Applied Intuition
Medium
Software Engineer

Delete duplicate files via DFS

Question LeetCode 609. Find Duplicate File in System – Implement an algorithm (using DFS/backtracking) to delete files with duplicate content in a fil...

Coding & Algorithms
12
0
34 people solved
Aug 4, 2025
Jump Trading logo
Jump Trading
Medium
Machine Learning Engineer

Solve stock trading with pattern rules

Question Given an array of daily stock prices and two pattern arrays: sellPattern and buyPattern, each consisting of 1 (price up) and -1 (price down) ...

Coding & Algorithms
7
0
69 people solved
Aug 4, 2025
WeRide logo
WeRide
Medium
Software Engineer

Expand algebraic expression with distribution

Question Given an expression of lowercase letters, '+', '', and parentheses with no '+' outside any parentheses, return an equivalent expression conta...

Coding & Algorithms
4
0
45 people solved
Aug 4, 2025