Skip to main content

Two rounds, one session

The rounds LeetCode skips

A failing test to debug, and a real-world case to design — with an AI interviewer that reacts as you work.

What a session looks like

Bug Fixcheckout total returns NaN
✕ 1 failingcart.test.ts › applies discount
expect(total).toBe(90)  // Received: NaN
function applyDiscount(price, pct) {
  // pct arrives as "20", not 0.2
  return price - price * pct;
}
Before you change the formula, what are the actual types of price and pct?
Case LabPalantir · FDSE
  1. Clarify
  2. Decompose
  3. Designyou are here
  4. Build
  5. Review
Good scope. So what's the contract for the dispatch API, and which tradeoff are you defending?