Frage im Vorstellungsgespräch bei Meta

Basic data structure based coding problem. Had to solve the problem and discuss runtime and optimizations using another data structure.

Antwort im Vorstellungsgespräch

Anonym

10. März 2016

I first did it using iterating through a list. Later used binary search tree to optimize it.