Tagged Questions
3
votes
1answer
212 views
How can I rewrite this linked-list manipulation as tail-recursive?
This is an interview question I was once asked, and now I ask many of my interviewees. I have yet to see anyone come up with a tail-recursive solution during the interview.
Given a liked list, I'd ...
4
votes
2answers
347 views
Is this the right strategy to convert an in-level order binary tree to a doubly linked list?
So I recently came across this question - Make a function that converts a in-level-order binary tree into a doubly linked list. Apparently, it's a common interview question.
This is the strategy I ...