136 Single Number链接:https://leetcode.com/problems/single-number/
问题描述:
Given an array of integers, every element appears twice except for one. Find that single one.Note:
Your algorithm should hav...
分类:
其他好文 时间:
2015-07-09 14:34:47
阅读次数:
92
题目:It can be seen that the number, 125874, and its double, 251748, contains exactly the same digits, but in a different order. Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, ...
分类:
编程语言 时间:
2015-07-09 13:20:06
阅读次数:
158
A number system with moduli is de?ned by a vector of k moduli, [m1,m2, ···,mk].The moduli must be pairwise co-prime, which means that, for any pair of...
分类:
其他好文 时间:
2015-07-09 13:08:47
阅读次数:
103
1、对于string,number等基础类型,==和===是有区别的1)不同类型间比较,==之比较“转化成同一类型后的值”看“值”是否相等,===如果类型不同,其结果就是不等2)同类型比较,直接进行“值”比较,两者结果一样2、对于Array,Object等高级类型,==和===是没有区别的进行“指针...
分类:
Web程序 时间:
2015-07-09 12:56:52
阅读次数:
136
1、将字符中数字转换为中文大写的数字,注意100==>一零零 而非==>一百123==>一二三 而非==>一百二十三CREATE FUNCTION Fn_NumberConvertChinase(@number NVARCHAR(50))RETURNS NVARCHAR(20)ASBEGINDE.....
分类:
数据库 时间:
2015-07-09 12:52:08
阅读次数:
221
应用场景128:创建临时表
创建一个保存临时选择商品信息的临时表temp_goods
CREATE GLOBAL TEMPORARY TABLE temp_goods
(GoodsId NUMBER,
GoodsNum NUMBER,
Price NUMBER)
ON COMMIT DELETE ROWS;
创建一个临时表空间
CREATE TEMPORARY TABLE...
分类:
数据库 时间:
2015-07-09 08:32:56
阅读次数:
128
Digit factorials
Problem 34
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.Find the sum of all numbers which are equal to the sum of the factorial of their digits.Note: as 1! = 1 and 2...
分类:
其他好文 时间:
2015-07-09 00:50:46
阅读次数:
166
Number of Digit OneGiven an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Gi...
分类:
编程语言 时间:
2015-07-09 00:24:37
阅读次数:
154
题意:http://www.wzoi.org/usaco/11%5C206.asp解法: 貌似解法是多种多样的 我的方法是,将字典里所有字母转为数字,然后检查是不是和输入相同 patpat#include using namespace std;typedef long long ll;ll ...
分类:
其他好文 时间:
2015-07-09 00:21:08
阅读次数:
162