3. leetcode 463 Island Perimeter

 

 

思路:设原始周长为4*节点数,每当出现一次相邻的情况,原始周长会减2。

 

posted @ 2017-04-09 21:18  蓦然闻声  阅读(110)  评论(0)    收藏  举报