Youaregivenamapinformofatwo-dimensionalintegergridwhere1representslandand0representswater.Gridcellsareconnectedhorizontally/vertically(notdiagonally).Thegridiscompletelysurroundedbywater,andthereisexactlyoneisland(i.e.,oneormoreconnectedlandcells).Theisland..
分类:
编程语言 时间:
2017-01-09 00:48:36
阅读次数:
396