1204 寻找子串位置题目描述Description给出字符串a和字符串b,保证b是a的一个子串,请你输出b在a中第一次出现的位置。输入描述Input Description仅一行包含两个字符串a和b输出描述Output Description仅一行一个整数样例输入Sample Inputabcd ...
分类:
其他好文 时间:
2014-07-24 10:00:03
阅读次数:
177
题目:在字符串中找出第一个只出现一次的字符。如输入"abaccdeff",这输出'b'// 第一个只出现一次的字符#include char first_not_repeat_char(char *s){ int count[256]={0}; char *pkey; if( s=...
分类:
其他好文 时间:
2014-07-24 09:59:53
阅读次数:
200
本文编译方法所支持的hadoop环境是Hadoop-2.2.0,YARN是2.2.0,JAVA版本为1.8.0_11,操作系统Ubuntu14.04Spark1.0.0 源码下载地址:http://mirror.bit.edu.cn/apache/spark/spark-1.0.0/spark-1....
分类:
其他好文 时间:
2014-07-24 09:59:23
阅读次数:
448
// 判断两个单词是否互为变位词: 如果两个单词中的字母相同,并且每个字母出现的次数也相同, 那么这两个单词互为变位词#include #include int is_anagram(char *s1, char *s2) // 判断两个数是否互为变位词, 若是返回1{ if(strlen(s...
分类:
其他好文 时间:
2014-07-24 09:58:53
阅读次数:
176
由于项目需要,用python django写restful接口遇到瓶颈,python django+uwsgi处理请求是会阻塞的,如果阻塞请求不及时处理,会卡住越来越多的其它的请求,导致越来越多的502。所以将请求处理频繁的,会阻塞长时间的接口用lua实现,lua放在nginx里跑,还是很快的。.....
分类:
其他好文 时间:
2014-07-24 09:58:33
阅读次数:
716
// 从第一个字符串中删除第二个字符串中出现过的所有字符#include char* remove_second_from_first( char *first, char *second ){ if( first == NULL || second == NULL ) { ...
分类:
其他好文 时间:
2014-07-24 09:58:23
阅读次数:
163
Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click...
分类:
其他好文 时间:
2014-07-24 09:57:33
阅读次数:
179
RelativeLayout用到的一些重要的属性:第一类:属性值为true或falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中android:layout_centerInparent 相对于父元素完全...
分类:
其他好文 时间:
2014-07-24 09:56:53
阅读次数:
211
/* * 动态分配存储的顺序表 */#include #include #define INIT_SIZE 100#define EXPAND_SIZE 50typedef int ElemType;typedef struct { ElemType *head; int len; //...
分类:
其他好文 时间:
2014-07-24 09:56:34
阅读次数:
172
1.请问c#中如何将十进制数的字符串转化成十六进制数的字符串//十进制转二进制Console.WriteLine("十进制166的二进制表示: "+Convert.ToString(166, 2));//十进制转八进制Console.WriteLine("十进制166的八进制表示: "+Conver...
分类:
其他好文 时间:
2014-07-24 09:56:23
阅读次数:
261
信号组成链接线SPI通信过程主从模式设置相位和级性传输格式设置步骤发送和接收过程
分类:
其他好文 时间:
2014-07-24 09:55:33
阅读次数:
286
一般一个站点会有多个配置文件,如果要针对每个配置文件进行读写,这是要疯的节奏之前学泛型,一直没用到过,在这里练习一下,体会泛型实际对我们减少冗余代码的作用/// /// 站点配置文件的路径 /// public class ConfigPath { /// ...
分类:
其他好文 时间:
2014-07-24 09:55:23
阅读次数:
199
using System;using System.Collections.Generic;using System.Linq;using System.Text;using WindowsFormsApplication3.DataStorge;using WindowsFormsApplicat...
分类:
其他好文 时间:
2014-07-24 09:54:53
阅读次数:
178
12星座处事方法12星座处事方法白羊:随兴所至!金牛:绝不盲目行事。双子:反应迅速。巨蟹:做事中规中矩。狮子:偏爱重要困难工作!处女:严格设定工作目标流程。天秤:冷静从不夸张急躁。天蝎:自有主张不喜欢别人过问。射手:反传统适合有弹性环境。摩羯:开始工作就不停乐于承担更多工作。水瓶:无法预测。双鱼:抽...
分类:
其他好文 时间:
2014-07-24 09:54:33
阅读次数:
171
Synpatics定点装置,它是笔记本触摸板的驱动,把它稍微设置一下就基本可以用触摸板代替鼠标,以下是网上的介绍:Synaptics获2014消费电子展"创新设计与工程奖" 11月25日消息,人机界面解决方案的领先开发商Synaptics公司(纳斯达克代码:SYNA)今天宣布,凭借ClickPad ...
分类:
其他好文 时间:
2014-07-24 09:54:13
阅读次数:
324
The present invention relates to processing of time series data. There is disclosed a method and apparatus for processing time series data, the method...
分类:
其他好文 时间:
2014-07-24 09:54:03
阅读次数:
264
nginx + unicorn 部署 rails 项目,顾名思义要先安装nginx和unicorn一 安装安装nginx: sudo apt-get install nginx安装unicorn: gem install unicorn二 配置1 在你项目的config文件夹下添加一个unicorn...
分类:
其他好文 时间:
2014-07-24 09:53:43
阅读次数:
257