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

Write PostgreSQL updates with date filters

Write PostgreSQL statements to: ( 1) update a flight's price and set updated_at correctly; ( 2) upsert a booking record with conflict handling; ( 3) s...

Data Manipulation (SQL/Python)
1
0
8 people solved
Jul 17, 2025
IXL Learning logo
IXL Learning
Medium
Software Engineer

Identify and prevent code-breaking inputs

Identify and prevent code-breaking inputs Identify inputs and scenarios that could break your implementation and explain how you would prevent them. C...

Coding & Algorithms
5
0
56 people solved
Jul 17, 2025
TikTok logo
TikTok
Medium
Software Engineer

Implement and compare key design patterns

Implement and compare key design patterns Implement Core GoF Patterns in Java and Discuss Trade-offs Context You are designing a small Java library an...

System Design
7
0
51 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
6
0
93 people solved
Jul 17, 2025
Citadel logo
Citadel
Medium
Software Engineer

Solve two DS&A optimization problems

Problem 1 — Maximize alternating-sum over four array partitions: Given an integer array arr[1..n] (1-based). Choose indices a, b, c with 1 ≤ a ≤ b ≤ c...

Coding & Algorithms
8
0
131 people solved
Jul 16, 2025
LinkedIn logo
LinkedIn
Medium
Machine Learning Engineer

Find shortest word transformation with caching

Find shortest word transformation with caching You are given a start word and an end word of equal length, and a dictionary of valid words. In one mov...

Coding & Algorithms
10
0
95 people solved
Jul 16, 2025
LinkedIn logo
LinkedIn
Medium
Machine Learning Engineer

Compute total covered interval length

Compute total covered interval length Given a list of integer intervals [l, r) (half-open), compute the total length covered by at least one interval....

Coding & Algorithms
13
0
107 people solved
Jul 16, 2025
Apple logo
Apple
Medium
Software Engineer

Maximize funds with capital-gated projects

Maximize funds with capital-gated projects You start with initial funds W and may undertake at most K projects. Each project i has a required capital ...

Coding & Algorithms
4
0
59 people solved
Jul 16, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Compute sum of longest positive subarray

Compute sum of longest positive subarray Given an integer array that may contain positive and negative numbers, find the sum of the longest contiguous...

Coding & Algorithms
6
0
47 people solved
Jul 16, 2025
Abnormal Security logo
Abnormal Security
Medium
Software Engineer

Design a duplicate-file removal algorithm

Design a duplicate-file removal algorithm Your filesystem contains millions of photos. Duplicates are strictly byte-identical files (no ML/CV similari...

Coding & Algorithms
10
0
119 people solved
Jul 16, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Discuss Airbnb motivations, hosting, feedback, community, challenges

Discuss Airbnb motivations, hosting, feedback, community, challenges Airbnb Software Engineer Onsite — Behavioral & Leadership You are interviewing fo...

Behavioral & Leadership
10
0
87 people solved
Jul 16, 2025
Morgan Stanley logo
Morgan Stanley
Medium
Software Engineer

Compute minimal cost to merge numbers

Compute minimal cost to merge numbers Given an array of positive integers, you may repeatedly perform the following operation until one number remains...

Coding & Algorithms
4
0
42 people solved
Jul 16, 2025
Uber logo
Uber
Medium
Software Engineer

Simulate robot on grid with obstacles

Simulate robot on grid with obstacles A robot starts at (0, 0) on an unbounded integer grid. You are given a sequence of commands consisting of charac...

Coding & Algorithms
7
0
80 people solved
Jul 15, 2025
Google logo
Google
Medium
Software Engineer

Decide string transform with directional tokens and walls

Decide string transform with directional tokens and walls You are given two equal-length strings start and target of length n, each consisting only of...

Coding & Algorithms
5
0
60 people solved
Jul 15, 2025
TikTok logo
TikTok
Medium
Software Engineer

Explain your background and career choices

Explain your background and career choices Behavioral Technical Screen: Resume Walkthrough and Career Narrative Context You will be asked to present a...

Behavioral & Leadership
3
0
36 people solved
Jul 15, 2025
Instacart logo
Instacart
Medium
Software Engineer

Implement a pivot table transformation

Given a dataset of transactions with columns: user_id (string), category (string), subcategory (string), amount (float), ts (ISO timestamp), implement...

Data Manipulation (SQL/Python)
0
0
10 people solved
Jul 15, 2025
SoFi logo
SoFi
Medium
Software Engineer

Design a key-value store with getLast

Design a key-value store with getLast Design and implement an in-memory key–value store with this API: add(key, value), get(key), remove(key), and get...

Coding & Algorithms
11
0
83 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Solve tree traversal and two-pointer problems

Solve tree traversal and two-pointer problems Implement the following independent problems: 1) Vertical columns: Given a binary tree, return lists of ...

Coding & Algorithms
3
0
40 people solved
Jul 15, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Discuss integrity vs efficiency trade-offs

Discuss integrity vs efficiency trade-offs Behavioral: Balancing Integrity vs Speed Under Pressure (Software Engineer Onsite) Context You’re asked to ...

Behavioral & Leadership
5
0
69 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Copy linked list with random pointers efficiently

Copy linked list with random pointers efficiently Given the head of a singly linked list where each node has next and random pointers, create a deep c...

Coding & Algorithms
1
0
31 people solved
Jul 15, 2025