之前听朋友说LeetCode出了一道新题,但是一直在TLE,我就找时间做了一下.这题是一个比较典型的BFS的题目,自己匆忙写了一个答案,没有考虑优化的问题,应该是有更好的解法的. 原题如下: You want to build a house on an empty land which reaches all buildings in the shortest amount of distance. You can only move up, down, left and right. You…