摘要:
bfs,同时使用队列。对比dfs,使用栈。 from collections import deque def land(matrix): length=len(matrix) #数组行数 width=len(matrix[0]) #数组列数 re=[[0 for _ in range(width) 阅读全文
posted @ 2021-08-16 17:15
footmark89
阅读(43)
评论(0)
推荐(0)
浙公网安备 33010602011771号