码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
Letter Combinations of a Phone Number
Letter Combinations of a Phone Number问题:iven a digit string, return all possible letter combinations that the number could represent.A mapping of digi...
分类:其他好文   时间:2015-03-15 16:30:01    阅读次数:148
第一周 项目4 图书馆的书
【项目4 - 图书馆的书】   编写一个Book类,包含name(书名)、writer(著者)、public_name(出版社)、price(价格)、number(数量)、NO(书号)等数据成员。定义成员函数setBook,用来为书籍的数据成员赋值,定义成员函数borrow和restore,分别办理借出和还回(借、还书时,暂时只完成数量的增1减1,这里的书仍是一种书的概念,随着课程进展,我们继续...
分类:其他好文   时间:2015-03-15 13:57:17    阅读次数:141
Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:其他好文   时间:2015-03-15 13:42:18    阅读次数:118
[Leetcode]Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:其他好文   时间:2015-03-15 02:00:27    阅读次数:116
(简单) POJ 3259 Wormholes,SPFA判断负环。
Description While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a o...
分类:其他好文   时间:2015-03-15 00:42:32    阅读次数:205
javascript基础
基本类型的值和引用类型值 基本类型:string number boolean null Undefined 引用类型:内存中的对象 动态的属性:1 var Person = new Object();2 Person.name = "js";3 ...
分类:编程语言   时间:2015-03-15 00:37:32    阅读次数:195
(简单) POJ 1847 Tram,Dijkstra。
Description Tram network in Zagreb consists of a number of intersections and rails connecting some of them. In every intersection there is a switc...
分类:其他好文   时间:2015-03-15 00:27:44    阅读次数:144
JavaScript的原始类型
在ECMAScript 中,变量可以存放两种类型的值,即原始值和引用值。 原始值(primitive value)是存放在栈(stack)中的简单数据字段,也就是说,它们的值直接存储在变量访问的位置。 引用值(reference value)是存储在堆(heap)中的对象,也就是说,存储在变量出的值是一个指针(point),指向存储对象的内存处。 ECMAScript 中有5种原始类型,即Undefined,Null,Boolean,Number 和 String。ECMAScript把术语...
分类:编程语言   时间:2015-03-14 23:20:52    阅读次数:218
LeetCode 191:number of one bits
题目就是:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-...
分类:其他好文   时间:2015-03-14 23:05:28    阅读次数:242
Socket编程实践(10) --select的限制与poll的使用
select的限制用select实现的并发服务器,能达到的并发数一般受两方面限制:1)一个进程能打开的最大文件描述符限制。这可以通过调整内核参数。可以通过ulimit -n(number)来调整或者使用setrlimit函数设置,但一个系统所能打开的最大数也是有限的,跟内存大小有关,可以通过cat /proc/sys/fs/file-max 查看/**示例: getrlimit/setrlimit...
分类:其他好文   时间:2015-03-14 21:50:34    阅读次数:212
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!