Frage im Vorstellungsgespräch bei Palantir Technologies

Find the max difference in an array

Antwort im Vorstellungsgespräch

Anonym

23. Nov. 2012

Calculate min and max in theta(n) time, and return max-min in constant time.