Zillow Interview Question

​// Make a simple function that returns the minimum value of 0 or more integers. Without using builtins such as Math.min(), etc. // example: [6, 2, 33, -3, 3, 6, 10, -1] should return -3

Interview Answer

Anonymous

Nov 5, 2018

simple loop that keeps track of min value... just brute force would give O(N) time and O(1) space