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

Find best-matching binary pattern with wildcards

This question evaluates pattern-matching and string-algorithm skills, including handling wildcards and variable-length matches, priority-based rule se...

Coding & Algorithms
10
0
114 people solved
Jan 15, 2026
Stripe logo
Stripe
Hard
Software Engineer

Detect Trigger and Resolve Events

You are given transaction logs sorted by non-decreasing timestamp. Each log record has four fields: - timestamp: integer time in seconds - merchant_id...

Coding & Algorithms
4
0
55 people solved
Jan 15, 2026
Uber logo
Uber
Medium
Software Engineer

Count paths with prime-ending jumps

You are given an integer n representing the top of a staircase, where you start at step 0 and want to land exactly on step n. In one move, you may jum...

Coding & Algorithms
2
0
35 people solved
Jan 15, 2026
Amazon logo
Amazon
Hard
Software EngineerIntern

Count unique Morse-code word transformations

Given an array of lowercase strings words. Each letter 'a' to 'z' has a corresponding Morse code string (standard 26-letter mapping). A word’s transfo...

Coding & Algorithms
6
0
71 people solved
Jan 15, 2026
Stripe logo
Stripe
Hard
Software Engineer Locked

Generate Available 30-Minute Time Slots

This question evaluates date/time arithmetic, interval and recurrence handling, edge-case reasoning, and test-case design within scheduling logic for ...

Coding & Algorithms
4
0
64 people solved
Jan 14, 2026
DoorDash logo
DoorDash
Medium
Software Engineer

Select the best dasher for an order

You need to assign an order to a dasher. Input: - An order with a pickup location (x, y). - A list of dashers, each with: - id - current location ...

Coding & Algorithms
29
0
226 people solved
Jan 14, 2026
Uber logo
Uber
Medium
Data Scientist

Convert a PDF to a CDF

Given a continuous random variable X with probability density function f(x), write code or describe an algorithm to construct its cumulative distribut...

Coding & Algorithms
10
0
77 people solved
Jan 14, 2026
Optiver logo
Optiver
Medium
Software Engineer Locked

Design a circular queue data structure

This question evaluates understanding of circular buffer data structures and the ability to implement fixed-capacity queue operations with O(1) time a...

Coding & Algorithms
8
0
69 people solved
Jan 13, 2026
Sealth logo
Sealth
Medium
Software Engineer

Decode Ambiguous Morse Messages

You are given a mapping from Morse patterns to lowercase English letters. Implement two related functions: 1. Deterministic decoding with character an...

Coding & Algorithms
1
0
22 people solved
Jan 13, 2026
DoorDash logo
DoorDash
Medium
Software Engineer

Can two names match with ≤2 swaps?

You are given two restaurant names represented as strings s and t of equal length (same character set, case-sensitive). In one operation, you may swap...

Coding & Algorithms
5
0
94 people solved
Jan 13, 2026
J.P. Morgan logo
J.P. Morgan
Easy
Software Engineer

Count substrings and generate TOC

Solve the following two coding problems. 1. Count valid binary substrings Given a string s consisting only of '0' and '1', count how many substrings s...

Coding & Algorithms
3
0
29 people solved
Jan 13, 2026
Capital One logo
Capital One
Medium
Machine Learning Engineer Locked

Implement string/matrix simulations and counting pairs

This multi-part question evaluates implementation skills in string processing (case-insensitive substring matching), grid simulation with iterative ma...

Coding & Algorithms
8
0
73 people solved
Jan 12, 2026
Shopify logo
Shopify
Hard
Data Scientist

Calculate Pirated Usage and Revenue Loss

You are analyzing theme piracy on an e-commerce platform. Assume the analysis window is 2023-01-01 through 2023-12-31, all timestamps are stored in UT...

Data Manipulation (SQL/Python)
14
0
141 people solved
Jan 12, 2026
Pinterest logo
Pinterest
Medium
Data Scientist Locked

Implement Jackknife and Random Choice

This question evaluates understanding of statistical resampling (jackknife), probabilistic sampling algorithms including with- and without-replacement...

Coding & Algorithms
8
0
91 people solved
Jan 11, 2026
Google logo
Google
Medium
Software Engineer

Find top/bottom-k words in list or stream

You are given words (strings) either as a finite list or as an unbounded stream. 1) List version: Given an array words and an integer k, return: - the...

Coding & Algorithms
14
0
141 people solved
Jan 11, 2026
Bytedance logo
Bytedance
Hard
Data Scientist

Implement stack variants and upward path sum

Question Answer the following coding questions. They progress from augmented stacks to streaming statistics to tree path reasoning. 1. MinStack — Desi...

Coding & Algorithms
2
0
39 people solved
Jan 10, 2026
Citadel logo
Citadel
Medium
Software Engineer Locked

Design a token manager with lazy expiration

This question evaluates time-based data structure design and algorithmic reasoning for managing expiring items, focusing on hashing, timestamp orderin...

Coding & Algorithms
11
0
91 people solved
Jan 9, 2026
Bloomberg logo
Bloomberg
Easy
Software Engineer Locked

Compute meeting rooms and evaluate RPN

This multi-part question evaluates interval reasoning and resource-allocation skills for meeting room scheduling alongside stack-based expression eval...

Coding & Algorithms
9
0
85 people solved
Jan 9, 2026
DoorDash logo
DoorDash
Medium
Software Engineer

Calculate Courier Earnings

Design a function to calculate total courier pay from a set of delivery orders. Assume time is represented as integer minutes, and intervals are half-...

Coding & Algorithms
9
0
71 people solved
Jan 9, 2026
Oracle logo
Oracle
Medium
Data Scientist

Count Interior Islands After Flooding

You are given an m x n binary grid representing land and water. - 1 = land - 0 = water An island is a maximal group of land cells connected 4-directio...

Coding & Algorithms
2
0
28 people solved
Jan 9, 2026