码迷,mamicode.com
首页 >  
搜索关键字:列表(list)    ( 98808个结果
学习网站列表
Math: https://projecteuler.net/about Pygame: http://nullege.com/ Python: https://www.python.org/...
分类:Web程序   时间:2014-05-18 18:43:54    阅读次数:325
[矩阵+线段树] zoj 3772 Calculate the Function
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5235 Calculate the Function Time Limit: 2 Seconds      Memory Limit: 65536 KB You are given a list of numbers A1 A2 .. AN...
分类:其他好文   时间:2014-05-18 09:52:49    阅读次数:410
LeetCode: Substring with Concatenation of All Words [029]
【题目】 You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without any intervening characters. For example, given: S:...
分类:其他好文   时间:2014-05-18 08:31:48    阅读次数:228
hibernate sql查询对象到map中
public List queryBySqlMap(String asql) {           final String sql = asql;           List lst = getHibernateTemplate().executeFind( new  HibernateCallback() {                 public  Object doInHi...
分类:数据库   时间:2014-05-18 08:07:09    阅读次数:378
Leetcode | Remove Duplicates from Sorted List I && II
Remove Duplicates from Sorted List IGiven a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->...
分类:其他好文   时间:2014-05-18 01:41:31    阅读次数:361
Java List&Map简单初始化方法
Java中List与Map初始化的一些写法代码如下 复制代码 //初始化List List list = new ArrayList() { { add("obj1"); add("obj2"); add("objN"); ...
分类:编程语言   时间:2014-05-18 01:29:17    阅读次数:452
所有子线程全部结束的判断
多线程编程常遇到,主线程要等所有子线程全执行完后,主线程才开工的情况。如 何判断 所有子线程都执行结束:方法一: 主线程中设静态变量,标识活动线程数。动启一个子线程时,活动线程数递增1。当活动结束时,活动线程数减1.方法二: 把所有的子线程放到列表中,再去判断每一个线程状态。 L...
分类:编程语言   时间:2014-05-18 01:14:57    阅读次数:262
线性表运算--链式存储结构模板类实现
采用C++模板类实现 1 #ifndef _List_H_ 2 #define _List_H_ 3 #include 4 #include "stdlib.h" 5 template 6 class CNode 7 { 8 public: 9 T data; 10 ...
分类:其他好文   时间:2014-05-18 00:38:59    阅读次数:407
C++ PRIMER 第九章
顺序容器:vector list deque顺序容器适配器: stack queue priority_quequ(没见过,第一轮不管)C c; C c(c2); C c(b,e) ///b e 都是迭代器; c(n,t)///只用于顺序容器; C c(n) ///只用于顺序容器const list...
分类:编程语言   时间:2014-05-17 23:43:37    阅读次数:471
Python sorted
sorted函数:iterable:是可迭代类型;cmp:用于比较的函数,比较什么由key决定,有默认值,迭代集合中的一项;key:用列表元素的某个属性和函数进行作为关键字,有默认值,迭代集合中的一项;reverse:排序规则. reverse = True 或者 reverse = False,有...
分类:编程语言   时间:2014-05-17 23:36:24    阅读次数:511
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!