Write a method to find the zig zag tree traversal in a tree. I got asked this question once in an interview. Now I found a few solutions to this…
Posts tagged as “Tree”
Today’s question is going to be a quick one. We want to find longest path in tree. What does Path mean in a Tree context? The Tree wikipedia page and…
Today I wanted to do a quick recursive problem that came to my attention. It took me about 20 mins to finalize this the way I wanted it… (5-10 too…
This is a fun little question that will give an interviewer the chance to gauge your understanding of Trees and BSTrees. If wanting more clarification check our binary TreeNode implementation…
When I first stumbled upon this question, I immediately made a TreeNode implementation and tried to write down the solution. As it turns out, I forgot one important step of…
I was thinking about writing a Binary Tree coding question and just realized I need a Binary Tree implementation in Java for that. Explaining shortly – we will keep track…