this may seem like a basic question about algorithms, but trying to confirm to myself that I'm correct (still trying to grasp basic concepts in teaching myself algortihms).
- a problem i have requires first running an O(N) algorithm
- then performing N binary searches on an N-element array
- then running another O(N) algorithm
I'm trying to find the total time complexity for this problem.
Would it just be O(N) because that's the dominant order over O(logN)?
Thanks in advance