C# algorithm to build a tree from given integer array and calculate its height and leaves.
Primary LanguageC#