Tech Interview Questions

Practice 9,160+ 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.2k Questions 486 Companies08.11.2026
Showing 20 results
Role
Meta logo
Meta
Medium
Software Engineer

Compute top-N outgoing spenders

Add a feature to report the top N accounts by total outgoing payments across both immediate pays and scheduled payments. Implement: List<String> topNS...

Coding & Algorithms
3
0
24 people solved
Sep 6, 2025
MathWorks logo
MathWorks
Medium
Software Engineer

Maximize operations by removing target-sum pairs

Given an integer array nums and an integer T, in one operation you may remove two elements whose sum equals T. Return the maximum number of operations...

Coding & Algorithms
3
0
26 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Implement a robust shell CLI

Implement a POSIX-compliant shell script invoked as ./script.sh <username> <path_of_file> that outputs a single line formatted as "<timestamp> <licens...

Coding & Algorithms
4
0
44 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Check path in N-ary tree

Given the root of an N-ary tree and a sequence of integers path[0..k-1], determine whether there exists a path starting at the root whose node values ...

Coding & Algorithms
2
0
50 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Machine Learning Engineer

Explain XGBoost depth, regularization, and dropout

ML Conceptual Questions (Onsite) Answer the following: (a) Gradient-boosted decision trees: How does maximum tree depth affect bias/variance, overfitt...

Machine Learning
8
0
120 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Compute longest increasing subsequence

Longest Increasing Subsequence: length, reconstruction, and counting Given an integer array nums, do all of the following: 1. Length. Compute the leng...

Coding & Algorithms
3
0
41 people solved
Sep 6, 2025
Snowflake logo
Snowflake
Medium
Software Engineer

Discuss challenges and cross-functional collaboration

Question Tell me about your most challenging project. Walk me through it end to end and be ready to go deep on the technical and the organizational si...

Behavioral & Leadership
7
0
109 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Determine equality of arbitrarily nested sets

Implement a function that determines whether two arbitrarily nested sets are equal. Sets are unordered and contain no duplicates; elements can be inte...

Coding & Algorithms
15
0
139 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Determine max remainders and anagram after deletions

Part 1 (Array Remainders): Given an integer array A of length n with A[i] > 0. You may choose any integer array B of length n. Define C[i] = B[i] mod ...

Coding & Algorithms
5
0
37 people solved
Sep 6, 2025
Apple logo
Apple
Hard
Software Engineer

Design video platform and catalog system

System Design: Two Independent Systems You are asked to design two large-scale systems. For each system, provide: - Scope and key requirements - Exter...

System Design
9
0
121 people solved
Sep 6, 2025
Apple logo
Apple
Medium
Software Engineer

Implement rotation, LRU cache, streaming median, cycle detection

Complete the following coding tasks. For each, provide code, justify time/space complexity, and describe edge cases: 1) Image rotation: Given an n×n i...

Coding & Algorithms
11
0
121 people solved
Sep 6, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Solve string dictionary and tree ordering

Part A — One-edit dictionary: Build a data structure supporting build(words: List[str]) and search(query: str) -> bool that returns true if and only i...

Coding & Algorithms
7
0
74 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Implement encoding validation and grid shortest path

Part A — Byte-encoding validation: You are given an array of integers in [0, 255] representing bytes. Determine whether the sequence encodes valid cha...

Coding & Algorithms
3
0
36 people solved
Sep 6, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Cluster city name variants into canonical entities

Normalize City Names for Vote Aggregation Context You have voting records containing a free-text city field. The same city may appear in many forms (e...

Machine Learning
7
0
56 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Describe a tough trade-off decision

Behavioral: Tough Trade-off Under Time Pressure (Software Engineer, Technical Screen) You will be asked to describe a specific instance where you made...

Behavioral & Leadership
12
0
87 people solved
Sep 6, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Generate split-stay pairs efficiently

Given N Airbnb listings, each with available days as integers, and an inclusive requested date range [L, R], return all ordered pairs (X, Y) of distin...

Coding & Algorithms
22
0
222 people solved
Sep 6, 2025
Stripe logo
Stripe
Medium
Software Engineer

Generate user notifications from schedules

Given a schedule template format and user profile data (timezone, locale, delivery preferences), implement a program that generates a user notificatio...

Data Manipulation (SQL/Python)
0
0
9 people solved
Sep 6, 2025
Uber logo
Uber
Hard
Software Engineer Locked

Maximize Minimum Scaled Value

This question evaluates algorithmic optimization and resource-allocation skills, focusing on integer scaling under a global budget to maximize the min...

Coding & Algorithms
2
0
41 people solved
Jan 16, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Track Customer Referral Revenue

This question evaluates understanding of dynamic data structure design and algorithms for maintaining aggregated metrics over a referral tree, specifi...

Coding & Algorithms
5
0
43 people solved
Jan 16, 2026
Snowflake logo
Snowflake
Hard
Software Engineer

Compute height of tree with deleted nodes; minimize deletions

You are given a rooted tree (not necessarily binary). Each node has a list of children. Some nodes are marked as deleted = true. Define the effective ...

Coding & Algorithms
7
0
128 people solved
Jan 16, 2026