2 ms·
Funny you should mention breadth first search - there was a post about hiring just a few days ago where the author was complaining about its used as an intervie
by rndmize 10y ago
Funny you should mention breadth first search - there was a post about hiring just a few days ago where the author was complaining about its used as an interview question: https://medium.com/@evnowandforever/f-you-i-quit-hiring-is-broken-bb8f3a48d324#.q36tqvpei https://medium.com/@evnowandforever/f-you-i-quit-hiring-is-b...
- mindcrime 10y agoI'd be OK with using BFS or DFS, but with this caveat: If it's a whiteboard thing, then don't expect a detailed, working implementation in code. Ask for a sketch / high level overview / pseudo-code that shows the candidate understand it well enough that you can infer that they could implement it with a compiler / google / book / etc. OR If you want an implementation, give them a machine, let them use their language of choice, use google, etc., and let them actually code it up, making and fixing errors as they go, etc. I actually like this because it lets you see how someone approaches debugging, etc. In either case, you could supplement the exercise with some discussion questions "why /when would you use BFS?" etc.
- bloat 10y agoWhen I last did a bunch of interviews every single one had a BFS question!
- riyadparvez 10y agoI do not agree with hiring processes many companies are pushing. However, if you do not know what BFS is, I do not know where to begin.