Hacker News new | ask | show | jobs
by nouney 3702 days ago
"How many people can actually write BFS on the spot, without preparing for it in advance?" A lot of people. You should too, even if you're just a front-end.
1 comments

What about the maze solving question?

Should all front-end developers be able to create a maze solving algorithm on the spot, during an interview, under time pressure?

I would at least offer something back, like a loop that randomly chooses left/right, restarts loop if dead end, exit loop if solved. Then verbally walk through how you might improve on it incrementally.
Well, you can always use BFS...