·········wave
mediumGrind 75

Walls and Gates

Walls and Gates is a traversal problem: the hard part is modeling the state you visit. Interviewers love it because it reveals your traversal modeling and your edge-case discipline. Be clear about what a state is; that's the difference between BFS/DFS working or blowing up.

Arrays & HashingGraphsBFS / DFS
👩‍🏫
👨‍💼

Meet Allison & Tim

Your AI coaches

Practice coding interviews out loud with real-time voice coaching. Your code actually runs.

Free · No sign up · Early access
1Fill Distancesmedium

Get this problem sent to your inbox