阅读背景:

访谈:找到通往少数元素的最短路径

来源:互联网 

There is a museum organized as NxN room. Some rooms are locked and inaccessible. Other rooms are open and some rooms have guards. Guards can only move north, south, east and west, only through open rooms and only within the museum. For each room, find the shortest distance to a guard. What is the time complexity of your algorithm?There is a museum organized as NxN room. Some r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: