Repository navigation
Array intersection #7
mabranches
started this conversation in
Entrevistas - Algoritmos
Replies: 1 comment
|
Uma dica pra solução. Utilizem uma hash |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
temos um método que recebe 2 arrays A , B. Deve retornar um terceiro array com a intersecção, ou seja,
numeros que aparecem nos 2 arrays.
Exemplo
inter([1,6,7,8], [4,6,8]) -> [6, 8]
All reactions