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

Compute unique visitors by department

You have two tables: products(product_id, department, category, subcategory) where department > category > subcategory form a parent–child hierarchy, ...

Data Manipulation (SQL/Python)
0
0
8 people solved
Jul 26, 2025
Kneron logo
Kneron
Medium
Software Engineer

Count IoT devices matching date and threshold

Implement function numDevices(statusQuery, threshold, dateStr) that returns the number of IoT devices from a paginated REST API that were added in the...

Data Manipulation (SQL/Python)
0
0
8 people solved
Jul 26, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Create SQL report of top extensions by weekday

You are given a PostgreSQL table service_access_log with columns: method TEXT (HTTP verb), path TEXT (URL path that may include a filename and optiona...

Data Manipulation (SQL/Python)
0
0
4 people solved
Jul 26, 2025
Meta logo
Meta
Medium
Software Engineer

Remove adjacent duplicate groups repeatedly

Remove adjacent duplicate groups repeatedly Given a string s, repeatedly delete any maximal contiguous group of identical characters whose length is a...

Coding & Algorithms
3
0
37 people solved
Jul 26, 2025
Nash AI logo
Nash AI
Medium
Software Engineer

Design OOD for probabilistic Minesweeper

Design OOD for probabilistic Minesweeper Object-Oriented Design: Minesweeper with Per-Cell Mine Probabilities Context Design an object-oriented Minesw...

System Design
6
0
46 people solved
Jul 26, 2025
Citibank logo
Citibank
Medium
Data Scientist

Write SQL for rolling default rates

Write a SQL query to compute 12‑month rolling default rates by customer segment. Assume table loans(month DATE, segment TEXT, defaults INT, accounts I...

Data Manipulation (SQL/Python)
0
0
4 people solved
Jul 26, 2025
Snowflake logo
Snowflake
Medium
Software Engineer

Transform tree with subtree sum mapping

Transform tree with subtree sum mapping You are given the roots of two complete binary trees T1 and T2 that have identical structure (same shape and n...

Coding & Algorithms
7
0
59 people solved
Jul 26, 2025
C3 AI logo
C3 AI
Medium
Data Scientist

Decompress an encoded string

Decompress an encoded string Given an encoded string, return its decoded (decompressed) form. Use the following encoding rule: - A positive integer \(...

Coding & Algorithms
2
0
37 people solved
Jul 25, 2025
Optiver logo
Optiver
Medium
Software Engineer

Validate a Binary Tree Built from Directed Edges

Validate a Binary Tree Built from Directed Edges You are given a list of directed edges. Each edge is a pair (parent, child) of positive-integer node ...

Coding & Algorithms
0
0
5 people solved
Jul 23, 2025
Optiver logo
Optiver
Medium
Software Engineer

Count the Days Between Two Dates

Count the Days Between Two Dates You are given two calendar dates as strings in YYYY-MM-DD format. Return the number of days between them as a non-neg...

Coding & Algorithms
0
0
8 people solved
Jul 23, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

Maximum Group of Pairwise Strangers in an Acquaintance Tree

You are given a social network of n people, labeled 0 through n - 1. For some pairs of people, it is known that the two people in the pair know each o...

Coding & Algorithms
0
0
5 people solved
Jul 23, 2025
Two Sigma logo
Two Sigma
Hard
Software Engineer

Compute maximum currency exchange rate

Compute maximum currency exchange rate You are given a set of currencies and the direct exchange rates between some pairs of them. Each direct exchang...

Coding & Algorithms
17
0
147 people solved
Jul 20, 2025
Zillow logo
Zillow
Medium
Machine Learning Engineer

Find max min-plus-max over all subarrays

Find max min-plus-max over all subarrays You are given an array arr of n integers. A subarray is a contiguous non-empty segment of the array. For any ...

Coding & Algorithms
5
0
37 people solved
Jul 18, 2025
Circle logo
Circle
Medium
Software Engineer

Implement a simplified multi-level banking system

Implement a simplified multi-level banking system Implement a simplified banking system with multi-level requirements. All operations accept a stringi...

Coding & Algorithms
9
0
83 people solved
Jul 17, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Compute nearest dashmart and busiest assignments

Compute nearest dashmart and busiest assignments You are given an m x n grid of characters where 'D' marks a dashmart, 'X' marks an impassable cell, a...

Coding & Algorithms
7
0
75 people solved
Jul 17, 2025
Stripe logo
Stripe
Medium
Software Engineer

Implement tiered shipping calculator

Implement tiered shipping calculator Implement in JavaScript a shipping-cost calculator with three progressively richer pricing models based on a conf...

Coding & Algorithms
3
0
35 people solved
Jul 17, 2025
Applied Intuition logo
Applied Intuition
Medium
Software Engineer

Design event timeout detector

Design and implement an event-timeout detector for a job scheduler. Inputs: a global timeout T and a stream of events; each event has {event_id, type ...

Coding & Algorithms
8
0
115 people solved
Jul 17, 2025
Optiver logo
Optiver
Medium
Software Engineer

Identify OS component causing process starvation

A system with 2 CPU cores runs 5 identical processes continuously. Four processes get equal CPU time, but the fifth appears to get none. Which part of...

Coding & Algorithms
5
0
92 people solved
Jul 17, 2025
Amazon logo
Amazon
Medium
Machine Learning Engineer

Implement inventory allocation with backorders

Implement inventory allocation with backorders Design and implement a function to process an event stream for an e-commerce marketplace. Input: ( 1) i...

Coding & Algorithms
1
0
27 people solved
Jul 17, 2025
Optiver logo
Optiver
Medium
Software Engineer

Solve three mini-game algorithm tasks

Solve three mini-game algorithm tasks Solve three mini-game algorithm tasks: (a) Move-House Puzzle: Given initial and target arrangements of N labeled...

Coding & Algorithms
12
0
86 people solved
Jul 17, 2025