an algorithm to find the average of the numbers in a linked list of numbers
1
Expert's answer
2012-04-12T09:43:45-0400
To find the average of numbers in a linked list you should calculate the total number of this numbers (N), calculate the sum of all this numbers (Sum). So the expected value is Sum / N.
Comments
Leave a comment