码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
【JavaScript】 JSON
1、json 一共就这么几种数据类型 ①,number 和JavaScript的number完全一样 ②,boolean 就是JavaScript的true和false ③,string 就是JavaScript的string ④,null 就是JavaScript的null ⑤,array 就是....
分类:编程语言   时间:2015-08-11 13:39:38    阅读次数:130
javascript (二)
1.变量类型( typeof)是小写 如 string number boolean,但是内置对象是大写 如 String Number Boolean,其实简单类型与内置函数的'易混乱点'也就这三个判断一个函数是什么对象时候 如 "stettqa" instanceof String (注意这里S...
分类:编程语言   时间:2015-08-11 12:10:20    阅读次数:139
数字统计(LeetCode Number of digit One)
1. 一本书的页码从自然数1开始顺序编码直到自然数n。书的页码按照通常的习惯编排,每个页码都不含多余的前导数字0。例如第6页用6表示而不是06或006。数字统计问题要求对给定书的总页码,计算出书的全部页码中分别用到多少次数字0,1,2,3,.....9。思路:对于n位数,例如3位数,000-999....
分类:其他好文   时间:2015-08-11 12:09:16    阅读次数:145
【Stirling Number I】
hdu 4372 Count the Buildings推荐这位小哥的,我觉得人家说的灰常的好。注意数据范围,n,f,b均在(0,2000]范围内,而第一斯特林数的数组范围却是s[2000+5][2000+5]的(你要是开4000会内存超限),所以要加一个对(f+b-2)的判断,否则C++过不了,G...
分类:其他好文   时间:2015-08-11 09:59:05    阅读次数:104
Java编码规范(华为)
Document number 文档编号Confidentiality level 密级内部公开Document version 文档版本Total 29 pages 共 29 页V1.00Java语言编码规范Prepared by拟制Date日期yyyy-mm-ddReviewed by评审人Da...
分类:编程语言   时间:2015-08-11 09:46:48    阅读次数:132
【LeetCode-面试算法经典-Java实现】【111-Minimum Depth of Binary Tree(二叉树的最小深度)】
【111-Minimum Depth of Binary Tree(二叉树的最小深度)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a binary tree, find its minimum depth.   The minimum depth is the number of nodes along the shortest path from t...
分类:编程语言   时间:2015-08-11 08:33:30    阅读次数:128
【Stirling Number】
两类Stirling Number的简介与区别(参考自ACdreamer的CSDN)Stirling Number I ---s(n,k):将n个物体排成k个非空循环排列(环)的方法数。递推式:s(n, k) = (n-1)*s(n-1, k) + s(n-1, k-1);1=1 ...
分类:其他好文   时间:2015-08-11 06:55:29    阅读次数:104
ZOJ 1136 Multiple (BFS)
MultipleTime Limit: 10 Seconds Memory Limit: 32768 KBa program that, given a natural number N between 0 and 4999 (inclusively), and M distinct deci...
分类:其他好文   时间:2015-08-11 06:50:32    阅读次数:100
LintCode-Copy Books
Given an array A of integer with size of n( means n books and number of pages of each book) and k people to copy the book. You must distribute the continuous id books to one people to copy. (You can g...
分类:其他好文   时间:2015-08-10 22:25:51    阅读次数:402
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.Yo...
分类:其他好文   时间:2015-08-10 22:24:02    阅读次数:118
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!