码迷,mamicode.com
首页 >  
搜索关键字:length    ( 19575个结果
javascript数组赋值操作
最近在司徒正美的《javascript框架设计》,在里面发现了一个段代码1 ......2 3 var _len = arr1.length;4 while (_len) {5 arr2[--_len] = arr1[_...
分类:编程语言   时间:2014-05-08 21:33:08    阅读次数:363
LinkedList implement
public class LinkedList { Node head = null; Node tail = null; int length = 0; public void add(Object object) { Node node  = new Node(object, null); if (head == null) { head = tail = nod...
分类:其他好文   时间:2014-05-07 08:24:17    阅读次数:306
ArrayList implement
public class ArrayList { Object[] objects = new Object[10]; int index = 0; public void add(Object object) { if (index == objects.length) { Object[] newObjects = new Object[objects.length*2]; ...
分类:其他好文   时间:2014-05-07 07:57:10    阅读次数:257
JavaScript实现获取table中某一列的值
1、实现源码 JavaScript实现获取table中某一列的值 function getTdValue() { var tableId = document.getElementById("tab"); var str = ""; for(var i=1;i<tableId.rows.length;i++) { alert(tableId.row...
分类:编程语言   时间:2014-05-07 06:27:47    阅读次数:478
线性表的Java实现--顺序存储
线性表的Java实现--顺序存储  线性表(Linear List)是由n(n≥0)个数据元素(结点)a[0],a[1],a[2]…,a[n-1]组成的有限序列。   其中: 数据元素的个数n定义为表的长度 = "list".length() ("list".length() = 0(表里没有一个元素)时称为空表) 将非空的线性表(n>=0)记作:(a[0],a[1],a[2],…,a...
分类:编程语言   时间:2014-05-07 02:35:56    阅读次数:438
【LeetCode】Remove Element
题目: Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn't matter what you leave beyond the new len...
分类:其他好文   时间:2014-05-05 12:58:57    阅读次数:294
[SIP01]SIP Header Fields里面各字段用途
INVITE Via: Max-Forwards: To: From: Call-ID: CSeq: Contact: Content-Type: Content-Length:
分类:其他好文   时间:2014-05-04 12:34:06    阅读次数:292
c#植物大战僵尸素材提取
string path = textBox1.Text; FileStream fs = File.OpenRead(path); byte[] bytes = new byte[fs.Length]; fs.Read(bytes, ...
分类:其他好文   时间:2014-05-04 09:55:49    阅读次数:402
【DOM编程艺术】form对象
HTML文档中的每一个元素都是一个对象。每个元素都有nodeName、nodeType之类的DOM属性。文档中的每一个表单元素都是一个form对象。每个form对象都有一个elements.length属性。这个属性返回表单中包含的表单元素的个数。这个返回值与childNodes.length不一样...
分类:其他好文   时间:2014-05-03 22:17:45    阅读次数:215
【LeetCode】Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:其他好文   时间:2014-05-03 21:35:49    阅读次数:310
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!