Questa è la tua azienda?
Find the smallest value in an integer array without sorting it. Assume that there is no Array.min() method. Sample input: {0, 1, 2, -50, 100, 0}
Anonimo
A = input I = A[0] for x in A[1:]: If x < I: I = x print I
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.