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
Apple logo
Apple
Hard
Software Engineer Locked

Implement a lazy inorder traversal iterator

This question evaluates understanding of binary tree traversal and iterator design, specifically the implementation of a lazy inorder iterator under t...

Coding & Algorithms
7
0
74 people solved
Feb 11, 2026
Google logo
Google
Medium
Software Engineer

Validate parent array forms a tree

Problem You are given an integer array parent of length n describing a directed parent pointer for each node i (nodes are labeled 0..n-1). - parent[i]...

Coding & Algorithms
13
1
160 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Software Engineer

Extend cloud file system with copy and compression

In-Memory Cloud File System V2: Copy, Capacity Updates, Compress/Decompress Design an in-memory file system with per-user quotas and additional operat...

Coding & Algorithms
9
0
71 people solved
Feb 11, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

Check perfect square using binary search

Perfect Square Check (Binary Search) Given a positive integer n, determine whether it is a perfect square (i.e., there exists an integer x such that x...

Coding & Algorithms
10
2
145 people solved
Feb 11, 2026
Citadel logo
Citadel
Easy
Software Engineer Locked

Implement LRU/LFU cache with custom eviction

This question evaluates proficiency in cache design and data-structure implementation, focusing on eviction policies (LRU, LFU), metadata tracking for...

Coding & Algorithms
24
0
238 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Solve three array/string/graph coding tasks

This set of three coding tasks evaluates proficiency in fundamental data structures and algorithms, covering multi-way array merging, custom character...

Coding & Algorithms
4
0
59 people solved
Feb 11, 2026
Ge logo
Ge
Medium
Software Engineer

Count visible people to the right

Problem You are given an array heights of length n, where heights[i] is the height of the i-th person standing in a line from left to right. For each ...

Coding & Algorithms
3
0
25 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Maximize concatenation length with unique chars

This question evaluates understanding of string manipulation, set-based uniqueness constraints, and combinatorial subset selection for maximizing conc...

Coding & Algorithms
3
0
47 people solved
Feb 11, 2026
Uber logo
Uber
Medium
Software Engineer

Find minimum reversals to orient edges away from root

You are given a connected graph with n nodes labeled 0..n-1 and n-1 directed edges. If you ignore edge directions, the edges form a tree. Each directe...

Coding & Algorithms
34
0
249 people solved
Feb 11, 2026
Apple logo
Apple
Hard
Software Engineer Locked

Count subarrays with sum equals k

This question evaluates a candidate's competency in array algorithms and reasoning about contiguous subarray sums, including correct handling of negat...

Coding & Algorithms
23
0
171 people solved
Feb 11, 2026
TikTok logo
TikTok
Medium
Software Engineer

Delete nodes in linked list and binary tree

You are asked to solve two short coding tasks. You may assume standard node definitions: - Singly linked list node: val, next - Binary tree node: val,...

Coding & Algorithms
3
0
69 people solved
Feb 11, 2026
Microsoft logo
Microsoft
Medium
Machine Learning Engineer Locked

Implement a resumable data loader

This question evaluates a candidate's ability to design stateful, resumable data iteration with deterministic shuffling and compact serializable check...

Coding & Algorithms
5
0
56 people solved
Feb 11, 2026
Stripe logo
Stripe
Medium
Software Engineer Locked

How to find the cheapest flight within K stops

This question evaluates understanding of graph algorithms and constrained shortest-path modeling, focusing on reasoning about weighted directed edges,...

Coding & Algorithms
8
0
76 people solved
Feb 11, 2026
Revolut logo
Revolut
Medium
Software EngineerNew Grad

Implement a random fixed-size load balancer

Problem: Build a simple load balancer Implement a minimal in-memory load balancer that routes each incoming request to one backend node chosen uniform...

Coding & Algorithms
24
0
193 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ Locked

Design a Top-K trending items service

This question evaluates competency in large-scale system design, real-time streaming ingestion, distributed aggregation, and trade-offs between exact ...

System Design
8
0
95 people solved
Feb 11, 2026
Uber logo
Uber
Medium
Software Engineer

Solve these algorithmic problems

You are given the following independent coding tasks. For each task, design an algorithm and implement a function that returns the requested output. -...

Coding & Algorithms
57
1
456 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Software Engineer

Design a bank system with scheduled transfers

Bank System (OOD): Accounts, Transfers, Scheduling, Top Spending, Merge Design an in-memory banking system that supports: - account creation - deposit...

Coding & Algorithms
2
0
41 people solved
Feb 11, 2026
Uber logo
Uber
Medium
Software Engineer

Compute final prices with next smaller discount

You are given an integer array prices of length n, where prices[i] is the original price of the i-th item. For each item i, find the first index j > i...

Coding & Algorithms
6
0
83 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Extend a BFS maze solver stepwise

This question evaluates proficiency in grid-based graph traversal and pathfinding, covering BFS mechanics, stateful reachability with keys and doors, ...

Coding & Algorithms
7
0
51 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Design a live video comments system

This question evaluates skills in designing scalable, low-latency real-time systems, covering fan-out delivery, ordering and consistency semantics, du...

System Design
8
0
63 people solved
Feb 11, 2026