码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
LeetCode Verify Preorder Sequence in Binary Search Tree
原题链接在这里:https://leetcode.com/problems/verify-preorder-sequence-in-binary-search-tree/ 题目: Given an array of numbers, verify whether it is the correct ...
分类:其他好文   时间:2016-03-28 07:08:30    阅读次数:140
【LeetCode OJ 075】Sort Colors
题目链接:https://leetcode.com/problems/sort-colors/ 题目:Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order r...
分类:其他好文   时间:2016-03-28 00:08:14    阅读次数:190
[LeetCode][JavaScript]Maximum Subarray
Maximum Subarray Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example ...
分类:编程语言   时间:2016-03-27 23:55:18    阅读次数:252
博客3
数据类型基本数据类型(5种): number:数字类型 string: 字符类型 boolean:布尔类型 null:空,没有存放任何对象的地址 underfined:未定义 js中三种包装类型:Number,Boolean,String引用类型Object,Array,Date,Math变量: a ...
分类:其他好文   时间:2016-03-27 22:30:58    阅读次数:197
关于数组的map、reduce、filter
map:map()方法定义在Array中,传入自己的参数,就得到一个新的Array作为结果 var aqiData = [ ["北京", 90], ["上海", 50], ["福州", 10], ["广州", 50], ["成都", 90], ["西安", 100]]; function box(a ...
分类:编程语言   时间:2016-03-27 21:14:32    阅读次数:393
Java之容器
容器Collection接口定义了存取一组对象的方法,其子接口Set和List分别定义了存储方式 ·Set中的数据对象没有顺序且不可以重复 HashSet ·List中的数据对象有顺序且可以重复 LinkedList(底层为链表) ArrayList(底层为数组) ·Array读快改慢·Linked ...
分类:编程语言   时间:2016-03-27 20:55:00    阅读次数:213
leetcode_最长公共前缀
题目:Write a function to find the longest common prefix string amongst an array of strings. 题解:给出的函数为:char* longestCommonPrefix(char** strs, int strsSiz ...
分类:其他好文   时间:2016-03-27 18:00:29    阅读次数:256
ThinkPHP数据库配置文件config.php-途牛博客
找了一个通用的 ThinkPHP 数据库的配置文件,用来连接数据库的,比较简单,适合企业站点,配置的参数很少,这样在建立企业类型等小网站的时候就可以直接使用了,如下代码. <?phpif(!defined('THINK_PATH')) exit();return $array = array ('D ...
分类:数据库   时间:2016-03-27 11:07:07    阅读次数:209
LeetCode Two Sum II - Input array is sorted
原题链接在这里:https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ 题目: Given an array of integers that is already sorted in ascending order, find ...
分类:其他好文   时间:2016-03-27 07:15:35    阅读次数:186
javascript中的常用本地对象
一、javascript是面向对象的编程语言 封装:把相关的信息(无论数据或方法)存储在对象中的能力 聚集:把一个对象存储在另一个对象内的能力 继承:由另一个类(或多个类)得来类的属性和方法的能力。 多态:编写能以多种形态运行的函数或方法的能力 二、Array对象 使用单独的变量名来存储一系列的值。 2.1创建数组对象 var aValu...
分类:编程语言   时间:2016-03-27 01:47:52    阅读次数:205
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!