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

Implement string-based big integer multiplication

Question Implement multiplyStrings(a, b) to multiply two non-negative integers given as decimal strings and return their product as a decimal string. ...

Coding & Algorithms
14
0
104 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
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
Meta logo
Meta
Medium
Software Engineer

Solve parsing, counting, ranges, and window problems

Solve the following four algorithm problems: 1) Expression evaluator with + and : Given a string s containing non-negative integers, '+' and '' operat...

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

Compute shortest path between tree nodes

Question You are given the root of a binary tree (not necessarily a BST) whose nodes have integer values, and two target values u and v. Implement a f...

Coding & Algorithms
4
0
79 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Reverse sublist between equal-value nodes

Given the head of a singly linked list and a target value v that appears at least twice, reverse the sublist starting at the first node with value v a...

Coding & Algorithms
4
0
39 people solved
Sep 6, 2025
Meta logo
Meta
Hard
Software Engineer

Handle invalid input at system level

Design: Validation and Error Handling for a Top-K Frequency API Context You are designing a REST endpoint that computes the top-K most frequent values...

System Design
1
0
33 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Count subarrays summing to target

Given an integer array nums and an integer target T, return the number of contiguous subarrays whose sum equals T. Provide an algorithm that runs in l...

Coding & Algorithms
3
0
33 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Design adjustable ID allocator

Question You manage a fixed global integer ID space [0, 999] (1000 IDs total) and a set of named buckets. Each bucket has a unique name and occupies a...

Coding & Algorithms
14
0
141 people solved
Sep 6, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement compile-time function type verification

Implement a C++20 compile-time utility to verify whether a callable matches a target function type. Requirements: create a primary template is_callabl...

Coding & Algorithms
11
0
212 people solved
Sep 6, 2025