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

 

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

Given an array of ints, return the average calculated without the extremes (max and min). This means if the min or max appears multiple times, they will never be used.


centerAverage2([1, 1, 1, 3, 3, 4, 4]) → 3
centerAverage2([1, 4, 1, 4, 3, 3, 3]) → 3
centerAverage2([-4, 2, 3, 2, 3, 4, 4, 100]) → 3

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

public int centerAverage2( 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: 200

Copyright Nick Parlante 2017 - privacy