CodeWorkout - X51-X60 - More Arrays

Score: 0 / 10.0


Exercises

0 / 1.0

Given an integer array length of 1 or more, return the difference between the largest and smallest values in the array. Note that the...

0 / 1.0

Return the centered average of an array of ints, which we'll say is the mean average of the values, except ignoring the largest and...

0 / 1.0

Given a number n, create and return a new int array of length n, containing the numbers 0, 1, 2, ... n-1. The given n may be 0, in which...

0 / 1.0

Given a number n, create and return a new string array of length n, containing the strings "0", "1" "2" .. through n-1. N may be 0, in...

0 / 1.0

Given an array of ints, return true if the array does not contain any 1s or 3s. Otherwise, return false.

0 / 1.0

Given an array of ints, return true if the sum of all the 2's in the array is exactly 8.

0 / 1.0

Given an array of ints, return true if the number of 1s is greater than the number of 4s. Otherwise, return false.

0 / 1.0

Given an array of ints, return true if every element is either a 1 or a 4. Otherwise, return false.

0 / 1.0

Consider the series of numbers beginning at start and running up to but not including end, so for example start=1 and end=5 gives the...