题目:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is...
分类:
其他好文 时间:
2015-04-26 17:59:43
阅读次数:
116
软件测试第二次试验软件测试第二次试验为白盒测试,使用了单元测试1. 实验准备Windows 8.1,Visual Studio Ultimate 2013,被测试软件(Is it a prime number?)2. 实验步骤①使用Windows8.1系统,安装好Visual Studio Ulti...
分类:
其他好文 时间:
2015-04-26 17:58:43
阅读次数:
155
b tree索引索引的结构: 1.创建一个测试表 create table it (x number ,y varchar2(100)); 2.插入一万行数据 begin for i in 1..100000 loop ...
分类:
其他好文 时间:
2015-04-26 13:41:42
阅读次数:
138
题目描述Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares...
分类:
移动开发 时间:
2015-04-26 12:27:42
阅读次数:
114
题目描述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 remain as it is....
分类:
其他好文 时间:
2015-04-26 12:26:17
阅读次数:
135
题目链接:happy-number
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive integer, replace the numbe...
分类:
移动开发 时间:
2015-04-26 10:53:59
阅读次数:
123
问题描述:
判断一个数是否为回文数;
121;
12321;
1234321;
程序分析:
1.
回文数(palindromic number):是指一个数的最高位和最低位上的数相等,第二高位与次低位上的数相等,也就是关于中间“对称”。如上面的三个数情况是一个回文数。
2.将这个数扩展成一个数组,将这个数的各个位上的数取出来并且一一赋给这个数组。
...
分类:
编程语言 时间:
2015-04-26 09:30:28
阅读次数:
254
No.1Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.e.g.[?2,1,?3,4,?1,2,1,?5,4...
分类:
其他好文 时间:
2015-04-26 09:09:23
阅读次数:
111
动态类型javascript是一种弱类型(动态语言)。这意味着在使用之前不用声明变量的类型,程序运行时,它的类型会自动确认。数据类型ECMAScript中有五种简单的数据类型:undefined,null,boolean,number,string。还有一种复杂数据类型——Object,object...
分类:
编程语言 时间:
2015-04-26 06:55:29
阅读次数:
141
//C++ 在堆上开辟与释放二维、三维指针
#include
using namespace std;
int main()
{
//二级指针的开辟与释放
int number = 0;
int** p = new int*[4];
for(int i = 0; i
{
p[i] = new int[4];
}...
分类:
编程语言 时间:
2015-04-25 22:48:07
阅读次数:
176