Input for choice variable

what will be the input for choice variable in case of node “38”
as it has neither left child nor right child so we cant input true nor false in s.nextBoolean

@dheerajmishra992,
The input for choice variable will be false for left child and false for right child.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.