Domanda di colloquio di Uber

Standard Algorithms questions. Reading Crack the Coding Interview really helps.