Question d’entretien chez LightBox

how to search for an elements in a array with minimal time complexity