InterviewLegend

Grids and Graphs

Alex Chen24 min readUpdated 33 real interview reports

The Wells Fargo aptitude test stays inside arrays, strings, and hashing. The interview rounds that follow it do not. Candidates coming through the campus pipeline report a live technical round with a grid on the shared screen. The interviewer draws it, then asks a traversal question. Count a Premium question in a map of land and water. Or watch something spread across a matrix and say how long it takes. A grid is a graph with the edges left implicit, so these are graph problems wearing a plain coat.

Four shapes cover the ground here. A flood fill that visits one connected region at a time and counts how many regions there are. A breadth-first sweep that starts from many sources at once and measures distance in whole steps. A heap of fixed size k that surfaces the kth largest value without sorting everything. And a sorted pass that folds overlapping intervals into one. Learn the four cold and the live rounds hold few surprises.

What's inside
  • 4 problems, worked step by step
  • about 24 min

Premium lessonWells Fargo interview guide

These took digging.

What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.

100 companies. Checked every month.

Unlock all 100 companies

$49 a year · less than $1 a week · Cancel anytime

Had your Wells Fargo interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Wells Fargo interview guide

Know what Wells Fargo asks before you walk in.

8 coding · 2 system design · 30 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.