摘要: 1 """ 2 BFS遍历题,一遍AC 3 Given the root of a binary tree, the level of its root is 1, the level of its children is 2, and so on. 4 Return the smallest le 阅读全文
posted @ 2020-02-10 15:35 yawenw 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given an N x N grid containing only values 0 and 1, where 0 represents water and 1 represents land, find a water cell such that its distance t 阅读全文
posted @ 2020-02-10 15:32 yawenw 阅读(182) 评论(0) 推荐(0) 编辑