Empleador activo
Find the first and second maximum of an array in one loop
Anónimo
I gave them the code
int max=arr[0]; int smax=max; int flag=0; for(int i=0;imax){ flag=1; } if(flag==1) { smax=max; max=arr[i]; flag=0; } }
Sigue a tus empresas favoritas para estar al tanto de las últimas oportunidades y disponer de información desde adentro.
Recibe recomendaciones y actualizaciones personalizadas al iniciar tu búsqueda.