摘要: Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as s 阅读全文
posted @ 2017-07-20 19:34 panini 阅读(210) 评论(0) 推荐(0)
摘要: 题目: Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia:In a complete binary tree every level 阅读全文
posted @ 2017-07-20 11:06 panini 阅读(228) 评论(0) 推荐(0)
摘要: 题目: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given the following 阅读全文
posted @ 2017-07-20 10:21 panini 阅读(238) 评论(0) 推荐(0)