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
MathWorks logo
MathWorks
Medium
Software EngineerIntern Locked

Maximize minimum value after k decrements

This question evaluates array-based optimization skills, resource-allocation reasoning under a fixed decrement budget, and algorithmic complexity anal...

Coding & Algorithms
1
0
31 people solved
Jan 22, 2026
Salesforce logo
Salesforce
Medium
Software Engineer Locked

Flatten a nested JSON object

This question evaluates the ability to traverse and manipulate nested JSON-like structures, emphasizing concepts such as recursion or iterative traver...

Coding & Algorithms
16
0
118 people solved
Jan 22, 2026
Dropbox logo
Dropbox
Medium
Software Engineer Locked

Return all files under a path

This question evaluates filesystem traversal and recursive/iterative algorithm skills, including handling different path types, edge cases such as mis...

Coding & Algorithms
6
0
115 people solved
Jan 22, 2026
Google logo
Google
Hard
Software Engineer Locked

Compute minimax grid path and network delay

This question evaluates algorithmic problem-solving in shortest-path and path-optimization contexts, specifically minimax pathfinding on a grid and si...

Coding & Algorithms
20
0
235 people solved
Jan 22, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Find when failures started in log stream

This question evaluates understanding of monotonic sequences and search algorithms (such as binary search), along with algorithmic reasoning about cor...

Coding & Algorithms
4
0
88 people solved
Jan 22, 2026
Stripe logo
Stripe
Medium
Software Engineer Locked

Compute balances with transaction fees and rejections

This question evaluates transaction processing, ledger state management, handling of edge cases like insufficient funds and fixed fees, and efficient ...

Coding & Algorithms
8
0
61 people solved
Jan 22, 2026
Amazon logo
Amazon
Hard
Software EngineerSenior+ Locked

Implement array and tree traversal tasks

This question evaluates algorithmic problem-solving and data-structure competency, specifically array-based optimization for single-trade profit and t...

Coding & Algorithms
6
0
80 people solved
Jan 22, 2026
Applied logo
Applied
Medium
Software Engineer Locked

Merge collinear overlapping 2D segments

This question evaluates computational geometry skills, numerical robustness, and algorithmic implementation for merging collinear, overlapping 2D segm...

Coding & Algorithms
1
0
32 people solved
Jan 22, 2026
TikTok logo
TikTok
Medium
Machine Learning Engineer Locked

Find length of longest common subsequence

This question evaluates understanding of dynamic programming, string algorithms, and algorithmic problem-solving skills related to sequence comparison...

Coding & Algorithms
5
0
45 people solved
Jan 22, 2026
Crowdstrike logo
Crowdstrike
Medium
Software Engineer Locked

Count connected components in a binary grid

This question evaluates understanding of graph traversal and connected-components detection on a 2D grid, measuring the ability to model grid cells as...

Coding & Algorithms
6
0
61 people solved
Jan 22, 2026
Airtable logo
Airtable
Medium
Software Engineer Locked

Implement undo/redo with two stacks

This question evaluates a candidate's ability to design and implement efficient mutable state management and history tracking using data structures (s...

Coding & Algorithms
13
0
241 people solved
Jan 22, 2026
Cloudflare logo
Cloudflare
Medium
Software Engineer Locked

Implement a rule-based rate limiter

This question evaluates a developer's ability to implement real-time rule-based rate limiting, covering rule matching, time-windowed quota enforcement...

Coding & Algorithms
5
0
72 people solved
Jan 22, 2026
Robinhood logo
Robinhood
Medium
Software Engineer Locked

Compute nearest gate distance in grid

This question evaluates grid traversal, distance propagation, obstacle handling, and in-place matrix update competencies within the Coding & Algorithm...

Coding & Algorithms
13
0
141 people solved
Jan 22, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve matrix groups and recipe inventory

This pair of problems evaluates block-wise grid processing and aggregation for minimum-value selection alongside dependency-resolution and resource-al...

Coding & Algorithms
25
0
215 people solved
Jan 22, 2026
Medium
Software Engineer Locked

Compute total after discounting most expensive item

This question evaluates array manipulation and numeric computation skills—specifically identifying the maximum element, applying a percentage discount...

Coding & Algorithms
5
0
54 people solved
Jan 21, 2026
SoFi logo
SoFi
Hard
Software Engineer

Implement chance of a personal best

You are given a simplified model for tracking race times on an obstacle course. - A course has a fixed number of obstacles. - A run records the time s...

Coding & Algorithms
18
0
149 people solved
Jan 21, 2026
Upstart logo
Upstart
Medium
Software Engineer

Solve remembered OA coding tasks

The online assessment reportedly had five coding questions, but only the following three were described clearly enough to reconstruct: 1. Find the top...

Coding & Algorithms
10
0
160 people solved
Jan 20, 2026
Capital One logo
Capital One
Medium
Machine Learning Engineer Locked

Count ordered fragment pairs forming a password

This question evaluates proficiency with string manipulation, handling duplicate fragments, and combinatorial reasoning about ordered index pairs that...

Coding & Algorithms
10
0
69 people solved
Jan 20, 2026
Capital One logo
Capital One
Medium
Machine Learning Engineer Locked

Simulate round-robin package assignment to servers

This question evaluates array-based simulation and control-flow skills for load distribution, including pointer management, modular wrap-around scanni...

Coding & Algorithms
7
0
58 people solved
Jan 20, 2026
Others logo
Others
Medium
Software Engineer Locked

Write a quarterly SQL report and a bash max-file script

This question evaluates proficiency in SQL conditional aggregation and date-based grouping alongside shell scripting skills for recursive filesystem t...

Software Engineering Fundamentals
1
0
36 people solved
Jan 20, 2026