Interview Question
0of 0 votesThere is a lake, some hills and a dam. Also all these are at some heights (heights may/may not be same) which are also present. Hills numbered 0-9 (assuming for heights).
You can increase or decrease the heights of the hills and dam but not the river. The problem is to find the least cost to make a path from the lake to the dam through the hills. Also, height of A >= height of B for the water to flow.
Country: India
Finding MST in a Directed Graph..:). The height clause would lead to the graph being directed.

Here's the complete problem, previously posted on CareerCup and from an old coding competition (don't worry, it's long over): careercup . com / question?id=13597689
- Anonymous on August 11, 2012 Edit | Flag Reply