#include #include #include char* Reverse(char* s){//将q指向字符串最后一个字符 char* q = s ;while( *q++ ) ; q -= 2 ; //分配空间,存储逆序后的字符串。 char* p = (char *)malloc(siz...
分类:
其他好文 时间:
2014-09-24 19:25:17
阅读次数:
191
#include #include //注意这种实现方法,unsigned Reverse( unsigned a ){ unsigned b = 0; for( ; a; a/=10 ) { b = b*10 + a%10; } return b;}int main(void){int a = 2...
分类:
其他好文 时间:
2014-09-24 18:36:07
阅读次数:
153
reverse-double-linked-list
分类:
编程语言 时间:
2014-09-23 19:27:55
阅读次数:
284
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 1 public class Solution { 2 public int reverse(int x) { 3 ...
分类:
编程语言 时间:
2014-09-23 12:10:24
阅读次数:
235
题目链接Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the". 1 class Solution { 2 publ...
分类:
其他好文 时间:
2014-09-22 20:28:23
阅读次数:
128
/*由于是2位 十进制整数,所以转化后可以存 一个int 型中;reverse函数 提供了这种转化如果需要转化的数字比较大int存不下,则需要数组来存*/#includeint reverse(int a){ int b=0, c=1; while(a) { b+=(a%2)*c; c*=10;.....
分类:
其他好文 时间:
2014-09-22 12:23:02
阅读次数:
184
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-09-21 17:54:51
阅读次数:
226
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitutes...
分类:
其他好文 时间:
2014-09-21 17:35:30
阅读次数:
225
DJango系列的上一篇我们讲到了它是怎么解析和匹配URL的,并从URL中提取一些有用的信息(曾以year和month为例);但是,URL的管理仍然是一个巨大的工程,我们不得不维护数量庞大的pattern,即使有正则表达式的支持。...
分类:
其他好文 时间:
2014-09-21 01:06:19
阅读次数:
418
Evaluate Reverse Polish NotationTotal Accepted:24595Total Submissions:123794My SubmissionsEvaluate the value of an arithmetic expression inReverse Pol...
分类:
其他好文 时间:
2014-09-20 01:07:16
阅读次数:
213