Coding Interview Questions

63 questions available. Practice with AI-powered feedback.

Other rounds

coding
Coupang
Amazon
Google

Coupang Coding Interview: Connected Components (Graph)

Count connected components in an undirected graph with BFS/DFS or Union-Find. See approach, complexities, and interview tips for Coupang ML Engineer. Read now

Machine Learning Engineer, Software EngineerEntry Level
coding
Databricks
Snowflake
Amazon

Databricks Code: Shortest Path in a Fibonacci Tree

Find the node sequence on the path between two labels in a preorder Fibonacci tree (0/1-based). Get an index-based O(k+L) method for Databricks.

Software Engineer, Backend EngineerEntry Level
ml coding
OpenAI
Anthropic
Google

Debug and Extend GPT-style Transformer — OpenAI ML Engineer

Fix 4 intentional bugs in a PyTorch GPT-style transformer, add KV-cache and a token classifier, and reproduce reference training outputs. Learn verification steps.

Machine Learning Engineer, ML EngineerMid Level
coding
DoorDash
Uber
Amazon

DoorDash Coding Question: Closest BST Node to Target

Find the integer node in a BST closest to a float target. Includes iterative and recursive solutions, complexity, edge cases and interview tips. Practice now.

Machine Learning Engineer, Software EngineerEntry Level
coding
eBay
Amazon
Microsoft

eBay Coding Question: Increasing Triplet Subsequence

Check if an array contains a strictly increasing subsequence of length 3. Study the O(n) greedy/two-pointer solution, edge cases, and interview tips. Try it.

Software Engineer, Backend EngineerEntry Level
ml coding
Apple
Google
Meta

From-Scratch PyTorch Transformer — Apple Interview

Implement a runnable, from-scratch PyTorch Transformer (encoder–decoder) with Multi-Head Attention, masks, and residuals. Read steps, tips, and follow-ups.

Software Engineer, ML EngineerMid Level
coding
Google
Microsoft
Meta

Google Coding Question: Online Longest Subarray with Average

Track longest contiguous subarray with average S online. Use prefix-sum key = pref - S*i with a hashmap. Read precision tips and complexity notes.

Machine Learning Engineer, Software EngineerEntry Level
coding
Google
Microsoft
Amazon

Google Coding Question: Task Scheduling with Precedence

Minimal makespan for DAG tasks with durations and precedence constraints on unlimited or M CPUs. Includes algorithms, complexity notes, and follow-ups.

Machine Learning Engineer, Software EngineerMid Level
ml coding
Google
DeepMind
OpenAI

Google ML Coding: Hand-code Multi-Head Attention in NumPy

Implement multi-head attention in NumPy: scaled dot-product for batched Q,K,V. Do per-head projections, reshape, apply mask, and return attention weights.

Machine Learning Engineer, ML EngineerEntry Level
coding
Home Depot
Lowe's
Wayfair

Home Depot API Design Interview: Surface & Contracts

Design a complete HTTP API surface and contracts for a Home Depot backend: list endpoints, request/response schemas, docs outline, and client pseudocode.

Software Engineer, Backend EngineerEntry Level
coding
Home Depot
Amazon
Walmart

Home Depot Coding Question: Reorder Merge Sort Pseudocode

Reconstruct and implement Merge Sort pseudocode from a Home Depot coding screen. Practice ordering, translating to code, and analyzing time/space complexity.

Software Engineer, Backend EngineerEntry Level
coding
IBM
Amazon
Google

IBM Coding Question: Min Insertions to Form 'abc' Problem

Minimize insertions to convert a lowercase string into repeated "abc" blocks. Learn a greedy two-pointer approach, complexity, and interview follow-ups.

Software Engineer, Backend EngineerEntry Level

Get More Real Coding Questions

Practice coding interview questions with AI-powered hints, analysis, and feedback.

Start Free Practice
Coding Interview Questions | Voker