
Given an array of integers, calculate the average of all elements. Determine if that average value exists within the original array. Note: For this problem, if the average is not an integer, it is considered not present in the array.
Explanation: The sum is 1+2+3+4+5 = 15. The average is 15/5 = 3. 3 is present in the array.
Explanation: The sum is 10+20 = 30. The average is 30/2 = 15. 15 is not present in the array.
Access the full code editor, ThinkBuddy AI hints, and track your progress.