Write a method anagram(s,t) to decide if two strings are anagrams or not.ExampleGiven s="abcd", t="dcab", return trueO(N)time, O(1) space 1 public cla...
分类:
其他好文 时间:
2015-04-15 07:12:54
阅读次数:
104
Spring Bean Scope In Spring, bean scope is used to decide which type of bean instance should be return from Spring container back to the caller. 5 types of bean scopes supported : singleton – Retu...
分类:
编程语言 时间:
2015-04-08 20:06:36
阅读次数:
187
我们的身边是不是有这样的一群人,他们心肠不坏,容易感伤,但吐槽似乎是常有的事情,看着时下电视电影,说起哪些哪些自己的泪点。一般都是吃货,别人失眠的时候,TA可能在回忆自己刚做了什么梦。我不是要去评论这样的人,因为我也是那样的人,听歌都能听哭的男生,无所谓好坏,这只是人的一种形态。 我们的身边是不是....
分类:
其他好文 时间:
2015-04-07 23:18:08
阅读次数:
268
工厂模式的英文原文是:Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory method lets a class defer instantiation to subclass. 意思是定义一个用于创建对象的接口,让子类决定实例化哪一个类,...
分类:
其他好文 时间:
2015-04-04 15:20:19
阅读次数:
156
2002. Feeding Time
Constraints
Time Limit: 1 secs, Memory Limit: 292.96875 MB
Description
It's Bessie's feeding time, and Farmer John is trying to decide where to put her. FJ has a f...
分类:
其他好文 时间:
2015-03-30 09:18:39
阅读次数:
157
1. HTML5 History
HTML4.01 – 1999.12
HTML5 – 2014.10 – Done (8 years)
In 2006, WHATWG&W3C, decide to create a new version of HTMLIn 2008, the first draft has been published.In 2012, Make s...
分类:
Web程序 时间:
2015-03-17 12:26:38
阅读次数:
275
Other API Best Practices: API Management Rewriting History with Git Rebase .NET Announcing Microsoft.IO.RecycableMemoryStream Web How I Decide which W...
分类:
其他好文 时间:
2015-03-03 11:15:14
阅读次数:
116
Barbarian tribesIn a lost land two primitive tribes coexist: Gareds and Kekas. Every summer solstice they meet and compete to decide which tribe will....
分类:
其他好文 时间:
2015-02-28 12:48:04
阅读次数:
163
一、GCD VS NSOperation and NSOperationQueue Here’s a quick comparison of the two that will help you decide when and where to use GCD or NSOperation and NSOperationQueue:
GCD is a lightweight way to repres...
分类:
其他好文 时间:
2015-02-27 20:17:41
阅读次数:
273
IntersectionTime Limit:1000MSMemory Limit:10000KTotal Submissions:12162Accepted:3157DescriptionYou are to write a program that has to decide whether a...
分类:
其他好文 时间:
2015-02-17 08:08:00
阅读次数:
152