Question d’entretien chez Zalando

Codility Test: Extracting common elements between two integer arrays in nLogn time

Réponse à la question d'entretien

Utilisateur anonyme

10 nov. 2019

public class Solution { // DO NOT MODIFY THE LIST. IT IS READ ONLY public ArrayList intersect(final List A, final List B) { int i = 0; int j = 0; ArrayList ans = new ArrayList(); while (i B.get(j)) { j++; } else { i++; } } return ans; } }

1