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

 

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

Find the minimum positive element in a give array of integers. If doesn't exist - return 404


indexPos([3, 4, -4]) → 3
indexPos([8, 9, 8, 32]) → 8
indexPos([-5, 2, 3, 3]) → 2

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

public int indexPos( int [ ] vals) { }

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