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

Handle invalid Lisp expression parsing

Question LeetCode 736. Parse Lisp Expression – Given a string representing a Lisp-like expression containing let/add/mult operations and variable bind...

Coding & Algorithms
2
0
50 people solved
Aug 4, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Solve Open the Lock BFS

Question LeetCode 752. Open the Lock – Given an initial lock state "0000", a target combination, and a list of deadend combinations that cannot be use...

Coding & Algorithms
4
0
65 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Count subarrays with ≥k identical pairs

Question LeetCode 2537. Count the Number of Good Subarrays – Given an integer array nums and an integer k, return the number of contiguous subarrays i...

Coding & Algorithms
4
0
52 people solved
Aug 4, 2025
Capital One logo
Capital One
Medium
Machine Learning Engineer

Solve matrix rotation and 1-D illumination

Question LeetCode 48. Rotate Image – rotate an n×n matrix 90° clockwise (extra space allowed). Find the point(s) with the maximum number of illuminate...

Coding & Algorithms
4
0
10 people solved
Aug 4, 2025
Vanta logo
Vanta
Medium
Software Engineer

Implement test failure analytics APIs

Question Design a data structure that supports: log(testId, timestamp, status) — record the status ('pass'/'fail') of a test run; timestamps are stric...

Coding & Algorithms
31
1
313 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Implement paginated, sortable dynamic table component

Implement paginated, sortable dynamic table component React Table Component: Pagination, Sorting, Dynamic Columns Context You are building a reusable ...

System Design
2
0
45 people solved
Aug 4, 2025
WeRide logo
WeRide
Medium
Software Engineer

Expand algebraic expression with distribution

Question Given an expression of lowercase letters, '+', '', and parentheses with no '+' outside any parentheses, return an equivalent expression conta...

Coding & Algorithms
4
0
45 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Software Engineer

Determine reachability and optimize task scheduling

Question LeetCode 780. Reaching Points: Given four integers a, b, c, d (1 <= a, b, c, d <= 1000). Starting from (a, b) you may repeatedly apply either...

Coding & Algorithms
2
0
37 people solved
Aug 4, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Solve programming task with follow-ups

Question Pure programming problem solving: implement the core algorithmic solution, then extend it to ( 1) support a constraint of consecutive N eleme...

Coding & Algorithms
14
0
143 people solved
Aug 4, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Remove duplicates in linked list

Question Given a linked list, remove all duplicate values so that each value appears only once. Provide solutions for both sorted and unsorted linked ...

Coding & Algorithms
21
0
80 people solved
Aug 4, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Implement bank balance operations

Question Design and implement a Bank account class that supports the operations Deposit(amount), Withdraw(amount), and CashBack(percent). Ensure balan...

Coding & Algorithms
4
0
57 people solved
Aug 4, 2025
Jump Trading logo
Jump Trading
Medium
Machine Learning Engineer

Solve stock trading with pattern rules

Question Given an array of daily stock prices and two pattern arrays: sellPattern and buyPattern, each consisting of 1 (price up) and -1 (price down) ...

Coding & Algorithms
7
0
69 people solved
Aug 4, 2025
TikTok logo
TikTok
Medium
Software Engineer

Solve message splitting and board crushing

Question LeetCode 2468. Split Message Based on Limit – Given a message string and a per-line width, split it into parts adding the suffix "<i/n>" (e.g...

Coding & Algorithms
7
0
85 people solved
Aug 4, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Verify and modify inorder subsequence

Question Given a binary tree and a sequence of numbers, design an algorithm to check in O(n) time and O( 1) extra space whether the sequence is a subs...

Coding & Algorithms
16
1
131 people solved
Aug 4, 2025
Applied Intuition logo
Applied Intuition
Medium
Software Engineer

Find duplicate files by size

Question LeetCode 609. Find Duplicate File in System — find duplicate files using file size instead of content comparison https://leetcode.com/problem...

Coding & Algorithms
15
0
116 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Maximize vacation streak with PTO

Question Given an array of characters containing 'w' (workday) and 'h' (holiday) and an integer n representing the number of PTO days you can convert ...

Coding & Algorithms
12
0
10 people solved
Aug 4, 2025
MathWorks logo
MathWorks
Medium
Software Engineer

Count interval intersections

Question For a list of n segments, where each segment i has start[i] and end[i], compute for every segment the count of other segments that intersect ...

Coding & Algorithms
2
0
28 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Count uniques in sparse sorted array

Question A sorted array contains many duplicates but only a very small number of distinct values. Design an algorithm that counts how many unique numb...

Coding & Algorithms
29
0
10 people solved
Aug 4, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Solve binary-search knapsack & graph shortest path

Question Given a sorted list of items, design an efficient solution (using binary search) to achieve the target objective instead of a dynamic-program...

Coding & Algorithms
5
0
59 people solved
Aug 4, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Solve palindrome pairs and key path

Question LeetCode 336. Palindrome Pairs; LeetCode 864. Shortest Path to Get All Keys https://leetcode.com/problems/palindrome-pairs/description/ https...

Coding & Algorithms
8
0
14 people solved
Aug 4, 2025