Skip to content

Complejidad Parte 1 Find Sequences #152

Discussion options

You must be logged in to vote

Se sabe que $M$ es entre 0 y $N$, por lo tanto, $M = N \times C$ con C un valor entre 0 y 1.

$$O(N + M) = O(N + N \times C) = O(N \times (1 + C)) = O(N)$$

No se puede hacer al revés, dado que la $C$ en ese caso podría tener valor infinito.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benjavicente
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants