摘要:
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 histogram. Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3].The largest rectangle is shown in the shaded area, which ha 阅读全文
posted @ 2013-10-06 02:04
懒猫欣
阅读(161)
评论(0)
推荐(0)
摘要:
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For example, givens = "leetcode",dict = ["leet", "code"].Return true because "leetcode" can be segmented as "l 阅读全文
posted @ 2013-10-06 00:40
懒猫欣
阅读(283)
评论(0)
推荐(0)
浙公网安备 33010602011771号