码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
Majority Element in an Array
Problem StatementGiven a large array of non-negative integer numbers, write a function which determines whether or not there is a number that appears ...
分类:其他好文   时间:2015-07-15 01:13:26    阅读次数:333
2014.7.14 js基础总结
数据类型:字符串(string) 布尔(Boolean) Array(数组) function(方法) Number(数值) Date(日期) Object(对象) ExpReg(正则表达式)Undefined(没有初始化 没有明确返回值)Null(空对象)typeof()运算符: var arr....
分类:Web程序   时间:2015-07-15 01:09:38    阅读次数:128
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 ...
分类:其他好文   时间:2015-07-14 22:40:56    阅读次数:165
LeetCode-Combination Sum
问题Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimited number of...
分类:其他好文   时间:2015-07-14 22:38:27    阅读次数:162
linux使用fdisk添加分区的例子
使用fdisk添加分区的例子;本例中我们会添加两个200M的主分区,其它为扩展分区,在扩展分区中我们添加两个200M大小的逻辑分区Command(mforhelp):p注:列出分区表;Disk/dev/sda:1035MB,1035730944bytes256heads,63sectors/track,125cylindersUnits=cylindersof16128*512=825753..
分类:系统相关   时间:2015-07-14 20:47:47    阅读次数:149
[LeetCode] Excel Sheet Column Number
Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A ...
分类:其他好文   时间:2015-07-14 19:54:22    阅读次数:114
【Count Complete Tree Nodes】cpp
题目:Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, exc...
分类:其他好文   时间:2015-07-14 19:46:38    阅读次数:85
Project Euler:Problem 63 Powerful digit counts
The 5-digit number, 16807=75, is also a fifth power. Similarly, the 9-digit number, 134217728=89, is a ninth power. How many n-digit positive integers exist which are also an nth power? 这样的数字满...
分类:其他好文   时间:2015-07-14 17:58:13    阅读次数:195
Java冒泡算法及中位数算法
import java.math.BigDecimal;public class Test { public static void main(String[] args) { //控制随机数量 int c = 100; Number[] ar...
分类:编程语言   时间:2015-07-14 17:17:58    阅读次数:390
[LeetCode] Maximum Depth of Binary Tree
Question: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 fa...
分类:其他好文   时间:2015-07-14 17:15:29    阅读次数:106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!