参考:http://blog.sina.com.cn/s/blog_4c451e0e01013419.htmlhttp://blog.csdn.net/voidcc/article/details/25834331http://www.cnblogs.com/Realh/archive/2010/1...
分类:
编程语言 时间:
2014-06-02 16:50:08
阅读次数:
356
一、函数指针
//
// main.c
// L01Helloc
//
// Created by zj on 14-6-1.
// Copyright (c) 2014年 zj. All rights reserved.
//
#include
void sayHello(){
printf("Helloc C\n");
}
void sayHello1(int i){...
分类:
其他好文 时间:
2014-06-01 15:48:23
阅读次数:
261
【题目】
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST's shown below.
1 3 3 2 1
\ / / / \ ...
分类:
其他好文 时间:
2014-06-01 15:33:45
阅读次数:
297
H:/0730/00_多线程4种售票_ViewController.h//
// ViewController.h
// 卖票
//
// Created by apple on 13-7-29.
// Copyright (c) 2013年 itcast. All rights reserved.
//
#import
@interface ViewController : UIV...
分类:
移动开发 时间:
2014-06-01 15:05:19
阅读次数:
397
问题:
Given a collection of numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2],
and [3,2,1].
分析:
...
分类:
其他好文 时间:
2014-06-01 15:04:42
阅读次数:
259
1. 创建Python程序欢迎来到Python世界!本系列文章告诉你怎么样编写Python程序。Python只是一种文本文件,跟普通文本文件是一样的,只不过这种文本文件不但可以看,还可以在Python环境里运行。你可以使用一种标准的文本编辑器来编辑它。至于你想使用什么样的文本编辑器,依赖你所使用的电脑系统拥有的文本编辑器了。当然,你想提高效率和更加方便地编写,使用一个带Python语法高亮显示的文...
分类:
编程语言 时间:
2014-06-01 14:48:41
阅读次数:
332
问题:
Given a collection of numbers that might contain duplicates, return all possible unique permutations.
For example,
[1,1,2] have the following unique permutations:
[1,1,2], [1,2,1],
and...
分类:
其他好文 时间:
2014-06-01 13:03:12
阅读次数:
324
【题目】
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
For example:
Given "25525511135",
return ["255.255.11.135", "255.255.111.35"]. (Order does not matter)
【题意】
给定一个字符串,恢复并返回所有符合条件的IP串
【思路】...
分类:
其他好文 时间:
2014-06-01 13:01:56
阅读次数:
295
题目:
给定一个字符串S,一个字符串数组L,找出S中所有这样的子串起点,该子串包含L中的所有元素。
说明:
1)L中存在重复的元素
2)子串不允许间断,即子串从开始到找全L中的所有元素之前,子串中不允许包含L以外的东西,而且,即使当前处理的子串是L中含有的,但是前面已经找够了,这个多余的也是不合法的,若此时还有L中的其他元素没找到,从这个起点开始也是不成功的。
3)L在S中出现的...
分类:
其他好文 时间:
2014-06-01 12:54:53
阅读次数:
192
Remove ElementGiven an array and a value,
remove all instances of that value in place and return the new length.The order
of elements can be changed. ...
分类:
其他好文 时间:
2014-06-01 12:29:11
阅读次数:
190