码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
smarty相关
1:smarty从php传递值到html页面 assign(array('data'=>$blog)); 用assign方法把数组$blog换名为data($blog为二维数组), ...
分类:其他好文   时间:2016-08-17 15:25:43    阅读次数:154
88. Merge Sorted Array
这道题的trick在于如果从小到大排列的话,涉及到数组从左向右移动的问题。 所以这道题从大到小进行排序。 另外,这道题中该学习到的coding style,当需要处理2个数组/list时候 用 while (a != null && b != null) {} while (a != null) { ...
分类:其他好文   时间:2016-08-17 12:10:50    阅读次数:136
Missing Ranges -- LeetCode
Given a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges. For example, given [0, 1, 3, 50, 75] ...
分类:其他好文   时间:2016-08-17 12:08:11    阅读次数:120
Count of Smaller Numbers After Self -- LeetCode
You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smal ...
分类:其他好文   时间:2016-08-17 10:12:42    阅读次数:187
面向对象
面向对象 面向对象只关心怎么去用,而不关心内部实现 在生活中,万物皆对象,这是比较虚的一种说法或者说佛家用语。 在程序中,对象有时间对象oDate=new Date(); 有数组对象 arr=new Array();有图片对象 oImg=new Image(); 总的来说,对象的组成是属性和方法。就 ...
分类:其他好文   时间:2016-08-17 06:43:25    阅读次数:148
LeetCode26 Remove Duplicates from Sorted Array
题目: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra spac ...
分类:其他好文   时间:2016-08-16 21:58:14    阅读次数:130
leetcode 318: Maximum Product of Word Lengths
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum ...
分类:其他好文   时间:2016-08-16 21:47:00    阅读次数:133
LeetCode27 Remove Element
题目: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, ...
分类:其他好文   时间:2016-08-16 21:41:53    阅读次数:149
Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. ...
分类:其他好文   时间:2016-08-16 21:30:32    阅读次数:120
JavaScript数据类型
基本数据类型: 字符串:String 数字:Number 布尔值:Boolean true/fasle 特殊数据类型: 空对象:Null 未定义:Undefined 复合数据类型: 对象:Object 数组: Array 一、 String字符串类型 String类型用于表示由零或多个16位Unic ...
分类:编程语言   时间:2016-08-16 19:52:53    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!