Hacker News new | ask | show | jobs
by kkapelon 3709 days ago
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?

2 comments

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...