Snowflake logo

Snowflake Interview Question Bank

Snowflake's loop is small and bank-driven: a recruiter screen, two back-to-back coding phone screens, then a virtual onsite that mixes coding, system design, and behavioral. The same handful of coding families (multi-source BFS on a grid, course-schedule variants, tree-node-deletion height problems, transactional KV stores) cycle through most candidates, so recognition speed matters more than novel problem solving.

More
106
Before you start
Showing 69 of 69
Coding·60 min
MediumFree preview

Closest Bathroom / Desk on a Grid

Given a 2-D grid with cells marked `B` (bathroom), `D` (desk), and `_` (empty), return the shortest distance from each desk to its nearest bathroom under 4-directional movement. A 1-D variant uses `{0, 1, 2}` for empty / person / cake. Follow-ups extend to a global cake-to-person assignment.

SWE
bfs
grid
two-pointer
heap
+1
7 related discussions

Snowflake Featured Guides