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

Compute balances, rejections, and platform reserve

This question evaluates transactional state management, time-ordered stream processing, balance reconciliation, handling of rejected transactions, and...

Coding & Algorithms
3
0
36 people solved
Jan 6, 2026
Startups.Com logo
Startups.Com
Medium
Machine Learning Engineer Locked

Design NL-to-SQL performance optimization assistant

This question evaluates a candidate's ability to design a secure, reliable, and cost-conscious natural-language-to-SQL performance diagnostic system t...

System Design
4
0
37 people solved
Jan 6, 2026
NVIDIA logo
NVIDIA
Medium
Software EngineerSenior+ Locked

Compute top-N items from log stream

This question evaluates the ability to aggregate frequencies and compute top-N results from logs, covering competencies in frequency counting, top-k a...

Coding & Algorithms
2
0
33 people solved
Jan 6, 2026
Google logo
Google
Medium
Software EngineerIntern Locked

Find shortest subarray with ≥k distinct integers

This question evaluates understanding of array algorithms, handling of distinct-element counting, and the ability to design time- and space-efficient ...

Coding & Algorithms
5
0
40 people solved
Jan 6, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Validate a JSON-like string

This question evaluates parsing and string-processing skills, focusing on structural validation of JSON-like text including matching and nesting of br...

Coding & Algorithms
10
0
134 people solved
Jan 6, 2026
Snowflake logo
Snowflake
Hard
Software Engineer Locked

Implement an in-memory file system

This question evaluates a candidate's ability to design and implement in-memory file system data structures and APIs, covering hierarchical directory ...

Coding & Algorithms
13
0
159 people solved
Jan 6, 2026
Faire logo
Faire
Hard
Software Engineer Locked

Format text into fixed-width justified lines

This question evaluates string manipulation, greedy packing, and precise space-distribution skills, assessing competency in algorithmic implementation...

Coding & Algorithms
8
0
68 people solved
Jan 6, 2026
TikTok logo
TikTok
Hard
Software EngineerIntern Locked

Solve grid shortest-path and tree DP

This question pair evaluates proficiency in fundamental algorithmic techniques: finding shortest paths in a grid via breadth-first search and applying...

Coding & Algorithms
3
0
34 people solved
Jan 6, 2026
Meta logo
Meta
Hard
Software Engineer Locked

Count three-digit numbers with distinct digits

This question evaluates a candidate's understanding of digit manipulation, basic combinatorics, and implementation of value-range constraints in codin...

Coding & Algorithms
2
0
42 people solved
Jan 6, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Implement solutions to several coding tasks

This multipart prompt evaluates algorithmic problem-solving and data-structure design skills across several areas: finding a minimum in a rotated sort...

Coding & Algorithms
3
0
62 people solved
Jan 5, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Solve counting and frequency coding tasks

This question evaluates algorithmic skills in counting, frequency analysis, constraint-based pair counting, and stream-oriented tokenization and ranki...

Coding & Algorithms
3
0
43 people solved
Jan 5, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Find shortest path in an OOP maze

This question evaluates graph traversal and shortest-path reasoning within an object-oriented codebase, focusing on state representation, neighbor exp...

Coding & Algorithms
2
0
37 people solved
Jan 5, 2026
Google logo
Google
Medium
Software Engineer Locked

Generate all subsets (handle duplicates)

This question evaluates understanding of power-set generation and handling of duplicate elements, measuring competency in combinatorics, enumeration t...

Coding & Algorithms
8
0
65 people solved
Jan 4, 2026
Snapchat logo
Snapchat
Hard
Software Engineer

Compute shortest path in a 2D grid

Given an m x n grid where: - 0 represents an empty cell you can move through - 1 represents a blocked cell you cannot enter - movement is allowed in 4...

Coding & Algorithms
3
0
39 people solved
Jan 4, 2026
Plymouth Rock Assurance Corporation logo
Plymouth Rock Assurance Corporation
Medium
Data ScientistIntern

Compute Fibonacci Numbers

Write a function that returns the nth Fibonacci number. Definitions and requirements: - Use zero-based indexing: fib(0) = 0, fib(1) = 1. - For n >= 2,...

Coding & Algorithms
1
0
19 people solved
Jan 3, 2026
Meta logo
Meta
Medium
Data Scientist

Write SQL for CTR and revenue

Write SQL for the following two tasks. Problem 1: CTR during peak vs. non-peak hours You are given three tables: - ads(ad_id BIGINT, advertiser_id BIG...

Data Manipulation (SQL/Python)
6
1
42 people solved
Jan 3, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Check palindrome and find next larger palindrome

This question evaluates proficiency in string and numeric manipulation, specifically palindrome detection and generation of the next strictly larger n...

Coding & Algorithms
4
0
44 people solved
Jan 3, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Compute shortest path in cyclic graph

This question evaluates understanding of graph algorithms and shortest-path computation in weighted directed graphs, including handling cycles, non-ne...

Coding & Algorithms
2
0
47 people solved
Jan 3, 2026
Oracle logo
Oracle
Medium
Data ScientistIntern Locked

Count Enclosed Islands in a Grid

This question evaluates grid traversal and graph concepts such as connected-component detection, boundary-condition reasoning, and algorithmic time/sp...

Coding & Algorithms
3
0
29 people solved
Jan 3, 2026
Plymouth Rock Assurance Corporation logo
Plymouth Rock Assurance Corporation
Medium
Data ScientistIntern

Calculate Ultimate Loss by Policy Term

You work with insurance policy-term loss data. For a given policy term, its ultimate loss is defined as the sum of losses from the current term and al...

Data Manipulation (SQL/Python)
0
0
6 people solved
Jan 3, 2026