1 2

## 00: Tree from a list & flattening it back to a list in Java

Hierarchical data with parent & child relationships are very common, and Java collection does not have a Tree data structure, hence … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 01: Tree flattening example in Java

Q. Traverse the tree in depth and return a list of all passed nodes. It should handle different data types as … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 02: Tree structure – calculate average recursively & iteratively in Java

Q. Complete the following “TreeProcessingImpl” class ….. so that the unit tests shown below pass? Skeleton Code Unit Tests A. Solution …… Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 03: Tree traversal algorithms in Java

Q1. What are the different binary tree traversal mechanisms? A1. Traversing a tree means visiting all the nodes of a tree … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 04: Tree – Get root to leaf max sum in Java example

Q. Write code to traverse a tree and get the largest “root-to-leaf sum”? A “root-to-leaf sum” is a sum … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 05: Is it a valid binary search tree (BST) ?

Q. Write code test if a given tree is a binary search tree (i.e. BST)? A. A binary search tree … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 06: Binary Tree – Sum Levels Java Example

Q. Write code to traverse a tree and return the sum of the values (Node.getValue()) of all nodes at the level … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 06: Binary Tree – Get root to leaf max sum in Java example

Q. Write code to traverse a binary tree and get the largest “root-to-leaf sum”? A “root-to-leaf sum” is a … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 07: Tree – Sum Levels Java example

Q. Write code to traverse a tree and return the sum of the values (Node.getValue()) of all nodes at the level … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 08: Part-1: Basic Java Tree structure interview questions and coding questions

Java does not have a Tree class but you can define one. In my 10+ years as a Java developer, I … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 09: Part 2: Java Tree structure interview questions and coding questions

In the previous post entitled  Java Tree structure interview questions and coding questions — Part 1, we looked at a … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 10: Part-3: Java Tree structure interview and coding questions

This is an extension to Java Tree structure interview and coding questions — Part 2, and adds functional programming and … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 11: Part 4: Java Tree structure interview and coding questions

This is an extension to Java Tree structure interview questions and coding questions — Part 3 where recursion was used for … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

1 2
Top