question–>
https://practice.geeksforgeeks.org/problems/array-to-bst/0#
code–>
Not passing all testcases
question–>
https://practice.geeksforgeeks.org/problems/array-to-bst/0#
code–>
Not passing all testcases
i also have a small doubt what is maximum size of array that we can allocate in statically in main and globally?
you can declare 1e7 in main.
beyond that you should declare it globally.
i was allocating 10^6 ,it started giving error
i figured out i was doing siilly mistake like k-1 instead of n-1 , i printed the inorder instead of preorder