1. You have a binary tree with n elements that is not in sorted order. What is the time complexity to find the smallest value?
2. what is the worst case time complexity for binary search on an array with n elements?
------------
Okey my answer is
for the first question it would be n(longn), cuz u will have to sort it first.
and the second qustion yes it is log n
please help with explanation
thanx