what is the time complexity to construct binary search tree when preorder and postorder of tree given?
answer given is O(n)
but i think it will be nlogn...becz from given postorder or preorder we need to find in order by sortingin nlogn tum so I think overalltime complexity will be nlogn ..???