Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Eridrus
· 8y ago · 0 comments
I 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".
Comments
[–]
money_talks
8y ago
Huh? Deletion has different meanings depending on context. What do you mean by delete, exactly? What language? How is the tree stored?
[–]
wingerlang
8y ago
As far as I've read, sometimes questions are ambiguous to see how the interviewee proceeds with the problem, if they ask relevant questions.
[–]
Eridrus
OP
8y ago
Free the memory associated with the tree. This is a C/++ question.