摘要:
Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1="aabcc",s2="dbbca",Whens3="aadbbcbcac", return true.Whens3="... 阅读全文
posted @ 2014-06-29 17:22
Awy
阅读(146)
评论(0)
推荐(0)
摘要:
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest... 阅读全文
posted @ 2014-06-29 15:03
Awy
阅读(108)
评论(0)
推荐(0)
摘要:
建造者模式(Builder),将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示。 建造者模式结构图: Builder是为创建一个Product对象的各个部件指定的抽象接口;ConcreteBuilder是具体建造者,实现Builder接口,构建和装配各个部件;Produc... 阅读全文
posted @ 2014-06-29 09:39
Awy
阅读(208)
评论(0)
推荐(0)
摘要:
外观模式(Facade),为子系统中的一组接口提供一个一致的界面,此模式定义了一个高层接口,这个接口使得这一子系统更加容易使用。 外观模式结构图:代码模板://四个子系统的类class SubSystemOne{public: void MethodOne() { cout MethodOne();... 阅读全文
posted @ 2014-06-29 00:23
Awy
阅读(316)
评论(0)
推荐(0)

浙公网安备 33010602011771号