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

 

jgreenawalt@ccboe.com initials > wheresWee
prev  |  next  |  chance

Given an array of ints, find the position of the smallest value. If more than one value ties for the smallest number, return the smallest minimum position. If the array is empty return -1;


wheresWee([3, 5, 1, 8]) → 2
wheresWee([]) → -1
wheresWee([-4, -5, -6]) → 2

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

public int wheresWee(int [] nums){ }

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