-
Find the smallest positive integer that does not occur in a given sequence
- https://stackoverflow.com/a/71017932/2332965
- Se houver usar estruturas de dados que impeçam dados duplicados
- Se possível usar estruturas de dados que já se ordenem
- http://ruby-doc.org/stdlib-1.9.3/libdoc/set/rdoc/Set.html
- [1,2,3,4,5,5,5,6].to_set => [1,2,3,4,5,6]
-
Exercício dois
Last active
April 26, 2024 20:38
-
-
Save wellington1993/3e07eeff559542e62d3a404c9d1ff7b7 to your computer and use it in GitHub Desktop.
Exercícios de algorítimo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment