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

 

sspiege3@schools.nyc.gov > minPositive2
prev  |  next  |  chance

Given an int array of mixed values, find the minimum of the positive values. The first positive value can appear in any position! Pre-condition: There is at least one positive value in the array:


minPositive2([3, -2, 1, 9, -2, -3, 0]) → 1
minPositive2([5, 3, 4, -1]) → 3
minPositive2([-2, -3, -4, 99, 8]) → 8

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

public int minPositive2( 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