[Leetcode] Length of Last Word 解题报告

摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word ... 阅读全文
posted @ 2012-12-24 17:31 小刀初试 阅读(179) 评论(0) 推荐(0)

[LeetCode] 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 @ 2012-12-24 13:43 小刀初试 阅读(185) 评论(0) 推荐(0)

[LeetCode] Jump Game II 解题报告

摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文
posted @ 2012-12-24 07:53 小刀初试 阅读(150) 评论(0) 推荐(0)

[LeetCode] Jump Game 解题报告

摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文
posted @ 2012-12-24 06:40 小刀初试 阅读(189) 评论(0) 推荐(0)

[LeetCode] Interleaving String 解题报告

摘要: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.For example,Given:s1 = "aabcc",s2 = "dbbca",When s3 = "aadbbcbcac", retur... 阅读全文
posted @ 2012-12-24 06:06 小刀初试 阅读(183) 评论(0) 推荐(0)