How to use “true” in our tree, as we can use false as
if(d==“false”) return NULL;
if we take input as string but how to use “true” in code at the time of building tree
Cannot able to understand Question
@Ayusinha just like you’re using if(d == “false”), you can use if(d == “true”) in your code.
for eg,
if(d == “true”)
{
// make a call to right subtree ;
}
Hello @Ayusinha,
You need not to consider “false” to build the tree.
All you have to focus is on the usage of “true”.
You can refer to the following segment of code to understand the logic better:
Hope, this would help.
Give a like, if you are staisfied.
1 Like
if you don’t have any further queries you can mark your doubt as resolved.
thank you 