码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
java 遍历arrayList的四种方法
package com.test; import java.util.ArrayList;import java.util.Iterator;import java.util.List; public class ArrayListDemo { public static void main(Str ...
分类:编程语言   时间:2016-05-20 22:24:13    阅读次数:207
顺序表与链表的基本操作
SqList typedef struct { ElemType *elem; //存储空间基址 int length; //当前长度 int listsize; //当前容量 }SqList ; L->elem = (ElemType*)mallloc(LIST_INIT_SIZE*sizeof(... ...
分类:其他好文   时间:2016-05-20 22:11:46    阅读次数:148
redis
Redis介绍: redis是一个高性能的key-value存储系统。和Memcached类似,但它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)和zset(有序集合)。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富 ...
分类:其他好文   时间:2016-05-20 17:23:10    阅读次数:207
图解集合4:HashMap
初识HashMap 之前的List,讲了ArrayList、LinkedList,最后讲到了CopyOnWriteArrayList,就前两者而言,反映的是两种思想: (1)ArrayList以数组形式实现,顺序插入、查找快,插入、删除较慢 (2)LinkedList以链表形式实现,顺序插入、查找较 ...
分类:其他好文   时间:2016-05-20 17:20:16    阅读次数:215
六十 数据库访问 使用SQLAlchemy
数据库表是一个二维表,包含多行多列。把一个表的内容用Python的数据结构表示出来的话,可以用一个list表示多行,list的每一个元素是tuple,表示一行记录,比如,包含id和name的user表: Python的DB-API返回的数据结构就是像上面这样表示的。 但是用tuple表示一行很难看出 ...
分类:数据库   时间:2016-05-20 16:01:22    阅读次数:214
redis的数据类型及设置方法
1.redis支持的五种数据类型字符串(string)、Hash(哈希)、list(列表)、set(集合)、zset(有序集合);2.string是redis最基本的类型,一个键最大可以支持存储512MB;setname"lanyulei"delname//设置一个key是name,对应的value是兰玉磊的字符串getname//结果集为"lanyulei"3.redis ..
分类:其他好文   时间:2016-05-20 14:49:19    阅读次数:129
LeetCode 206
Reverse Linked List Reverse a singly linked list. Hint: A linked list can be reversed either iteratively or recursively. Could you implement both? ...
分类:其他好文   时间:2016-05-20 13:26:09    阅读次数:189
LeetCode 19
Remove Nth Node From End of List Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1- ...
分类:其他好文   时间:2016-05-20 13:21:27    阅读次数:117
LeetCode 142
Linked List Cycle II Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked li ...
分类:其他好文   时间:2016-05-20 13:17:32    阅读次数:120
LeetCode 141
Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? ...
分类:其他好文   时间:2016-05-20 13:14:56    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!