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

Implement a Parallel Image Processor

This question evaluates understanding of parallel and process-based concurrency, batch image-processing pipelines, transform correctness, and per-job ...

Coding & Algorithms
31
0
330 people solved
Apr 3, 2026
Databricks logo
Databricks
Medium
Software Engineer Locked

Solve Grid Path and Graph Sampling

This question evaluates graph algorithms and probabilistic/combinatorial reasoning, covering multi-criteria shortest-path optimization (minimizing tra...

Coding & Algorithms
4
0
41 people solved
Apr 3, 2026
Circle logo
Circle
Hard
Software Engineer

Implement Recipe Storage CRUD

Implement an in-memory RecipeStore that supports CRUD operations for recipes. Each recipe contains: - id: a string identifier in the form recipe<n> - ...

Coding & Algorithms
8
0
82 people solved
Apr 2, 2026
Lyft logo
Lyft
Medium
Software EngineerSenior+

Solve substring and worker assignment

The interview included two algorithm problems: 1. Shortest covering substring: Given two strings s and t, return the shortest contiguous substring of ...

Coding & Algorithms
3
0
35 people solved
Apr 2, 2026
Asana logo
Asana
Medium
Software Engineer

Compute Products Excluding Each Index

You are given an integer array nums of length n. Return an array answer such that answer[i] equals the product of every element of nums except nums[i]...

Coding & Algorithms
1
0
11 people solved
Apr 2, 2026
LinkedIn logo
LinkedIn
Medium
Software EngineerSenior+

Design a Randomized Multiset

Implement a data structure for integers that allows duplicate values and supports the following operations in expected O(1) time: - insert(val): Add o...

Coding & Algorithms
3
0
43 people solved
Apr 2, 2026
Verkada logo
Verkada
Medium
Software Engineer

Merge Sorted Arrays In Place

You are given two non-decreasing integer arrays. - A has length m + n. - The first m elements of A are valid sorted numbers. - The last n elements of ...

Coding & Algorithms
12
0
111 people solved
Apr 2, 2026
OpenAI logo
OpenAI
Hard
Machine Learning Engineer

Simulate Plant Infection With Controlled Burning

You are given an R by C grid of plants. Each plant is initially healthy, infected, recovered, or dead. A plant has up to four orthogonal neighbors. De...

Coding & Algorithms
2
0
9 people solved
Apr 2, 2026
Intuit logo
Intuit
Easy
Software Engineer

Validate bracket sequence

Given a string s containing only the characters (, ), [, ], {, and }, determine whether the brackets are properly matched. A string is valid if: - Eve...

Coding & Algorithms
6
0
44 people solved
Apr 2, 2026
Uber logo
Uber
Hard
Software Engineer

Solve Knight and Reversal Problems

The online assessment contained two coding problems: 1. Generalized knight shortest path: Given an integer n, consider an n x n chessboard with coordi...

Coding & Algorithms
17
0
114 people solved
Apr 2, 2026
Shopify logo
Shopify
Medium
Machine Learning Engineer AI

Implement URL Shortening Codec

Implement a small in-memory URL-shortening component in a pair-programming interview. Expose two methods: shorten(long_url: str) -> str, which returns...

Coding & Algorithms
0
0
3 people solved
Apr 1, 2026
Whatnot logo
Whatnot
Easy
Software Engineer Locked

Count User Journey Prefixes

This question evaluates the ability to reconstruct per-user action sequences from timestamped logs, aggregate and count path prefixes, and apply data-...

Coding & Algorithms
10
0
88 people solved
Apr 1, 2026
Microsoft logo
Microsoft
Easy
Data ScientistSenior+ Locked

Write an average-income function

This question evaluates proficiency in data manipulation and basic statistical aggregation, particularly handling missing values and computing average...

Coding & Algorithms
12
0
102 people solved
Apr 1, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Minimize deaths in spreading plant infection

This question evaluates a candidate's ability to model and simulate dynamic grid processes, reason about infection propagation and delayed state chang...

Coding & Algorithms
100
0
1051 people solved
Apr 1, 2026
Workday logo
Workday
Medium
Software EngineerSenior+ Locked

Build a Fuzzy Keyword Index

This question evaluates string-processing, text-indexing, approximate string-matching, and data-structure design skills for supporting many repeated q...

Coding & Algorithms
1
0
24 people solved
Apr 1, 2026
Medium
Machine Learning EngineerSenior+ Locked

Implement Linear Regression Training

This question evaluates understanding of linear regression, mean squared error loss, gradient computation, parameter updates, and proficiency with vec...

Coding & Algorithms
1
0
25 people solved
Mar 31, 2026
Verkada logo
Verkada
Hard
Software Engineer

Find and Merge Camera Alert Intervals

You are given surveillance camera readings as time-series data. Each reading is a pair (timestamp, value), sorted by timestamp. A camera is considered...

Coding & Algorithms
3
0
28 people solved
Mar 26, 2026
Anduril logo
Anduril
Medium
Software EngineerSenior+ Locked

Maximize Profit From Cutting Rods

This question evaluates algorithmic optimization and discrete cost-benefit analysis, testing skills in integer parameter exploration, profit modeling,...

Coding & Algorithms
5
0
44 people solved
Mar 26, 2026
Meta logo
Meta
Easy
Software Engineer Locked

Implement array parity and tree level views

This question evaluates proficiency in array frequency analysis and binary tree traversal, testing skills in data structures, correctness reasoning, a...

Coding & Algorithms
5
0
38 people solved
Mar 24, 2026
Otter.Ai logo
Otter.Ai
Medium
Software Engineer

Fixed-Width Text Display

Fixed-Width Text Display You are building a text display that renders a sequence of words inside a viewport of a fixed character width maxWidth. The d...

Coding & Algorithms
0
0
5 people solved
Mar 24, 2026