Pergunta de entrevista da empresa Zycus

1.Write a java code to find the second minimum element in an array using single loop.

Resposta da entrevista

Sigiloso

24 de ago. de 2015

public int returnMinArr(int[] a){ int low = a[0]; int scndMin = 0; for(int i=1; ilow){ scndMin = a[i]; } } return scndMin; }

4