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
Capital One logo
Capital One
Medium
Software EngineerSenior+

Count Numbers With Odd Zeros

Given an array a of non-negative integers, count how many elements contain an odd number of digit '0' in their decimal representation. Notes: - Treat ...

Coding & Algorithms
13
0
105 people solved
Jan 20, 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
Airbnb logo
Airbnb
Hard
Software Engineer

Compute maze score using shortest path

You are given a grid-based maze game. - The maze is an R x C grid of characters: - '#' = wall (cannot pass) - '.' = empty cell - 'S' = current p...

Coding & Algorithms
24
1
182 people solved
Jan 19, 2026
Gofundme logo
Gofundme
Easy
Software Engineer Locked

Explain React and Firebase data interaction

This question evaluates understanding of frontend-backend data flow and integration with cloud-hosted databases, specifically concepts like real-time ...

Software Engineering Fundamentals
1
0
27 people solved
Jan 19, 2026
Gofundme logo
Gofundme
Easy
Software Engineer Locked

Explain CSS specificity and selector precedence

This question evaluates a candidate's understanding of CSS specificity and selector precedence, focusing on how the browser prioritizes competing styl...

Software Engineering Fundamentals
2
0
22 people solved
Jan 19, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Implement an IPv4 Iterator

This question evaluates proficiency in IPv4 address representation and arithmetic, CIDR parsing, iterator API design for forward and backward traversa...

Coding & Algorithms
4
0
47 people solved
Jan 19, 2026
Walmart Labs logo
Walmart Labs
Hard
Data ScientistSenior+

Convert Dictionary to DataFrame

Using Python and pandas, convert the following dictionary into a DataFrame. Each top-level key is a target column name, and each value is a list of [r...

Data Manipulation (SQL/Python)
1
0
19 people solved
Jan 18, 2026
Uber logo
Uber
Medium
Data Scientist Locked

Move zeros to front

This question evaluates array manipulation and in-place algorithm skills, specifically competency in stable element reordering, index management, and ...

Coding & Algorithms
4
0
31 people solved
Jan 18, 2026
Ramp logo
Ramp
Medium
Software Engineer Locked

Implement wildcard querySelector to extract URL

This question evaluates implementation skills for a simplified selector engine, DOM traversal and manipulation, wildcard attribute pattern matching, a...

Coding & Algorithms
41
0
341 people solved
Jan 18, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Maximize score in 15-sum card game

This question evaluates algorithmic problem-solving in combinatorial search, state-space optimization, and memoization by asking for the maximum achie...

Coding & Algorithms
9
0
109 people solved
Jan 18, 2026
Meta logo
Meta
Easy
Data Scientist

Compute ads revenue by geography in SQL

You have ad delivery logs for a shop-ads system. Tables ad_impressions - impression_id STRING (PK) - ts TIMESTAMP (UTC) - user_id STRING - shop_id STR...

Data Manipulation (SQL/Python)
29
5
208 people solved
Jan 17, 2026
PayPal logo
PayPal
Easy
Data Scientist Locked

Explain and interpret p-values correctly

This question evaluates statistical inference and experimental-design competencies, focusing on a precise definition and correct interpretation of p-v...

Statistics & Math
7
0
59 people solved
Jan 17, 2026
Boston logo
Boston
Easy
Data Scientist

Implement palindrome check and valid parentheses

You have 20–25 minutes per problem. Implement the following two functions and be prepared to explain your approach and time/space complexity. Problem ...

Coding & Algorithms
5
0
46 people solved
Jan 17, 2026
Others logo
Others
Easy
Data Scientist

Answer ancestor-walk queries on a rooted tree

Problem (Tree / Parent Array Queries) You are given a rooted tree with n nodes labeled 1..n, represented by a parent array par[1..n]: - par[i] is the ...

Coding & Algorithms
1
0
29 people solved
Jan 17, 2026
Others logo
Others
Easy
Data Scientist

Compute per-coin quarterly amounts and totals

Problem (SQL: Conditional Aggregation) You have two tables: coins - coin_id INT PRIMARY KEY - name VARCHAR transactions - id BIGINT PRIMARY KEY - coin...

Data Manipulation (SQL/Python)
1
0
8 people solved
Jan 17, 2026
Snowflake logo
Snowflake
Hard
Software Engineer

Compute height of tree with deleted nodes; minimize deletions

You are given a rooted tree (not necessarily binary). Each node has a list of children. Some nodes are marked as deleted = true. Define the effective ...

Coding & Algorithms
7
0
127 people solved
Jan 16, 2026
Uber logo
Uber
Hard
Software Engineer Locked

Maximize Minimum Scaled Value

This question evaluates algorithmic optimization and resource-allocation skills, focusing on integer scaling under a global budget to maximize the min...

Coding & Algorithms
2
0
40 people solved
Jan 16, 2026
SoFi logo
SoFi
Medium
Software EngineerSenior+ Locked

Generate all permutations of an array

This question evaluates understanding of permutation generation, recursion and backtracking techniques, along with skills in state-space exploration a...

Coding & Algorithms
11
0
105 people solved
Jan 16, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Implement cd and merge intervals

This question evaluates proficiency in filesystem path normalization (string parsing, tokenization, and edge-case handling) and interval-merging algor...

Coding & Algorithms
3
0
57 people solved
Jan 16, 2026
Uber logo
Uber
Medium
Software Engineer

Count paths with prime-ending jumps

You are given an integer n representing the top of a staircase, where you start at step 0 and want to land exactly on step n. In one move, you may jum...

Coding & Algorithms
2
0
35 people solved
Jan 15, 2026