Isomorphic Strings
Given two strings s and t, determine if they are isomorphic.
Two strings are isomorphic if the characters in s can be replaced to get t.
All occurrences of a charact...
分类:
其他好文 时间:
2015-07-26 21:04:12
阅读次数:
137
DescriptionIn this problem, you are given an integer number s. You can transform any integer number A to another integer number B by adding x to A. Th...
分类:
其他好文 时间:
2015-07-26 20:53:56
阅读次数:
134
Problem DescriptionThere is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 2 # include 3 # include 4 # i....
分类:
其他好文 时间:
2015-07-26 20:45:55
阅读次数:
129
有意思的一段代码: 1 %%% Message passing utility. 2 %%% User interface: 3 %%% logon(Name) 4 %%% One user at a time can log in from each Erlang node in ...
分类:
其他好文 时间:
2015-07-26 20:42:07
阅读次数:
127
DescriptionMike has many friends. Here are nine of them: Alice, Bob, Carol, Dave, Eve, Frank, Gloria, Henry and Irene.Mike is so skillful that he can ...
分类:
其他好文 时间:
2015-07-26 19:00:34
阅读次数:
124
Description :BackgroundHugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who t...
分类:
其他好文 时间:
2015-07-26 18:49:53
阅读次数:
131
Some said Live View could only boot up images acquired from 32bit OS evidence. I have to say that it's not true. Ok, the best way to prove it is let t...
分类:
其他好文 时间:
2015-07-26 17:14:52
阅读次数:
159
题目:Given an arraynums, there is a sliding window of sizekwhich is moving from the very left of the array to the very right. You can only see theknumbe...
问题描述Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.F...
分类:
其他好文 时间:
2015-07-26 17:01:39
阅读次数:
89
Bridge Pattern
Decouple an abstraction from its implementation so that the two can vary independently.(将抽象和实现解耦,使得倆者可以独立的变化)
例子
"天下熙熙,皆为利来;天下攘攘,皆为利往" 现实和结构分开
服装公司 ="服装"+"公司" ="服装公司"
解耦之前...
分类:
其他好文 时间:
2015-07-26 12:46:51
阅读次数:
124