employer cover photo
employer logo
employer logo

SAP Ariba

Fait partie de SAP

Est-ce votre entreprise ?

Question d’entretien chez SAP Ariba

Compare arraylist contents and get the duplicate

Réponses aux questions d'entretien

Utilisateur anonyme

17 avr. 2011

Gave the approach. But he was not happy as he said if arraylist consists of 1000's of elements, it is difficult and slow in my approach. I think he needs search algorithms comparison and so on

1

Utilisateur anonyme

12 avr. 2012

In case of such large lists, better way is to sort one of the list and perform binary search of elements in list 2.