Question 2) (40 points) Write a java program which generates a binary tree in two ways: 1. Array-based 2. Reference-based Show transcribed image text Question 2) (40 points) Write a java program which generates a binary tree in two ways: 1. Array-based 2. Reference-based
Answer
This program contain two different classes Array_imp andReference_imp for Array base and Reference based respectively .
if you need two different programs then you can differentiateeasily. also all the comments are mentioned for betterunderstanding
OR
OR