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 486 Companies08.11.2026
Showing 20 results
Role
Amazon logo
Amazon
Medium
Software Engineer

Determine reachability and optimize task scheduling

Question LeetCode 780. Reaching Points: Given four integers a, b, c, d (1 <= a, b, c, d <= 1000). Starting from (a, b) you may repeatedly apply either...

Coding & Algorithms
2
0
38 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Find minimal rate k and subset sum

Question LeetCode 875. Koko Eating Bananas — Given vault sizes [3, 6, 7, 11] and time h = 8 hours, find the minimum integer rate k (vault units per ho...

Coding & Algorithms
50
0
359 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Solve UTF-8 Validation & Shortest Path

Question LeetCode 393. UTF-8 Validation LeetCode 1091. Shortest Path in Binary Matrix https://leetcode.com/problems/utf-8-validation/description/ http...

Coding & Algorithms
2
0
37 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find longest segment with dominant ends

Question Given an integer array nums, find and return the length of the longest contiguous subarray such that the first and last elements of the subar...

Coding & Algorithms
3
0
29 people solved
Aug 4, 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
11 people solved
Aug 4, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Discuss large language models

Discuss large language models LLMs: Advances, Product Integration, Production Challenges, and Risk Mitigation Context You are interviewing for a Softw...

Machine Learning
3
0
58 people solved
Aug 4, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Describe background and motivations

Describe background and motivations Behavioral Interview Prompts — Technical/Phone Screen (Software Engineer) Context You are preparing for a technica...

Behavioral & Leadership
8
0
58 people solved
Aug 4, 2025
Stripe logo
Stripe
Medium
Software Engineer

Implement Card Validation and Recovery System

Question Design and implement a payment-card validation system supporting: Basic VISA validation (16-digit numbers starting with 4) using the Luhn che...

Coding & Algorithms
2
0
21 people solved
Aug 4, 2025
Squarepoint Capital logo
Squarepoint Capital
Medium
Data Scientist

Compute drawdown, profit, and coin change

Question What is the maximum drawdown of a cumulative PnL (profit and loss) series, and when did it occur? Implement a function mdd(pnl) that returns ...

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

Implement bank balance operations

Question Design and implement a Bank account class that supports the operations Deposit(amount), Withdraw(amount), and CashBack(percent). Ensure balan...

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

Solve weighted pick and product except self

Question LeetCode 528. Random Pick with Weight LeetCode 238. Product of Array Except Self https://leetcode.com/problems/random-pick-with-weight/descri...

Coding & Algorithms
5
0
36 people solved
Aug 4, 2025
Netflix logo
Netflix
Medium
Software Engineer

Solve non-repeating show substring

Question LeetCode 3. Longest Substring Without Repeating Characters – variant where the elements are show names instead of numbers. https://leetcode.c...

Coding & Algorithms
12
0
194 people solved
Aug 4, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Maximize path score in DAG

Question Given a weighted directed acyclic graph (DAG) where each node v has a score w(v) and each edge (u→v) has a time cost t(u,v), starting from no...

Coding & Algorithms
18
0
226 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Implement paginated, sortable dynamic table component

Implement paginated, sortable dynamic table component React Table Component: Pagination, Sorting, Dynamic Columns Context You are building a reusable ...

System Design
2
0
46 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Implement rate limiter, top-K, scheduler algorithms

Question Design and implement a thread-safe Rate Limiter; extend it to support multi-threading and a version where current time is not passed as an ar...

Coding & Algorithms
6
0
64 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Software Engineer

Count partitions and equal-cost packages

Question Given a string itemCategories, count the number of ways to partition it into exactly two contiguous non-empty substrings (a prefix and a suff...

Coding & Algorithms
8
0
59 people solved
Aug 4, 2025
DRW logo
DRW
Medium
Machine Learning Engineer

Implement portfolio optimization simulation

Question Given price-return time series in a DataFrame, simulate random portfolio weights, compute expected return, volatility, Sharpe ratio, and retu...

Coding & Algorithms
3
0
42 people solved
Aug 4, 2025
Fidelity logo
Fidelity
Medium
Software Engineer

Review tech stack and best practices

Review tech stack and best practices Take-home Technical Questionnaire (System Design & Engineering) Context As part of a take-home technical screen f...

System Design
26
0
52 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Software Engineer

Solve sliding-window and heap problems

Question Design an algorithm using a sliding window to compute the maximum sum of any contiguous subarray of length k; explain time- and space-complex...

Coding & Algorithms
28
0
101 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find concatenated words in list

Question LeetCode 472. Concatenated Words – Given an array of strings words, return all words that are concatenations of at least two shorter words al...

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