Coding Interview Questions
63 questions available. Practice with AI-powered feedback.
Other rounds
Salesforce Coding: Left-Right Occurrence Binary Strings
Salesforce coding: build left/right occurrence binary strings for an integer array. Learn hash-table two-pass solutions, time/space tradeoffs and follow-up ideas.
Scaled Self-Attention Implementation — Meta
Implement scaled self-attention for Transformers: compute attention outputs and per-query weights from Q, K, V with masking and numerical-stability. Try coding
Sliding Window Centered Monotonicity - Pinterest OA
Find indices whose radius-k centered window is inside nums and strictly decreases outward. See O(n) sliding-window/two-pointer approach and edge-case tips.
Snapchat Coding Interview: Cache with TTL & Capacity
Learn how to implement a cache with TTL and fixed capacity (Snapchat-style). Understand expiration, eviction on insert, and testable get/set semantics—practice now.
Snapchat ML Coding: K-Means + MapReduce Implementation
Prepare for Snapchat ML coding: implement deterministic K-means (centroids & assignments) and adapt it to MapReduce with mapper/reducer scripts. Learn iteration & stop rules.
Stripe Coding Interview: Match Payments to Invoices
Deterministic matching of payments to invoices using identifier, exact, then range rules. Tie-breakers and earliest due-date ordering for stable results.
Tesla Coding Interview: Priority Expiry Cache Eviction
Implement evictItem() to remove one cache entry: expired first, then lowest priority, then LRU ties. Read steps, edge cases, and quick follow-ups.
Tesla ML Coding Interview: 2D Conv Layer Forward in NumPy
Implement a 2D convolution forward pass in NumPy for channel-first inputs. Learn shape math, padding/stride handling, tests, and optimization tips. Try it now.
Top-K in Time Window - Coding Question, Walmart Labs
Walmart Labs coding question: implement record/query for Top-K items in a time window, add eviction, handle late arrivals, and bounded-timestamp optimizations.
Top-k Video Similarity Search - Google ML Coding Interview
Top-k videos by multiplicative path similarity on a weighted directed graph. Also covers adapting to sharded/remote adjacency with API constraints. Includes tips.
Type Signature Serialization & Inference — OpenAI
Design deterministic type-signature serialization, implement Node/Function types, and infer named type variables to concrete types. Read examples and edge cases.
Uber Coding Question: Cheapest Flight Within K Stops
Solve Uber's Cheapest Flight Within K Stops problem. Learn modified Dijkstra, BFS and DP approaches, complexity trade-offs, and interview tips. Try it now.
Get More Real Coding Questions
Practice coding interview questions with AI-powered hints, analysis, and feedback.
Start Free Practice