2015年6月2日

摘要: 题目:Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1="aabcc",s2="dbbca",Whens3="aadbbcbcac", return true.Whens... 阅读全文
posted @ 2015-06-02 19:13 承续缘 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2015-06-02 14:18 承续缘 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.代码:class Solution {public: ... 阅读全文
posted @ 2015-06-02 10:49 承续缘 阅读(267) 评论(0) 推荐(0) 编辑

导航