2

$\max(f(n), g(n)) = O(f(n) + g(n))$

How do I prove this? Also I'd appreciate the markup being corrected, thanks.

1 Answers1

3

You can use $\max(f(n),g(n)) \leq f(n) + g(n)$, given that both functions are non-negative.

Yuval Filmus
  • 57,157