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

 

norm.krumpe@muohio.edu arrays274 > onlySmall
prev  |  next  |  chance

Given an array, return a new array consisting of only the numbers from the given array that are less than 10.


onlySmall([10, 2, 13, 4, 75, 2]) → [2, 4, 2]
onlySmall([0, 6, 7]) → [0, 6, 7]
onlySmall([11, 35, 50]) → []

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

int[] onlySmall(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: 250

Copyright Nick Parlante 2017 - privacy