Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 354 Bytes

README.md

File metadata and controls

5 lines (5 loc) · 354 Bytes

NodeProblem

Coding problem in Java. Program a Node class with fields left and right referring

to the children of the node. If the node has no children, the fields will be null.

Given the root Node (That is, the starting Node of the entire tree) and a list of Nodes

Write a program that gives the greatest common ancestor of the list of nodes.