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

 

tmhscs@gmail.com streams > list_removeAudioOutliers
prev  |  next  |  chance

Given a list of doubles that represent audio volume peaks, remove entries that are quieter than 5.0 or louder than 10.0.


list_removeAudioOutliers([4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0]) → [5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
list_removeAudioOutliers([1.0, 5.0, 10.0, 15.0]) → [5.0, 10.0]
list_removeAudioOutliers([2.5, 3.5, 4.5, 5.5, 6.5]) → [5.5, 6.5]

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

public List<Double> list_removeAudioOutliers(List<Double> data) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy