M14: CodeWorkout (7)

Score: 0 / 14.0

arrays, loops, conditionals


Exercises

0 / 2.0

Given an array of ints, return true if the array contains two 7s next to each other, or there are two 7s separated by one element, such...

0 / 2.0

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

0 / 2.0

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