/*hdr
** Copyright ...
** AUTHOR MichaelMa
** DATE 4-May-2014
** DESCRIPTION implement a mode of observer in C
** NOTE may be some bugs ...
分类:
编程语言 时间:
2014-05-10 09:53:03
阅读次数:
679
#import @interface Car : NSObject{ @public int
speed; int wheels;}// oc方法必须是-开头// oc方法中所有的数据类型必须得用括号括起来//
oc方法中的()就是用来扩住数据类型的-(void)run;@end@implement...
分类:
其他好文 时间:
2014-05-08 12:25:41
阅读次数:
267
LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value
(will always be posi...
分类:
其他好文 时间:
2014-05-07 07:16:21
阅读次数:
316
【题目】
Chapter 1 | Arrays and Strings
原文:
1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures?
译文:
实现一个算法来判断一个字符串中的字符...
分类:
其他好文 时间:
2014-05-07 04:27:41
阅读次数:
312
CareerCup
目录
Chapter 1 | Arrays and Strings
1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures?
1.2 Write co...
分类:
其他好文 时间:
2014-05-07 04:25:44
阅读次数:
320
【Question】
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the p...
分类:
其他好文 时间:
2014-05-07 04:17:18
阅读次数:
259
1 /* 2 长城牌电视机 3 联想奔月5008PC机 4 */ 5 6 7 package st;
8 //接口回调实例 9 interface ShowMessage10 {11 void 显示商标 (String s);12 }13 class TV
implement...
分类:
编程语言 时间:
2014-05-06 12:53:59
阅读次数:
369
原文:TFS
2012使用简介(一)最近,一直想让团队加入敏捷开发,但TFS2010用下来,并不是令人满意,还好,TFS2012横空出世了。相比TFS2010,TFS2012改进太多了,主要体现在以下方面:Team
Web Access优化变更集回滚Ui支持流程优化界面更合理,操作更友好增加了Pow...
分类:
其他好文 时间:
2014-05-06 00:54:22
阅读次数:
447
#include
#include
int main()
{
double k,m;
int T;
scanf("%d",&T);
while(T--)
{
scanf("%lf%lf",&k,&m);
int a=pow(10,log10(m)/k);
while(pow(a+1,k)<=m)
++a;
printf("%d\n",a);
}
return 0;
}...
分类:
其他好文 时间:
2014-05-04 18:44:58
阅读次数:
296
本文出自:http://blog.csdn.net/svitter
题意:汉诺塔,多了一根柱子,问你寻找最快的移动次数。
dp [ n ] = dp [ n - j ] * 2 + pow( 2, j ) - 1;
就是把j个汉诺塔移到一根上,然后就是普通的汉诺塔问题,即2^n - 1次移动。
注意pow(2, j )可能超出long long int范围。写二的次方的时候也可用移...
分类:
其他好文 时间:
2014-05-03 00:14:10
阅读次数:
342