Coding Interview Questions
63 questions available. Practice with AI-powered feedback.
Other rounds
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Get More Real Coding Questions
Practice coding interview questions with AI-powered hints, analysis, and feedback.
Start Free Practice