Goldman Sachs Interview Question
636 Interview Reviews |
Back to all Goldman Sachs Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Senior Software Engineer at Goldman Sachs:
How do you calculate weighted averages?
See more for this Goldman Sachs Senior Software Engineer Interview
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (2)
0 of 1 people found this helpful
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up



0 of 0 people found this helpful
by blue:
totalWeight = 0
for each element:
totalValue += element.value * element.weight
totalWeigth += element.weight
print "Average=" + (totalValue / totalWeight)