there is no order mention for range answer?
so what order should i follow, i am printing acc. to pre-order but getting WA
What the order for range answer
hey @Vipin_coder
Read this line carefully and analyze the pattern
Output Format
For each test case you have to print preorder traversal of the tree first and then print all nodes within the range k1 and k2 (inclusive). Refer to the sample testcase for exact output format.
inorder pattern for range query??
printrang range are like Inorder Traversal
OKay , thanks, I will try