所需要的包:
junit需要是4.5以上
org.springframework.test-XXX.RELEASE.jar
package test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
i...
分类:
编程语言 时间:
2014-05-15 04:21:45
阅读次数:
357
Call back function easily implement
#include
void HelloWorld(int nIndex)
{
printf("%d person say Hello World\n",nIndex);
}
void MyName(int len)
{
printf...
分类:
其他好文 时间:
2014-05-15 04:21:05
阅读次数:
270
题意:判断一个链表中是否有环
思路:快慢指针,如果有环,最终快慢指针会在非NULL相遇
注:用到fast->next前先要确保fast非NULL,要用fast->next->next前先要确保fast,fast->next非NULL
复杂度:时间O(n), 空间O(1)
相关题目:Linked List CycleII...
分类:
其他好文 时间:
2014-05-15 07:01:57
阅读次数:
219
??在上个月微软发布了Windows 8.1更新(KB2919355),如果大家使用的是Windows 8.1的系统,并且启用了自动更新,那这个更新就会被自动安装。伴随着这个更新,微软同时宣布从一个月以后(即5月中旬)开始,所有Windows 8.1系统只有在安装了这个更新(KB2919355)以后才能获得其他的后续更新。今天微软发表了最新的声明,表示虽然大多数Windows 8.1用户已经通过自...
1.找到资源,复制到如下文件夹下:
config文件夹复制到C:\Windows\System32\inetsrv\config文件夹下
inetpub文件夹复制C:\inetpub文件夹下
能替换的替换,不能替换的跳过
重新打开intenet信息服务(IIS)管理器,里面就能看到Default Web site了。
此时,在浏览器输入:http://127.0.0.1,有可能还会提示4...
Decorator模式(别名Wrapper):动态将职责附加到对象上,若要扩展功能,装饰者提供了比继承更具弹性的代替方案。...
分类:
编程语言 时间:
2014-05-15 05:45:34
阅读次数:
319
题意:中序遍历
思路:采用递归实现。因为函数声明是返回一个vector,所以每个子树返回的是该子树的中序遍历的结果
按照 左、根、右的次序把根和左右子树的vector合并起来就可以了...
分类:
其他好文 时间:
2014-05-15 06:21:09
阅读次数:
255
代码创建:
1、appdelegate 把contoller放到跟controller下
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWi...
分类:
移动开发 时间:
2014-05-15 14:57:06
阅读次数:
456
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Binary Tree Preorder Traversal
Total Accepted: 17948 Total
Submissions: 51578
Given a binary tree, return the preorder tra...
分类:
其他好文 时间:
2014-05-15 04:37:26
阅读次数:
283
题目
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer...
分类:
其他好文 时间:
2014-05-15 03:41:11
阅读次数:
257