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

 

threshold


Return an integer array containing only the values from the input array that are larger than the threshold value. The relative order of the values should not be changed.


threshold([1, 2, 3, 4, 5], 3) → [4, 5]
threshold([5, 4, 3, 2], 0) → [5, 4, 3, 2]
threshold([20, 1, 19, 3, 22, 4], 15) → [20, 19, 22]

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

public int[] threshold(int[] nums, int threshold) { }

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

Copyright Nick Parlante 2017 - privacy