码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
php 实现常用算法
//冒泡排序 从小到大对一组数排序function mp($array){ $count = count($array); if ($count $i; $k--) { if($array[$k] "; } return $...
分类:Web程序   时间:2014-05-23 05:39:26    阅读次数:284
60行代码:Javascript 写的俄罗斯方块游戏
先看效果图: 游戏结束图: javascript实现源码: 俄罗斯方块 © 2009 - 2014 All Rights by ithomer.net var domain="www.zuidaima.com"; var author="zuidaima"; var map=eval("["+Array(23).join("0x801,")+"0xfff]"); var tatris=[...
分类:编程语言   时间:2014-05-23 02:19:04    阅读次数:253
[LeetCode]Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array...
分类:其他好文   时间:2014-05-22 23:06:48    阅读次数:271
vb.net中,如何把byte array还原成为包含中文的字符串
正确的回答,永远是先解释完提出问题的人,然后解决之。...
分类:Web程序   时间:2014-05-22 23:04:38    阅读次数:337
LeetCode: Jump Game II [044]
【题目】 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal is to reach the last index in the minimum number of ju...
分类:其他好文   时间:2014-05-22 17:02:20    阅读次数:244
【LeetCode】3Sum
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:其他好文   时间:2014-05-22 16:53:52    阅读次数:173
Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-05-22 16:31:03    阅读次数:194
CRC8算法DELPHI源码
unit Crc8;interfaceUsesClasses, Windows;Function Crc_8n(p : array of BYTE; len : BYTE) : Byte;implementationFunction Crc_8n(p : array of BYTE; len : B...
分类:其他好文   时间:2014-05-22 16:29:09    阅读次数:229
深度解析javascript中的浅复制和深复制
原文:深度解析javascript中的浅复制和深复制 在谈javascript的浅复制和深复制之前,我们有必要在来讨论下js的数据类型。我们都知道有Number,Boolean,String,Null,Undefined,Object五种类型。而Object又包含Function,Array和Obj...
分类:编程语言   时间:2014-05-22 15:13:54    阅读次数:334
php 被抛弃使用的函数
call_user_method()(使用 call_user_func() 替代) call_user_method_array() (使用 call_user_func_array() 替代) define_syslog_variables() dl() ereg() (使用 preg...
分类:Web程序   时间:2014-05-22 15:08:51    阅读次数:290
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!