Google Interview Question
1,227 Interview Reviews |
Back to all Google Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Google:
You have a n number of cities. Lets say city 1 has some information that needs to be sent to all other n-1 cities using minimal cost. Cost between each pair of cities is given. any number of cities can transmit the information once they receive the information but the overall total cost should be minimum
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (5)
4 of 6 people found this helpful
Helpful Answer?
Yes |
No
Inappropriate?
Helpful Answer?
Yes |
No
Inappropriate?
Helpful Answer?
Yes |
No
Inappropriate?
@Anonymous: "any number of cities can transmit the information once they receive the information but the overall total cost should be minimum"
that doesn't mean they can transmit the information once, they can transmit it once they receive it!
The fact that the total cost should be minimum definitely point to an MST.
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up
1 of 5 people found this helpful
by candidate: