Yes right, I just added the following method before your comment and it works :
public static void traverseTree(TreeNode root) {
if (root != null) {
...
Type: Posts; User: siid14
Yes right, I just added the following method before your comment and it works :
public static void traverseTree(TreeNode root) {
if (root != null) {
...
Working on a program "to convert a sorted array to binary search tree".
How to get the value return from the node? It does not print what I want.
Here is my code :
public class...