in the function of generate_subsequence which line execute when.

what would be the order of execution of these 2 lines
in the function of generate_subsequence which line execute when.

what would be the order of execution of these 2 lines
your function will first execute the first recursive function which include till you found an answer when you found the answer then it will come back to last call of that first function and then 2nd recursive function will execute from that current i and j.
int height_of_binary_tree(node*root) { if(root==NULL) return 0; int ls=height_of_binary_tree(root->left); int rs=height_of_binary_tree(root->right); return max(ls,rs)+1; } can you please tell me which line execute when i am also confused in this fucntionn.
for each node your function will first calculate height of left subtree then it will calculate height of right subtree,so that max height will be max of left and right height+ 1 (for that current node).
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.