摘要: Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Example 2: Note: You may assume the tree (i.e., the given root no 阅读全文
posted @ 2017-02-23 22:14 Tsunami_lj 阅读(113) 评论(0) 推荐(0) 编辑
摘要: You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the w 阅读全文
posted @ 2017-02-23 18:13 Tsunami_lj 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, given the following 阅读全文
posted @ 2017-02-23 16:15 Tsunami_lj 阅读(120) 评论(0) 推荐(0) 编辑