Description
A number is called a Mirror number if on lateral inversion, it gives the same number i.e it looks the same in a mirror. For example 101 is a mirror number while 100 is not.
Given two ...
分类:
其他好文 时间:
2014-07-27 11:10:22
阅读次数:
204
题目:Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.题解:这道题跟NQueens的解法完全一样(具....
分类:
编程语言 时间:
2014-07-27 11:00:42
阅读次数:
241
这么基础的东西实在不应该再记录了,不过嘛,温故知新~就先从数据类型开始吧js六大数据类型:number、string、object、Boolean、null、undefinedstring: 由单引号或双引号来说明,如"string"number:什么整数啊浮点数啊都叫数字,你懂的~Boolean:...
分类:
Web程序 时间:
2014-07-27 10:50:32
阅读次数:
194
题目:Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtim....
分类:
编程语言 时间:
2014-07-27 10:46:02
阅读次数:
294
题目:Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime comp....
分类:
编程语言 时间:
2014-07-27 10:43:42
阅读次数:
239
这题被出题人给活活坑了,题目居然理解错了。。哎,不想多说。题意:给两组数,A组为幸运基数,B组为不幸运的基数,问在[low,high]区间内有多少个数:至少被A组中一个数整除,并且不被B中任意一个数整除。|A|#include #include #include #include #define l...
分类:
其他好文 时间:
2014-07-27 10:06:52
阅读次数:
224
1 概览 /*@version Bootstrap3*/ 1.1 HTML5文档类型Bootstrap 使用到的HTML/CSS元素和属性需要将页面设置为HMTL5文档类型,格式如下:1 2 3 ...4 1.2 移动设备优先从V3.0开始,Bootstrap 是移动设备优先的.为了确保...
分类:
其他好文 时间:
2014-07-27 10:04:02
阅读次数:
230
Compared with I version, the tree could be incomplete. The only difference is that, we connect current node's child to next non-childrenless' node's f...
分类:
其他好文 时间:
2014-07-26 17:02:11
阅读次数:
316
今天在redhat5.4_64系统替换yum源的时候出现:[root@mailyum.repos.d]#yumcleanmetadataTherewasaproblemimportingoneofthePythonmodulesrequiredtorunyum.Theerrorleadingtothisproblemwas:/usr/lib/python2.4/site-packages/_sqlitecache.so:wrongELFclass:ELFCLASS32Pleasei..
分类:
其他好文 时间:
2014-07-26 15:39:48
阅读次数:
278
定理:一个正整数 n 可以用素因子唯一表示为 p1^r1 * p2^r2 * ...
pk^rk (其中 pi 为素数) , 那么这个数的因子的个数就是,(r1+1)*(r2+1)*...*(rk+1).
理解:为什么是加1之后再相乘,因为一个数的的因子数至少为1和他自身,但因为r1,r2。。可以为0,所以因子的个数为(r1+1)。。。
拓展一下:
定理1: 一个正整数 n 可以用素...
分类:
其他好文 时间:
2014-07-26 15:32:46
阅读次数:
194