码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
list集合、txt文件对比的工具类和文件读写工具类
工作上经常会遇到处理大数据的问题,下面两个工具类,是在处理大数据时编写的;推荐的是使用map的方式处理两个list数据,如果遇到list相当大数据这个方法就起到了作用,当时处理了两个十万级的list,使用改方法的变种搞定。 1.txt文件、list集合比较工具 package com.hudong.util.other; import java.util.Collection; import...
分类:其他好文   时间:2014-06-08 18:14:05    阅读次数:326
查看你的Android签名信息-创建签名千万要写全
1. 用命令行来查看签名文件里面的内容 keytool位置 C:\Program Files\Java\jdk1.7.0_51\bin\keytool.exe 命令格式 keytool -list -v -keystore e:/keytool/yushan.keystore -storepass 123456...
分类:移动开发   时间:2014-06-08 18:04:50    阅读次数:273
字典树 Trie (HDU 1671)
Problem Description Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue listed these numbers: 1. Emergenc...
分类:其他好文   时间:2014-06-08 10:31:22    阅读次数:234
自定义PopupWindow实现3急地区联动
做项目时有时我们会需要3级联动,比如注册,买东西下单等,这里我在android上使用popupwindow实现3级联动功能,我实现的思路是,当程序启动时就将后台的地区JSON数据格式全部加载上来,通过SharedPreferences将获取到的数据保存,点击按钮获取SharedPreferences中的地区数据,再通过JSONObject转为List集合,具体实现如下: 布局文件: activ...
分类:Windows程序   时间:2014-06-08 10:29:42    阅读次数:417
Python的二维数组
Python一维数组初始化:>>> list=[]>>> type(list)>>> list[]Python二维数组初始化:>>> lists = [[]] * 3>>> lists[[], [], []]>>> lists[0].append(3)>>> lists[[3], [3], [3]]...
分类:编程语言   时间:2014-06-07 23:49:56    阅读次数:563
用一个集合这么难?
集合有序否允许元素重复否Collection否是List是是SetAbstractSet否否HashSetTreeSet是(用二叉树排序)MapAbstractMap否使用key-value来映射和存储数据,Key必须惟一,value可以重复HashMapTreeMap是(用二叉树排序)目的:用数组...
分类:其他好文   时间:2014-06-07 23:42:39    阅读次数:312
Windows 7下解决: java.net.SocketException: No buffer space available (maximum connections reached?)
查了一大堆网上的资料全都没用,Google得知,是Windows 7 的socket泄漏 :https://supportkb.riverbed.com/support/index?page=content&id=S23580&actp=LIST_RECENT补丁下载地址: http://suppo...
分类:编程语言   时间:2014-06-07 22:19:32    阅读次数:857
Linux 内核 链表 的简单模拟(2)
接上一篇Linux 内核 链表 的简单模拟(1) 第五章:Linux内核链表的遍历/*** list_for_each - iterate over a list* @pos: the &struct list_head to use as a loop cursor.* @...
分类:系统相关   时间:2014-06-07 22:09:58    阅读次数:451
数据结构中线性表的基本操作-合并两个线性表-依照元素升序排列
#include#include#define LIST_INIT_SIZE 10/*线性表初始长度*/#define LIST_CREATENT 2/*每次的增量*/typedef int ElemType;using namespace std;typedef struct SqList/*线性...
分类:其他好文   时间:2014-06-07 21:01:21    阅读次数:322
LeetCode OJ - Partition List
题目:Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the or...
分类:其他好文   时间:2014-06-07 20:35:55    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!