2016年6月13日

Largest Rectangle in Histogram

摘要: 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 @ 2016-06-13 21:54 Sheryl Wang 阅读(219) 评论(0) 推荐(0) 编辑

Number of Islands

摘要: Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen 阅读全文

posted @ 2016-06-13 11:47 Sheryl Wang 阅读(213) 评论(0) 推荐(0) 编辑

House Robber II

摘要: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so tha 阅读全文

posted @ 2016-06-13 11:14 Sheryl Wang 阅读(103) 评论(0) 推荐(0) 编辑

House Robber

摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文

posted @ 2016-06-13 10:13 Sheryl Wang 阅读(142) 评论(0) 推荐(0) 编辑

导航