Practice the thinking,
not the answer.

Build patterns, explain tradeoffs, test edge cases, and ask for the smallest useful hint.

Practice with Zed
solution.ts

function traverse(grid) {

// visit each node once

const seen = new Set();

}

Zed recommends

Graph traversal

62% mastery

Test the approach, then explain it.

Two Sum · Warm-up

JavaScript

01 function twoSum(nums, target) {

02 const seen = new Map();

03 for (let i = 0; i < nums.length; i++) {

04  const needed = target - nums[i];

05  if (seen.has(needed)) return [seen.get(needed), i];

06  seen.set(nums[i], i);

07 }

08 }

Zed

Your coding coach

Explain why the map lookup keeps this solution linear.

01

Reasoning

How clearly you frame the problem and choose a workable approach.

02

Testing

Whether you find edge cases, verify assumptions, and read failures.

03

Communication

How well you explain complexity, alternatives, and tradeoffs.