Even i completed it :). It was from one of the coding challenges...
public class Hill {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Integer[] l = new Integer[] {15,5, 4, 3, 2, 8};
hill(l);
}
public static void hill(Integer[] l) {
int max = 0;
f
I just stumbled upon this one (I know, a little late). At least this
way... it's too late to be helpful if it was a Homework assignent. :-)
This is one of those problems that, at first, appears difficult, but ,
upon closer inspection, turns out to have a very straight forward
(elegant?) s