#include
int *mp_sort(int *a,int len)//冒泡排序
{
if(a== NULL|| len <= 0)
return NULL;
int i = 1, j = 1;
for (i; i < len - 1;++i)
for (j = 0; j a[j + 1])
...
分类:
编程语言 时间:
2015-06-15 16:23:19
阅读次数:
132
Description:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra...
分类:
其他好文 时间:
2015-06-15 16:16:28
阅读次数:
128
Description:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were in...
分类:
其他好文 时间:
2015-06-15 16:14:20
阅读次数:
106
支付宝集成——如何在回调地址中使用自定义参数来源http://www.solagirl.net/use-custom-para-in-alipay-return-url.html2012 年 8 月 15 日By Sola支付宝集成时,有同步返回地址return_url和异步通知地址notify_u...
分类:
其他好文 时间:
2015-06-15 16:06:39
阅读次数:
1715
Given a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges.For example, given [0, 1, 3, 50, 75], lower = 0 and upper = 99, return ["2", "4->49", "...
分类:
其他好文 时间:
2015-06-15 13:09:51
阅读次数:
153
实现三个代理方法即可-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath { return @"删除"...
分类:
其他好文 时间:
2015-06-15 12:55:38
阅读次数:
98
MVC 使用Jquery实现AJaxClick Mepublic ActionResult GetTime(){ return Content(DateTime.Now.ToString());} //删除 function DeleteAll(id) { //if ($(...
分类:
Web程序 时间:
2015-06-15 12:49:01
阅读次数:
197
换行符‘\n’和回车符‘\r’顾名思义,换行符就是另起一行,回车符就是回到一行的开头,所以我们平时编写文件的回车符应该确切来说叫做回车换行符'\n' 10 换行(newline)'\r' 13 回车(return) 也可以表示为'\x0a'和'\x0d'.(16进制)在windows系统下,回车换行...
分类:
编程语言 时间:
2015-06-15 12:46:43
阅读次数:
127
//获取视口的高度和宽度。function windowHeight() {var de = document.documentElement;return self.innerHeight||(de && de.offsetHeight)||document.body.offsetHeight;}...
分类:
编程语言 时间:
2015-06-15 12:42:53
阅读次数:
293
有两种方法 第一种,在init里面抛出异常,定义私有的init -?(instancetype)init?{
????[self?doesNotRecognizeSelector:_cmd];
????return?nil;
}
-?(instancetype)initPrivate?{
????self?=...
分类:
其他好文 时间:
2015-06-15 11:30:13
阅读次数:
124