Ask HN: What's your favorite graph interview question?
1–10 of 15 posts
Re: Ask HN: What's your favorite graph interview question?
#2Re: Ask HN: What's your favorite graph interview question?
#3More seriously: do people think that any questions that require anything more than DFS, BFS, and/or Dijkstra are reasonable to ask for most general software engineering positions? (I appreciate specific positions might expect more)
Of course, trees are graphs too, and there are loads of tree questions --- I guess I'd narrow my response down to questions regarding general graphs and not just trees.
Re: Ask HN: What's your favorite graph interview question?
#4A slight step up from that could be word search/boggle as it involves multiple data structures (trie, etc).
Another good one is topologically sporting a dependency graph to get a list of dependencies to install/operate on in order.
Re: Ask HN: What's your favorite graph interview question?
#5If you were a graph, which would you be? More seriously: do people think that any questions that require anything more than DFS, BFS, and/or Dijkstra are reasonable to ask for most general software engineering positions? (I appreciate specific positions might expect more) Of course, trees are graphs too, and there are loads of tree questions --- I guess I'd narrow my response down to questions regarding general graph…
Re: Ask HN: What's your favorite graph interview question?
#6For a take home interview, variations on 8 queens can be interesting since they utilize dfs and backtracking.
Re: Ask HN: What's your favorite graph interview question?
#7Re: Ask HN: What's your favorite graph interview question?
#8I also have reservations about algorithms questions as a useful interview filter, but my favourite that I have been asked is "How would you delete a tree using a fixed amount of memory? i.e. no recursion or other dynamic structures".
Re: Ask HN: What's your favorite graph interview question?
#9Re: Ask HN: What's your favorite graph interview question?
#10I also have reservations about algorithms questions as a useful interview filter, but my favourite that I have been asked is "How would you delete a tree using a fixed amount of memory? i.e. no recursion or other dynamic structures".
Huh? Deletion has different meanings depending on context. What do you mean by delete, exactly? What language? How is the tree stored?