id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

dario.sonego@gmail.com esercicci_array > posMin
prev  |  next  |  chance

Trovare la posizione dell'elemento più piccolo di un array di double.
Se l'array è vuoto, la funzione restituisce il valore -1.
Se uno stesso valore minimo appare in più posizioni, si restituisce la prima posizione.


posMin([]) → -1
posMin([15.32, 12.5, 18]) → 1
posMin([20.5, -2.3, -2.7, -2.8]) → 3

...Save, Compile, Run (ctrl-enter)

int posMin(double[] temps) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy