码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
【Plus One】cpp
题目: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索引学习总结
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
LeetCode (24) 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 number by the sum of the squares...
分类:移动开发   时间:2015-04-26 12:27:42    阅读次数:114
LeetCode (25) Reverse Nodes in k-Group (链表)
题目描述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
[LeetCode 202] Happy Number
题目链接: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
(C语言)回文数的判断
问题描述: 判断一个数是否为回文数; 121; 12321; 1234321; 程序分析:        1. 回文数(palindromic number):是指一个数的最高位和最低位上的数相等,第二高位与次低位上的数相等,也就是关于中间“对称”。如上面的三个数情况是一个回文数。        2.将这个数扩展成一个数组,将这个数的各个位上的数取出来并且一一赋给这个数组。   ...
分类:编程语言   时间:2015-04-26 09:30:28    阅读次数:254
Algorithm about SubArrays & SubStrings
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数据结构
动态类型javascript是一种弱类型(动态语言)。这意味着在使用之前不用声明变量的类型,程序运行时,它的类型会自动确认。数据类型ECMAScript中有五种简单的数据类型:undefined,null,boolean,number,string。还有一种复杂数据类型——Object,object...
分类:编程语言   时间:2015-04-26 06:55:29    阅读次数:141
C++ 在堆上开辟与释放二维、三维指针
//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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!