DescriptionGeorgia and Bob decide to play a self-invented game. They draw a row of grids on paper, number the grids from left to right by 1, 2, 3, …, and place N chessmen on different grids, as shown i...
分类:
其他好文 时间:
2015-08-01 17:21:22
阅读次数:
114
Description
Alice and Bob decide to play a funny game. At the beginning of the game they pick n(1 <= n <= 10
6) coins in a circle, as Figure 1 shows. A move consists in removing one or two adjacen...
分类:
其他好文 时间:
2015-07-31 18:33:26
阅读次数:
118
Define an interface for creating on object, but let subclasses decide which class to instantiate Factory Method lets a class defer instantiation to subclasses.
定义一个用于创建对象的接口,让子类决定实例化哪一类。
抽象产品类Pr...
分类:
其他好文 时间:
2015-07-18 14:13:34
阅读次数:
149
1.3 Given two strings, write a method to decide if one is a permutation of the other.这道题给定我们两个字符串,让我们判断一个是否为另一个的全排列字符串。在LeetCode中,关于排列的题有如下几道,Permutat...
分类:
其他好文 时间:
2015-07-16 09:36:18
阅读次数:
138
Learn about the differences between ASP.NET MVC application and ASP.NET Web Forms applications. Learn how to decide when to build an ASP.NET MVC appli...
分类:
Web程序 时间:
2015-07-16 09:32:20
阅读次数:
139
DescriptionAlice and Bob decide to play a new stone game.At the beginning of the game they pick n(1#include#includeusing namespace std;int n,a[11];int...
分类:
其他好文 时间:
2015-07-15 22:10:37
阅读次数:
131
A New Stone GameTime Limit: 1000MS Memory Limit: 30000K
Total Submissions: 5113 Accepted: 2806 Description
Alice and Bob decide to play a new stone game.At the beginning of the game they pick...
分类:
其他好文 时间:
2015-07-11 12:15:02
阅读次数:
165
工厂方法模式(Factory method pattern)flyfish 2015-7-4工厂方法模式正式定义 - 引用《HeadFirst 设计模式》
Define an interface for creating an object,but let subclasses decide
which class to instantiate.Factory Method lets a...
分类:
其他好文 时间:
2015-07-04 19:47:55
阅读次数:
149
1.定义Define an interface for creating an object,but let subclasses decide which class to instantiate.Factory method let a class defer instantiation to ...
分类:
其他好文 时间:
2015-06-30 01:23:32
阅读次数:
222