Only trick is the 'Z'. Because when the number % 26 == 0, means there is a 'Z'. But when you n/=26, there is an extra 1 added to the n. EX:27 % 26 = 1...
分类:
其他好文 时间:
2015-03-19 09:59:13
阅读次数:
110
文章首发:http://www.cnblogs.com/sprying/p/4349426.html本文罗列了一般Js类型检测的方法,是构建Js知识体系的一小块,这篇文章是我很早之前总结的。一、Js中有5种基本数据类型Undefined 、Null、Boolean、String、Number(包含N...
分类:
编程语言 时间:
2015-03-19 09:55:23
阅读次数:
204
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.思路分析:这题比较简单,关于树的题目通常都可以用递归解决,这题也不例外,递归解法的思...
分类:
其他好文 时间:
2015-03-19 06:23:34
阅读次数:
126
The different between I and II is that:1. For II, each number only can be chosen ONCE.2. The a number, in the array, encountered more than twice will ...
分类:
其他好文 时间:
2015-03-19 06:18:55
阅读次数:
135
题目链接:点击打开链接
题意:
给出n个点m条无向边的图
开始图里没有边,每次加一条边,然后输出图里欧拉回路的条数。
思路:
We will count the number of ski bases including the base consisted of empty subset of edges (before printing just subtract one)....
分类:
其他好文 时间:
2015-03-18 23:21:31
阅读次数:
233
11gR2开始,OCR和VOTE都存储在ASM磁盘组,因此替换OCR有两种方法,第一种是add new disk 再drop old disk后ASM磁盘组自动做数据重组,第二种是将OCR迁移至其他磁盘组
第一种:add disk 再 drop disk
SQL> select group_number,name,path from v$asm_disk;
GROUP_NUMBER NAME PATH
--------...
分类:
其他好文 时间:
2015-03-18 21:49:10
阅读次数:
168
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define MAX_EVENT_NUMBER 1024
#define TCP_BUFFER_SIZE 512
#define UDP...
分类:
系统相关 时间:
2015-03-18 20:38:00
阅读次数:
272
题目7:找出第10001个质数。
前六个质数是2,3,5,7,11和13,其中第6个是13.
第10001个质数是多少?
源码
STDMETHODIMP COuLa::Test7(int number)
{
// TODO: 在此添加实现代码
int iNumberForCout = 1;
int iNumberForOutput = 0;
int iN...
分类:
其他好文 时间:
2015-03-18 20:34:55
阅读次数:
137
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number...
分类:
其他好文 时间:
2015-03-18 20:27:57
阅读次数:
131
--排序列SELECTdisplayrate,ROW_NUMBER()OVER(ORDERBYdisplayratedesc)ASrowid from#ListH --临时表IFOBJECT_ID('tempdb..#tCategoryTable')ISNOTNULLBEGIN DROPTABLE#...
分类:
数据库 时间:
2015-03-18 19:56:09
阅读次数:
154