We are given that $f(n) \in O(g(n))$ and $f(n) \in O(h(n))$. By definition of big-Oh notation, this means that there exist positive constants $c_1, c_2, n_1,$ and $n_2$ such that:
$f(n) \leq c_1g(n)$ for all $n \geq n_1$
$f(n) \leq c_2h(n)$ for all $n \geq
Show more…