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

 

minPositive


Given an int array of mixed values, find the minimum of the positive values. Precondition: element at position 0 is positive!


minPositive([3, -2, 6, 9, -2, -3, 0]) → 3
minPositive([5, 3, 4, -1]) → 3
minPositive([4, -7, -8, -6]) → 4

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

public int minPositive( 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 Post-solution available

Copyright Nick Parlante 2017 - privacy