Essa empresa é sua?
Find the second smallest element in an array.
Sigiloso
Went with two variables which mainted the current least two elements and then returned the second lease. Took care of edge cases like <2 elements.
Arrays.sort(arr); arr[length-1] would do this
Fique por dentro de todas as oportunidades e dicas internas seguindo as empresas de seus sonhos.
Comece a buscar vagas para receber atualizações e recomendações personalizadas.