题目描述:Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen l...
分类:
其他好文 时间:
2015-05-13 12:04:09
阅读次数:
91
注意Integer.MIN_VALUE的绝对值是比Integer.MAX_VALUE大1的public class Solution { public int reverse(int x) { int res = 0; int num = Math.abs(x); ...
分类:
其他好文 时间:
2015-05-13 06:16:03
阅读次数:
94
leetcode - Reverse BitsReverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 000000101001010000...
分类:
其他好文 时间:
2015-05-12 18:39:47
阅读次数:
148
原文 PowerDesigner 对 Oracle 作 逆向工程目的PowerDesigner 15对OracleClient 11g进行逆向工程环境Win7 64位系统Oracle 11gOracleClient 11g ODACPowerdesigner 15步骤1,FileàReverse E...
分类:
数据库 时间:
2015-05-12 15:30:49
阅读次数:
180
【题目】
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remai...
分类:
其他好文 时间:
2015-05-12 11:34:01
阅读次数:
92
题目: 编写一个函数reverse_string(char * string)(递归实现)
实现:将参数字符串中的字符反向排列。
要求:不能使用C函数库中的字符串操作函数。
思路分析:以ABCDEFGH为例,每次将字符串的首字符和尾字符进行交换。
1、将A与I交换,此时字符串变为IBCDEFGA,而递归的字符串变成了BCDEFG;
2、将B和G交换,此时字符串变成IGCDEFBA,而递归...
分类:
其他好文 时间:
2015-05-12 11:32:08
阅读次数:
162
Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010...
分类:
其他好文 时间:
2015-05-12 09:26:02
阅读次数:
126
题目我就不赘述了,可以上官网看得到。算了还是贴一下把。
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
就是把输入的数值反向输出即可。这里有一个陷阱就是数值溢出的问题。我的代码跟网上别人的不太一样,看到这个题目的我首先想到的就是,把这个int型...
分类:
其他好文 时间:
2015-05-11 22:10:09
阅读次数:
122
//将student a am i 转换成 i am a student
#include
#include
//翻转一个单词
/*void reverse_string(char *l,char*r)
{
while(l<r)
{
char tmp;
tmp=*l;
*l=*r;
*r=tmp;
l++;
r--;
}
}
//由空格判断一个单词,调用reverse...
分类:
其他好文 时间:
2015-05-11 21:53:36
阅读次数:
131
Problem:
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should r...
分类:
编程语言 时间:
2015-05-11 20:07:26
阅读次数:
145