Domanda di colloquio di Google

I was asked about analyzing the time complexity for a program after coding it