Sollicitatievraag bij Palantir Technologies

Find the max difference in an array

Antwoord op sollicitatievraag

Anoniem

23 nov 2012

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