for index, value in enumerate(list): print index, value
分类:
编程语言 时间:
2014-07-02 20:57:35
阅读次数:
478
一、 PUll解析Xmlpublic static List xmlParser(InputStream xml) throws Exception { List persons=null; Person p=null; XmlPullParser p...
分类:
移动开发 时间:
2014-07-02 20:21:15
阅读次数:
205
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.合并k个排序列表解题思路是:取出 k个元素进行堆排序,每次取出最小的元素,插入链表中即可注意本题利用了c++...
分类:
其他好文 时间:
2014-07-02 20:16:54
阅读次数:
273
Reverse a linked list from position m to n. Do it in-place and in one-pass.
分类:
其他好文 时间:
2014-07-02 20:12:57
阅读次数:
182
排序,在编程中经常遇到的算法,我也在几篇文章中介绍了一些关于排序的算法。有的高级语言内置了一些排序函数。本文讲述Python在这方面的工作。供使用python的程序员们参考,也让没有使用python的朋友了解python。领略一番“生命有限,请用Python”的含义。
内置函数sorted()/list.sort()的使用
简单应用
python对list有一个内置函数:...
分类:
编程语言 时间:
2014-07-02 09:41:58
阅读次数:
224
??
挑库选择列表生成-SRS(R12.2.3)
--US
Program:Pick Selection List Generation - SRS
Short Name:WSHPSRS
Application:Shipping Execution
Executable:WSHPSRS
--ZHS
程序:挑库选择列表生成 - SRS
简称:WSHPSRS
应用产...
分类:
其他好文 时间:
2014-07-02 09:34:05
阅读次数:
191
【题目】
Sort a linked list in O(n log n) time using constant space complexity.
【题意】
排序一个链表,要求时间复杂度O(nlogn),使用常量空间
【思路】
nlogn的复杂度,用归并排序求解...
分类:
其他好文 时间:
2014-07-02 09:25:40
阅读次数:
252
【题目】
Sort a linked list using insertion sort.
【题意】
用插入排序方法排序链表
【思路】
直接搞...
分类:
其他好文 时间:
2014-07-02 08:33:49
阅读次数:
200
这个例子中用了反射,泛型实现了通用的excel读写方法。
我们常常遇到要把一个类class写入excel的时候,有时候class的字段非常多,我们不可能一个个的去get写入excel。这里写了一个通用方法。只要传入数据的list和类型,就能很方便的把数据写入excel,也能很方便的读取出来。
例子下载:
java通过class读写excel的例子
首先要引用这两个包
...
分类:
编程语言 时间:
2014-07-02 07:44:16
阅读次数:
232
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first
two lists.
代码如下:
* Definition for singly-linked list.
* struct L...
分类:
其他好文 时间:
2014-07-02 07:23:59
阅读次数:
159