Find the average of values in an array accounting for integer overflow
Anonymous
Divide each number by length of array, then sum up. If the largest number in array does not overflow, neither will this sum at any point during its computation.
Check out your Company Bowl for anonymous work chats.