big O notation

Why do we use the tightest Big O bound?

If an algorithm runs in O(n), then O(n²), O(n³), and even O(n!) are technically valid upper bounds too. So why do people expect the smallest or tightest bound…

Is this function O(n) or O(1)?

I have a debate going on with my professor about the time complexity of a function I've written. The code is as follows: ```cpp int f(int m, int…