Argo Data Interview Question

Write code to find the smallest number in an array.

Interview Answers

Anonymous

Oct 22, 2015

this answer is wrong if(small>array[idx])

2

Anonymous

Mar 8, 2015

small = array [0] for (int idx = 1; idx < array.length; idx ++){ if (small < array [idx]) small = array [idx] }

1