Question d’entretien chez Amazon

Two programming questions (data structure and algorithm)