判断一个 int 是否为回文的有一点要注意的是:int x;int _x = abs(x);对 x 取绝对值的时候,会发生溢出。比如 x = INT_MIN 即 -2147483648 而 INT_MAX 为2147483647其实,负数不是回文数
分类:
其他好文 时间:
2014-09-06 21:08:53
阅读次数:
163
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-09-06 18:40:43
阅读次数:
224
注意题目中的一句话:If a number m has bigger evaluating value than all the numbers smaller than it。。。这让我重新想过反素数的定义,应该 是比n小的数的约数的个数都 小于 n。所以,应该取最小的一个值#include #i...
分类:
其他好文 时间:
2014-09-06 17:21:53
阅读次数:
158
Jack Straws
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 3155
Accepted: 1418
Description
In the game of Jack Straws, a number of plastic or wooden "straws...
分类:
其他好文 时间:
2014-09-06 14:53:53
阅读次数:
270
采用cat /proc/version 可以查看到具体的操作系统的信息,包括内核的版本,在redhat中的版本。
uname -a和上面的输出差不多,还有输出hostname
cat /etc/issue可以看到当前centos的版本为centos 6.4
e可以看到当前的内核的版本号,和当前的系统的时间和系统的位数,以及cpu的个数 ,和cpu的使用情况...
分类:
其他好文 时间:
2014-09-06 13:41:43
阅读次数:
172
js 数据类型 undefined 未定义boolean 布尔值string 字符串number 数值object 对象后者null;function 函数数字转化Number(); parseInt(); parseFloat(); 可以把非数字转化成数字Number();...
分类:
Web程序 时间:
2014-09-06 13:38:33
阅读次数:
194
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 le...
分类:
其他好文 时间:
2014-09-06 12:20:23
阅读次数:
171
原文:05. 取SQL分组中的某几行数据对表中数据分组,有时只需要某列的聚合值;有时却需要返回整行数据,常用的方法有:子查询、ROW_NUMBER、APPLY,总体感觉还是ROW_NUMBER比较直观。测试数据: if OBJECT_ID('testGroup') is not null
drop ...
分类:
数据库 时间:
2014-09-06 12:10:43
阅读次数:
353
以下为java的一些常见的题
1.
代码:
package cn.wwh.www.exercise;
import java.util.Scanner;
/**
* 类的作用:1.输出N * N的乘法口诀表
*
*
* @author 一叶扁舟
* @version 1.0
* @创建时间: 2014年9月4日 下午6:09:08
*/
public class Pri...
分类:
其他好文 时间:
2014-09-06 06:30:42
阅读次数:
181
开发小组公共库的过程中,遇到二进制兼容问题。下面是二进制兼容和代码兼容的具体定义:A library isbinary compatible, if a program linked dynamically to a former version of the library continues.....
分类:
其他好文 时间:
2014-09-05 23:35:12
阅读次数:
367