Company: Ernst & Young-5 years Senior java developer_31may
Difficulty: medium
Set the stage and introduce the problem. Try to stay away from introducing variable names as this is the "story". e.g. Prefer "There is a line of football fans of various heights." versus "There is a line of fans with heights[0], heights[1],... heights[n-1] where each fan of height[i] where 0 ≤ i < n. Variables mixed in disrupts the flow. Tell the goal. Create an example. This needs to be good, not throw-away simple. This is where variables are introduced. e.g. In the first paragraph you mention that there are a number of people lined up and they each have a height. Here you might say "Given n = 5 fans of heights[1,1,1,1,1], the shortest fan has a height of 1." Function Description Complete the function functionName in the editor below. The function must state what must be returned or printed. functionName has the following parameter(s): numbers[numbers[0],...,numbers[n-1]]: an array of integers Constraints TODO: ADD_CONSTRAINT_HERE TODO: ADD_CO