I want to ask, I'm still learning about time complexity. I got a problem, the question asked me to calculate the time complexity of a binary search,
The time complexity of a binary search is O(log m).
After the search, they want me to calculate a linear O(n) search inside of it. So inside a binary search, there is a linear search.
Is it O(n log m) or O(log m*n)?
And if you could add, please tell me how to calculate the complexity if there is multiple algorithm combine. Thank you!