Sol 2045

Sol 2045. $o(|v| + |e|)$, where $|v| = n$ and $|e| = |\texttt{edges}|$ According to james of invest answers sol…