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

Solve tree leaf sum and target indices search

Question LeetCode 129. Sum Root to Leaf Numbers LeetCode 2089. Find Target Indices After Sorting Array (array already sorted; require O(log n) time) h...

Coding & Algorithms
7
0
34 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Compare two string linked lists

Question Given two singly linked lists where each node stores one character as a string, determine whether the sequences of characters represented by ...

Coding & Algorithms
7
0
20 people solved
Jul 29, 2025
xAI logo
xAI
Medium
Software Engineer

Explain and Implement Strings

Question What is a string in programming languages? Inside a struct string{} in Rust, what fields are stored and how would you design and implement on...

Coding & Algorithms
2
0
19 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute minimum passes over permutation

Question You are given an array shelf representing a permutation of the integers 1..n. Starting with target = 1, you repeatedly scan the array left-to...

Coding & Algorithms
66
0
138 people solved
Jul 29, 2025
Character.AI logo
Character.AI
Medium
Software Engineer

Explain strings and copy complexity

Question What is a string? What fields does a struct string contain, and how would you implement it yourself? What is the time complexity of copying a...

Coding & Algorithms
4
0
15 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute minimum passes to collect numbers

Question You are given an array shelf of n distinct integers that is a permutation of 1…n. Starting with target = 1, you repeatedly scan shelf from le...

Coding & Algorithms
76
0
200 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve three LeetCode coding problems

Question LeetCode 1249. Minimum Remove to Make Valid Parentheses LeetCode 827. Making A Large Island LeetCode 199. Binary Tree Right Side View https:/...

Coding & Algorithms
8
0
24 people solved
Jul 29, 2025
Ramp logo
Ramp
Medium
Software Engineer

Navigate maze via HTTP API

Question Implement a program that repeatedly calls a provided HTTP API which returns the next URL in a maze; continue following the URLs until reachin...

Coding & Algorithms
13
0
51 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Check Palindrome and Add Decimal Strings

Question LeetCode 266. Palindrome Permutation – Given a string, determine whether any permutation can form a palindrome. Follow-up: If a palindrome pe...

Coding & Algorithms
24
0
66 people solved
Jul 29, 2025
Harvey logo
Harvey
Medium
Software Engineer

Handle multi-source string matching and tagging

Question Given an LLM output string and a list of source strings, design an algorithm to count how many times each source appears in the output. Exten...

Coding & Algorithms
20
0
50 people solved
Jul 29, 2025
SoFi logo
SoFi
Medium
Software Engineer

Implement tree ops and LRU cache

Question Implement set(index) and clear(index) for the leaves of a full binary tree initially filled with 0s, where a parent node becomes 1 only when ...

Coding & Algorithms
19
0
48 people solved
Jul 29, 2025
Rippling logo
Rippling
Medium
Software Engineer

Compute concurrent online drivers

Question Given each driver’s chronologically sorted delivery records, build an algorithm that, for a timestamp t, returns how many distinct drivers we...

Coding & Algorithms
7
0
19 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find most frequent log user

Question You are given a list of log entries in string format, where each entry contains a username and an access timestamp separated by a delimiter (...

Coding & Algorithms
24
0
49 people solved
Jul 29, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Design Connect-N winner detector

Question Design a data structure for the Connect-N game: pieces are dropped into a column (occupying the lowest empty cell). Implement move(column, pl...

Coding & Algorithms
22
1
81 people solved
Jul 29, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Determine equality after limited swaps

Question LeetCode 1790. Check if One String Swap Can Make Strings Equal Follow-up: Given two strings, determine if they can become anagrams of each ot...

Coding & Algorithms
10
0
5 people solved
Jul 29, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Determine blockage and parse HTML tokens

Question Given a set of 2-D circular stones, determine whether they can completely block the width of a river. You may define the input format. Given ...

Coding & Algorithms
19
0
52 people solved
Jul 29, 2025
Google logo
Google
Medium
Software Engineer

Parse strings and find meeting slots

Question Given a text file where each line contains raw information, extract the user identifier and the numeric quantity on that line and store the r...

Coding & Algorithms
31
0
61 people solved
Jul 29, 2025
Character.AI logo
Character.AI
Medium
Software Engineer

Design timestamped key-value map

Question Design a class that supports insert(key, value, timestamp) and get(key, timestamp) where get returns the value whose timestamp is the smalles...

Coding & Algorithms
16
0
42 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute maximum distinct-product pickup days

Question Given an array of positive integers representing quantities of different products, on day i (starting from 1) you must pick exactly i distinc...

Coding & Algorithms
21
0
56 people solved
Jul 29, 2025
Instacart logo
Instacart
Medium
Software Engineer

Evaluate dependent variable expressions

Question Given a target variable name and a list of assignment strings of the form 'Ti = expression' where the expression is either a number, a single...

Coding & Algorithms
26
0
101 people solved
Jul 29, 2025