一般大家都知道ArrayList和LinkedList的大致区别:1.ArrayList是实现了基于动态数组的数据结构,LinkedList基于链表的数据结构。2.对于随机访问get和set,ArrayList觉得优于LinkedList,因为LinkedList要移动指针。3.对于新增和删除操作add和remove,LinedList比较占优势,因为..
分类:
编程语言 时间:
2014-08-14 04:00:28
阅读次数:
457
In an attempt to remove duplicate elements from list, I go to the lengths to take advantage of methods in the java api. After investiagting the document of java api, the result is so satisfying that ...
分类:
编程语言 时间:
2014-08-14 01:30:17
阅读次数:
256
http://lldb.llvm.org/lldb-gdb.htmlim 看共享库di -f 反汇编re r -a 查看寄存器frame varialbe (fr v)查看局部变量target variable(ta v) 全局变量
分类:
数据库 时间:
2014-08-14 01:06:07
阅读次数:
226
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example, Given 1->2...
分类:
其他好文 时间:
2014-08-14 01:01:07
阅读次数:
230
给定一个数组和一个数字,删除数组中相同的数字并返回数组的新长度。...
分类:
其他好文 时间:
2014-08-13 14:57:46
阅读次数:
171
简介Roster Set名录设置操作包括创建、更新和删除联系人条目,语法上是一个从客户端发送到服务器的 IQ 节点,节点类型为 set,必须且只包含一个 item 节点,此 item 节点不应该包含 subscription 属性,除非 subscription 的值为 remove。Roster ...
分类:
其他好文 时间:
2014-08-13 03:34:05
阅读次数:
224
设计算法并写出代码移除字符串中重复的字符,不能使用额外的缓存空间。注意: 可以使用额外的一个或两个变量,但不允许额外再开一个数组拷贝。
简单题直接上代码:
#include
#include
void remove_duplicate(char vStr[])
{
int Len = strlen(vStr);
if (!Len)
{
printf("the stri...
分类:
其他好文 时间:
2014-08-13 01:11:05
阅读次数:
252
Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order...
分类:
其他好文 时间:
2014-08-13 00:38:14
阅读次数:
281
shutil:用于拷贝目录树、删除目录树,类似os.remove/os.rmdirfnmatch:通过shellglob去匹配字符串、文件名
分类:
编程语言 时间:
2014-08-12 17:38:45
阅读次数:
152
最近脑子不好用,总记不住事,以前搞过让webapi只返回json格式的数据,今天有人问我又突然想不起了,后来总结一下,备忘一下,大概有下面几种处理方式1、在WebApiConfig类的Register方法增加一行代码,清除掉xmlformatter。 config.Formatters.Remove...