摘要: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist 阅读全文
posted @ 2018-10-10 08:22 jasminemzy 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Input: 1 0 1 0 0 1 0 1 1 1 阅读全文
posted @ 2018-10-10 03:43 jasminemzy 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Given the head of a graph, return a deep copy (clone) of the graph. Each node in the graph contains a label (int) and a list (List[UndirectedGraphNode 阅读全文
posted @ 2018-10-10 02:39 jasminemzy 阅读(194) 评论(0) 推荐(0) 编辑