码迷,mamicode.com
首页 >  
搜索关键字:one discrete length    ( 47106个结果
数据结构6_顺序队列(循环队列)
本文实现了顺序队列,与链队列不同的是,顺序队列需要考虑一个问题,问题情况如下,解决办法:循环队列,当rear到分配的数组空间末尾时,转到数组头但是当q.rear==q.front时,又如何区分一种是空队列,一种是满队列的情况呢这里有两种方案本次代码实现了第一种方法,同时设置了一个技术变量length...
分类:其他好文   时间:2014-06-29 15:39:35    阅读次数:311
LeetCode Length of Last Word
class Solution {public: int lengthOfLastWord(const char *s) { if (s == NULL) return 0; int mlen = 0, len = 0; bool inword = fa...
分类:其他好文   时间:2014-06-29 14:13:37    阅读次数:229
prototype 和function关系等总结
1,function ,包括 arguments, caller,length,name ,prototype,__proto__,2,prototype,又分为constructor:function () {},__proto__:Object,3,__proto__从别的原型链继承过来可以直接...
分类:其他好文   时间:2014-06-29 13:59:16    阅读次数:327
在电脑上浏览手机网页
1.下载google浏览器2.运行 ->chrome.exe --user-agent="Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) V...
分类:移动开发   时间:2014-06-29 13:54:03    阅读次数:358
[Android] An internal error occurred during: "Launching New_configuration". Path for project must have only one segment.
出错:An internal error occurred during: "Launching New_configuration".Path for project must have only one segment.【解决过程】1.很明显,此处没有设置对应的AVD,即用于运行程序的andro...
分类:移动开发   时间:2014-05-28 23:45:20    阅读次数:707
截取字段代码
直接在视图中开始加上如下代码:@helper Truncate(string input, int length) { if (input.Length ... }} @Truncate(item.Adress, 25) 的意思就是截取前25个字符!
分类:其他好文   时间:2014-05-28 17:04:27    阅读次数:233
Cognos TM1_10.1.1服务端安装
出于对bi行业的强大热爱,出于对cognos tm1的强大兴趣,于是就想研究一下Cognos TM1(table manager one),今天就分享一下自己微不足道研究成果,真可谓是tm1的九牛一毛,主要作用在于自勉.问题1:从网上down下来的tm1安装包很乱,不知道该安装什么组件,顺序是怎么样...
分类:其他好文   时间:2014-05-28 13:27:14    阅读次数:518
LeetCodeMerge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 对每一个排序链表都设置一个指针。每次讲指针指向的单元中最小值链接,直到所有指针为空。 public c...
分类:其他好文   时间:2014-05-28 09:59:54    阅读次数:263
Sequence用堆排序
DescriptionGiven m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integers...
分类:其他好文   时间:2014-05-28 00:05:22    阅读次数:298
20140525 冒泡
1、冒泡排序(自己写) #include#define swap(x,y) x=x+y; y=x-y; x=x-y;void maopao(int *a,int length) //每次把最大的元素冒泡到数组末尾,从小到大的顺序,length是数组长度,a是数组名,作为形参之后,数组名退化为指针{ ...
分类:其他好文   时间:2014-05-27 23:59:27    阅读次数:434
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!