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

Implement pagination and a time-versioned key-value store

Implement two coding tasks: 1) Transaction pagination: Given an in-memory collection of transaction records with fields (txn_id: string, user_id: stri...

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

Optimize flight costs and find grid path

1) Given two integer arrays D and R of equal length n, where D[i] is the cost to depart on day i and R[j] is the cost to return on day j, choose indic...

Coding & Algorithms
4
0
31 people solved
Sep 6, 2025
Databricks logo
Databricks
Medium
Software Engineer

Design IP/CIDR rule matcher

Design and implement a rule matcher that returns 'accept' or 'deny' for a given IPv4 address based on a set of rules. Each rule can be either an inclu...

Coding & Algorithms
26
0
252 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Find earliest common meeting slot

Question Given the calendars of N attendees, find the earliest time window of length at least d minutes during which all attendees are simultaneously ...

Coding & Algorithms
11
0
82 people solved
Sep 6, 2025
Cerebras logo
Cerebras
Medium
Software Engineer

Implement Binary Search in C++

From scratch in C++, implement binary search over a sorted array to locate a target value. Provide a correct iterative implementation, handle not-foun...

Coding & Algorithms
7
0
73 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Solve vault rate and subset-sum

1) Robber vaults rate: You are given an array vaults of positive integers where vaults[i] is the amount in the i-th vault, and an integer h (hours). I...

Coding & Algorithms
7
0
65 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Design faster delay-time computation

You are given an array of integers representing task priorities. Tasks execute from right to left. For each index i, define its delay time as j - i wh...

Coding & Algorithms
2
0
34 people solved
Sep 6, 2025
Snowflake logo
Snowflake
Medium
Software Engineer

Find longest substring with at most k distinct

Given a string s and an integer k, return the length of the longest contiguous substring that contains at most k distinct characters. Provide an O(n) ...

Coding & Algorithms
5
0
115 people solved
Sep 6, 2025
Stripe logo
Stripe
Medium
Software Engineer

Compute currency conversions with graph algorithms

Question You are given a set of pairwise currency exchange relations such as A:B = 1:1.5 and B:C = 1:1.5, meaning 1 A = 1.5 B and 1 B = 1.5 C. Design ...

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

Check balanced parentheses with multiple bracket types

Given a string containing only parentheses '()', determine whether it is balanced. Follow-up: extend the solution to also support '[]' and '{}' with c...

Coding & Algorithms
11
0
85 people solved
Sep 6, 2025
UiPath logo
UiPath
Medium
Machine Learning Engineer

Implement cocktail shaker sort and analyze

Implement the cocktail shaker sort (bidirectional bubble sort) for an array of integers. Optimize it with early termination and shrinking bounds, and ...

Coding & Algorithms
4
0
34 people solved
Sep 6, 2025
DoorDash logo
DoorDash
Hard
Software Engineer

Explain conflict resolution and growth

Behavioral & Leadership: Conflict, Mistake, and Project Deep Dive To assess collaboration, ownership, and technical leadership, answer the following t...

Behavioral & Leadership
4
0
80 people solved
Sep 6, 2025
Instacart logo
Instacart
Medium
Software Engineer

Solve expression evaluator and string decoder

1) Implement an arithmetic expression evaluator that reads expressions from a text file (one expression per line) and outputs the evaluated result for...

Coding & Algorithms
28
0
216 people solved
Sep 6, 2025
Microsoft logo
Microsoft
Hard
Software Engineer

Navigate bias, sponsorship, and domain misalignment

Behavioral & Leadership Onsite: Expertise Gaps, Fairness, Sponsorship, and AI Pivot Context You are interviewing for a Software Engineer role. Provide...

Behavioral & Leadership
3
0
73 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
49 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Machine Learning Engineer

Design room progression with leaderboard

Design a data structure to simulate a sequence of rooms where players solve tasks and can move only to the next room once finished. Support the follow...

Coding & Algorithms
14
0
117 people solved
Sep 6, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Explain database transactions and ACID

Database Transactions and ACID under Concurrency Prompt You are working with a relational database that supports transactions and multiple isolation l...

System Design
11
0
83 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Determine frog reachability across stones

You are given a sorted array of distinct integers stones representing stone positions in a river, where stones[0] = 0. A frog starts on stone 0; its f...

Coding & Algorithms
3
0
28 people solved
Sep 6, 2025
Speak logo
Speak
Medium
Software Engineer

Discuss product sense and team fit

Product Sense and Team Fit: Language-Learning App (Software Engineer) You are interviewing onsite for a Software Engineer role at an early-stage langu...

Behavioral & Leadership
2
0
33 people solved
Sep 6, 2025
Snapchat logo
Snapchat
Hard
Software Engineer

Design product co-occurrence analytics API

Design RESTful APIs for Co‑Purchase Analytics Context You are designing backend APIs to power a "related products" module based on co‑purchase behavio...

System Design
4
0
66 people solved
Sep 6, 2025