Nextlabs Interview Question

1. Implement the following function: int findMax(int[] items) { }

Interview Answer

Anonymous

Jan 12, 2012

int findMax(int[] items) { int maxValue = items[0]; for(int i=1;i maxValue){ maxValue = items[i]; } } system.out.println(maxValu); }