摘要: Smallest Rectangle Enclosing Black Pixels 要点:记题:这题有两个限制条件:所有black pixel是连通的(所以可以用binary search)以及给了一个black pixel。 错误理解:给定black pixel所在行/列的top/down/lef 阅读全文
posted @ 2016-07-17 20:07 absolute100 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Longest Consecutive Sequence 简单题,只要单向递增的 错误点: +1,不是 = 注意是top.left, top.right, 不是root.left, root.right:debug log:打印每层root.val和当前curlen http 阅读全文
posted @ 2016-07-17 20:06 absolute100 阅读(116) 评论(0) 推荐(0) 编辑