I'm new to introduction to algorithms and asymptotic analysis.
I'm trying to prove/disprove this:
Let $f,g\colon\mathbb{N} \to \mathbb{N}$ be increasing functions, i.e. such that $(f(n+1)>f(n)$ and $g(n+1)>g(n))$ for all $n$.
Define $h\colon\mathbb{N} \to \mathbb{N}$ as follows: $h(n)=\max(f(n),g(n))$ for each $n \in N$.
Does it necessarily follows that $h=O(f)$ or $h=O(g)$?
Intuitively, it looks true for me but I have no idea how to prove it.