码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
Python中使用numpy创建初始化array
import numpy as np np.arange(10, 100, 20, dtype = float) #numpy中的arange与普通的range作用一样,即range(start, stop, step) #arange可以通过dtype来指定创建的数组类型,数组不同与元组和列表,整 ...
分类:编程语言   时间:2016-06-12 13:42:31    阅读次数:2897
Javascript字典操作
<script type="text/javascript"> var dic = new Array(); //注意它的类型是Array dic["zs"] = "张三"; dic["ls"] = "李四"; dic["ww"] = "王五"; dic["zl"] = "赵六"; //alert( ...
分类:编程语言   时间:2016-06-12 12:30:40    阅读次数:1847
215. Kth Largest Element in an Array
...
分类:其他好文   时间:2016-06-12 12:17:05    阅读次数:124
JavaScript核心
JavaScript核心 arguments对象 Array对象 Boolean对象 Date对象 Error对象 Function对象 Global对象 Math对象 Number对象 Object对象 RegExp对象 String对象 arguments对象 Array对象 Boolean对象 ...
分类:编程语言   时间:2016-06-12 12:11:03    阅读次数:128
jquery 数组和字典
1 数组的创建 var arrayObj = new Array(); //创建一个数组 var arrayObj = new Array([size]); //创建一个数组并指定长度,注意不是上限,是长度 2 对数组的循环 $.each(object,fucntion(num,item){ ale ...
分类:编程语言   时间:2016-06-12 12:09:16    阅读次数:185
LeetCode Rotate Array
将一个数组中的数字右旋k位,即所有的数字向后移k位,末尾的数字移到开头。...
分类:其他好文   时间:2016-06-12 03:26:51    阅读次数:150
【Leetcode】Group Anagrams
题目链接:https://leetcode.com/problems/anagrams/ 题目: Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"],  Return: [ ["ate", "...
分类:其他好文   时间:2016-06-12 02:41:58    阅读次数:125
LeetCode:Find Minimum in Rotated Sorted Array II
Find Minimum in Rotated Sorted Array II Total Accepted: 52722 Total Submissions: 152155 Difficulty: Hard Follow up for "Find Minimum in Rotated Sorted Array": What if dupl...
分类:其他好文   时间:2016-06-12 02:29:39    阅读次数:139
【Leetcode】Longest Consecutive Sequence
题目链接:https://leetcode.com/problems/longest-consecutive-sequence/ 题目: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100,...
分类:其他好文   时间:2016-06-12 02:12:52    阅读次数:100
【一天一道LeetCode】#88. Merge Sorted Array
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处 (一)题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array....
分类:其他好文   时间:2016-06-12 02:02:54    阅读次数:106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!