码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
[leetcode 14]Longest Common Prfix
1 题目:Write a function to find the longest common prefix string amongst an array of strings.Hide TagsString2 思路所有字符串公共的前缀,那么第一个字符串肯定包括了。 从第一个字符串开始遍历着手即...
分类:其他好文   时间:2015-06-14 16:26:59    阅读次数:102
RT-thread main函数分析
RT-thread系统的main函数位于startup.c文件中。/** * This function will startup RT-Thread RTOS. */void rtthread_startup(void){ /* init board */ rt_hw_board_in...
分类:其他好文   时间:2015-06-14 15:10:12    阅读次数:178
C 实现位图排序
应用场景: 1到N的不重复乱序数据,乱序数据总最大不超过N,需要高效的排序。sorr.c#include #include #include #define mask 0x1F#define shift 5/************************** * function name: b....
分类:编程语言   时间:2015-06-14 13:45:06    阅读次数:135
Two Sum
Description:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices o...
分类:其他好文   时间:2015-06-14 13:44:40    阅读次数:119
js-回车事件控制
1.文本框回车时间 function clickButton(){ if ( event.keyCode == 13 ) { document.all ( 'ibtnUpdate' ).click(); return false; }} functi...
分类:Web程序   时间:2015-06-14 13:38:46    阅读次数:159
【Java】定时器、线程与匿名内部类
内部匿名类在一些Java书籍中写得非常抽象,其实这东西,如果单独拿出来讲的话,也确实很难讲得通,我本来以为如此抽象的概念,并没有什么用。万万没想到到是,这东西在安卓编程的监听器中使用得尤其之多。匿名内部类根本一点都不难,大家一直在用,却一直都不知道自己在用,被问到这个概念就懵了。如果你用过jQuery,你一定见过如下的结构: $("#组件id").click(function(){ //...
分类:编程语言   时间:2015-06-14 11:03:23    阅读次数:493
走进__proto__属性,看ie是否支持它,谁又来给他归宿
每一个引用类型的实例中,都有一个指针,指向其原型对象。这个指针在非IE浏览器里通过__proto__表示,而在IE里不提供。看如下代码:obj = {};obj.__proto__.toString = function() { return "__proto__"; }var ceshi ...
分类:其他好文   时间:2015-06-14 10:50:03    阅读次数:135
leetcode 1 twoSum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:其他好文   时间:2015-06-14 09:37:20    阅读次数:103
JavaScript读书笔记(6)-Function
Function类型ECMAScript中函数是对象,每个函数都是Function类型的实例,也有属性和方法,函数是对象,函数名实际上市一个指向函数对象的指针,不会与某个函数绑定;function sum(num1,num2){ return num1+num2;}同:var sum=functio...
分类:编程语言   时间:2015-06-14 00:29:15    阅读次数:165
Bias of an estimator
Bias of an estimator Instatistics, thebias(orbias function) of anestimatoris the difference between this estimator'sexpected valueand the true value o...
分类:其他好文   时间:2015-06-14 00:20:48    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!