Given a string which contains only letters. Sort it by lower case first and upper case second.NoteIt's not necessary to keep the original order of low...
分类:
其他好文 时间:
2015-04-06 10:04:22
阅读次数:
225
void temp(int *l,int i,int j){ int t=l[i]; l[i]=l[j]; l[j]=t; }int partition(int *l,int low,int high){ int privotkey=l[low]; whi...
分类:
编程语言 时间:
2015-04-05 23:17:59
阅读次数:
211
1、顺序存储//List.h#ifndef LIST_H_#define LIST_H_#define MAXSIZE 100typedef struct _Poly{ int a; int n; bool operator == (_Poly e) { if ...
分类:
其他好文 时间:
2015-04-05 11:47:32
阅读次数:
149
#include<stdio.h>#include<stdlib.h>#defineERROR-1typedefstructlist{ doublecoef; intexpn; structlist*next;}polyn;polyn*creatpolyn(polyn*p,intm){ p=(polyn*)malloc(sizeof(polyn)); p->next=NULL; while(m--){ polyn*temp=(polyn*)malloc(sizeof(poly..
分类:
编程语言 时间:
2015-04-04 19:49:48
阅读次数:
227
public int threeSumClosest(int[] num, int target) { //int d = 0; if(num==null || num.length0) low++; if(M...
分类:
其他好文 时间:
2015-04-04 09:03:29
阅读次数:
115
打开EBS的form,系统报错,中文提示信息是:FRM-92095:oracle jinitiator版本太旧,请安装版本1.1.8.2或更高版本;如果是英文环境,则会报错:FRM-92095: Oracle JInitiator version too low. Please install ve...
分类:
数据库 时间:
2015-04-03 15:05:14
阅读次数:
212
//分治算法研究var cc=consolefunction find_max_crossing_subarray(A,low,mid,high){ var max_left=mid,max_right=mid var left_sum=0 var sum=0 for(var i=mid;i>=lo...
分类:
编程语言 时间:
2015-04-03 14:57:30
阅读次数:
130
//分治算法研究 搜索数组中的最长连续递增子集var cc=consolefunction find_max_crossing_lenarray(A,low,mid,high){ var max_left=mid,max_right=mid var left_sum=1 var sum=0 for(...
分类:
编程语言 时间:
2015-04-03 14:42:30
阅读次数:
136
最近同样是新App,设计稿里出现一种圆形进度条的设计,如下:想了想,圆形进度条实现起来不难,但是其中显示百分比的文本确需要自适应,虽然可以使用时自己设定文本字体的大小,但是这样显得很麻烦,也很low。查了一圈,目前实现的自适应UILabel,都是根据font大小动态调整frame的size,并不能满...
分类:
移动开发 时间:
2015-04-01 17:00:43
阅读次数:
263
谷歌于13年7月25日正式发布Android 4.3 操作系统,支持Bluetooth 4.0,搭载Bluetooth Low Energy/BLE技术。根据谷歌官网,SDK提供的demo开发,一共有一下几个步骤:1、初始化BLE2、搜索BLE设备3、连接支持通用属性协议的设备4、读取BLE属性5、...
分类:
其他好文 时间:
2015-03-30 20:35:03
阅读次数:
150