Coding & DSA
131 questionsDONEUNLOCKEDLOCKED
Practical builds (parsers, in-memory stores, rate limiters, streaming) plus the LeetCode-medium staples, calibrated to the practical coding screens applied AI teams actually run.
Grounded in real Applied AI Engineer interview loops and written to a senior-engineer editorial bar.
You have 10 free answers unlocked here.Sign in free for 10 more · 111 are premium.
01–53Foundationsthe vocabulary every loop assumes you already have0/53 done
54–99Core loopsthe questions every loop actually asks0/46 done
100–131Field scenariosthe messy, half-specified problems from real deployments0/32 done
The concepts behind Coding & DSA
The vocabulary and mental models these questions assume, from our curriculum. Start with the foundations free; the deeper, interview-defining ideas are part of premium.
Foundational
Parsing Messy, Real-World DataReal data is messy: inconsistent formats, missing fields, encoding issues, malformed records, and surprises you did not anticipate. Defensive parsing means handling the unhappy path deliberately, validating input, deciding per-record whether to skip, default, or fail, and never letting one bad record crash the batch. Applied-AI interviews probe it (often as a coding screen) because ingesting documents and data for AI systems is half the job, and brittle parsers that assume clean input fail immediately in production.Foundational
The Big-O That Actually MattersBig-O complexity matters most where it bites in real AI systems: avoid accidental O(n^2) (all-pairs comparisons, repeated linear scans), use hash maps for O(1) lookups, and know that vector search is approximate precisely because exact nearest-neighbor is O(n) per query. The practical skill is spotting the quadratic trap and the data-structure fix, not reciting complexity classes. Applied-AI interviews probe it because the difference between O(n) and O(n^2) is the difference between a system that scales and one that falls over.Core
Testable Design for AI SystemsAI systems are hard to test because models are non-deterministic and call external services, so testability has to be designed in: isolate the non-deterministic model behind an interface so you can mock it, separate deterministic logic (parsing, retrieval, formatting) from the model call and test it normally, and assert on metric tolerances rather than exact outputs. Applied-AI interviews probe it because untestable LLM code regresses silently, and the discipline of mocking the model and testing the deterministic parts is what keeps a system reliable.Sign in
Core
Streaming and BackpressureWhen data is too big to fit in memory or arrives continuously, you process it as a stream, one piece at a time, with bounded memory, rather than loading it all. Backpressure is the mechanism that stops a fast producer from overwhelming a slow consumer, by signaling 'slow down' rather than buffering unboundedly until you run out of memory. Applied-AI interviews probe it because AI pipelines process huge datasets and token streams, and the naive load-everything approach OOMs while unbounded buffering crashes under load.Sign in
Foundational
Arrays and HashingThe hash map is the workhorse of coding interviews: average O(1) insert and lookup that turns an O(n^2) all-pairs scan into a single O(n) pass. The recurring moves are the seen-set (remember what you have passed) and frequency counting (tally then read back). Applied-AI interviews probe it because most array problems are really hash-map problems in disguise, and the candidate who reaches for the dictionary first signals real fluency.Foundational
Two Pointers and Sliding WindowTwo pointers and the sliding window are the array techniques that hit O(n) where a naive double loop would be O(n^2). Converging pointers exploit sorted order to find pairs; a parallel window expands and contracts while maintaining a running invariant for subarray and substring problems. Applied-AI interviews probe these because they test whether a candidate can replace nested loops with a single linear pass and reason about why the work stays bounded.Foundational
Binary Search and Search-Space ReductionBinary search halves a sorted or monotonic-predicate space each step to hit O(log n), but the real interview skill is recognizing a problem that is secretly monotonic and binary-searching on the answer rather than the array. The off-by-one pitfalls in the lo/hi/mid loop are where most candidates lose points. Applied-AI interviews probe it because search-space reduction shows up far beyond sorted arrays, in capacity planning, rate limits, and threshold tuning.Foundational
Linked ListsA linked list stores elements in nodes that point to the next node, trading away O(1) random access for O(1) insertion and deletion once you hold a pointer. Interviews use them to test pointer discipline: the dummy-head trick, fast/slow pointers for cycle detection and finding the midpoint, and in-place reversal. Applied-AI interviews probe them because the patterns transfer to streaming buffers, LRU caches, and any structure where you splice without shifting.