Reasoning
How clearly you frame the problem and choose a workable approach.
Zed
Build patterns, explain tradeoffs, test edge cases, and ask for the smallest useful hint.
Practice with Zedfunction traverse(grid) {
// visit each node once
const seen = new Set();
}
Zed recommends
Graph traversal
62% mastery
Interactive preview
Two Sum · Warm-up
JavaScript01 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.
What Zed observes
How clearly you frame the problem and choose a workable approach.
Whether you find edge cases, verify assumptions, and read failures.
How well you explain complexity, alternatives, and tradeoffs.