nagato1208 / nagato1208.github.io

For my blog
2 stars 0 forks source link

leetcode-1168 Optimize Water Distribution in a Village | Nagato's blog #42

Open nagato1208 opened 5 years ago

nagato1208 commented 5 years ago

https://nagato1208.github.io/2019/08/24/leetcode-1168-Optimize-Water-Distribution-in-a-Village/

描述There are n houses in a village. We want to supply water for all the houses by building wells and laying pipes. For each house i, we can either build a well inside it directly with cost wells[i], or