about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy