What are these numbers in the input array? Are we supposed to form a BST? what is meant by inorder arrat? Please explain how to take the input?
Input issue replace by sum
Yes, you are given the value of n, and inorder array . There is a property that inorder array is sorted in nature, and hence you have sorted array. Now you have to build BST first by converting sorted array into BST. then you have to perform further what is asked in question.