码迷,mamicode.com
首页 >  
搜索关键字:python list    ( 182949个结果
[leetcode]Best Time to Buy and Sell Stock II @ Python
原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/题意:Say you have an array for which theithelement is the price of a given stoc...
分类:编程语言   时间:2014-06-06 20:04:46    阅读次数:400
Sort List
Sort a linked list inO(nlogn) time using constant space complexity./** * Definition for singly-linked list. * struct ListNode { * int val; * L...
分类:其他好文   时间:2014-06-06 20:01:30    阅读次数:333
网址大全(IT之类的)
Python : codes sources, forum, tutoriaux et astucesWriting Idiomatic Python BookPython for ArcGIS | ArcGIS Resource CenterPython Code Examples | YEI T...
分类:其他好文   时间:2014-06-06 18:42:33    阅读次数:223
sharepoint ECMA
在使用SharePoint ECMAScript之前,我们需要引入几个JS文件:SP.jsSP.Core.jsSP.Runtime.jsSP.js:包含主要的能够用来获取sharepoint数据的对象,如ClientContext、Web、List、Listitem等SP.Core.js:包含一些实...
分类:其他好文   时间:2014-06-06 18:41:19    阅读次数:182
java:类集框架
类集框架:jdk提供的一系列类和接口,位于java.util包当中,主要用于存储和管理对象,主要分为三大类:集合、列表和映射。集合Set:用于存储一系列对象的集合。无序、不允许重复元素。列表List:用来存储有顺序的一组数据的集合。有序映射Map:以键值对的方式进行数据存储的集合。类集框架主体结构:...
分类:编程语言   时间:2014-06-06 18:24:14    阅读次数:271
BlockQueue中ArrayBlockingQueue和LinkedBlockingQueue比较
LinkedBlockingQueue是BlockingQueue的一种使用Link List的实现,它对头和尾(取和添加操作)采用两把不同的锁,相对于ArrayBlockingQueue提高了吞吐量。它也是一种阻塞型的容器,适合于实现“消费者生产者”模式。ArrayBlockingQueue是对B...
分类:数据库   时间:2014-06-06 18:19:29    阅读次数:1947
[算法导论]quicksort algorithm @ Python
算法导论上面快速排序的实现。代码:def partition(array, left, right): i = left-1 for j in range(left, right): if array[j] <= array[right]: i += ...
分类:编程语言   时间:2014-06-06 18:18:13    阅读次数:351
Convert Sorted List to Binary Search Tree
Convert Sorted List to Binary Search Tree
分类:其他好文   时间:2014-06-06 18:11:06    阅读次数:165
[leetcode]Triangle @ Python
原题地址:https://oj.leetcode.com/problems/triangle/题意:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent n...
分类:编程语言   时间:2014-06-06 17:31:34    阅读次数:397
关于python 模块导入
__name__指示模块应该如何被加载: 由于主程序代码无论模块是被导入还是被直接运行都会运行,我们必须知道模块如何决定运行方向。一个应用程序可能需要导入另一个应用程序的一个模块,以便重用一些有用的代码(否则就只能用拷贝粘贴那种非面向对象的笨拙的方法),这种情况的下,你只想访问那些位于其他应用程序....
分类:编程语言   时间:2014-06-06 16:26:41    阅读次数:271
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!