Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-12-22 19:18:27
阅读次数:
180
题目Remove Duplicates from Sorted Array通过率31.9%难度EasyGiven a sorted array, remove the duplicates in place such that each element appear onlyonceand retu...
分类:
其他好文 时间:
2014-12-22 17:32:35
阅读次数:
165
终于有时间整理下自己的笔记了。。。。
一、介绍
Redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted
set --有序集合)和hash(哈希类型)。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富的操作,...
分类:
系统相关 时间:
2014-12-22 16:15:58
阅读次数:
334
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-12-22 14:25:25
阅读次数:
182
文章来源:http://jingyan.baidu.com/article/db55b60996d0124ba30a2f92.htmlRedis是一个基于key-value的高速缓存系统,类似于memcached,但是支持更复杂的数据结构List、Set、Sorted Set,并且有持久化的功能。由...
分类:
其他好文 时间:
2014-12-22 10:43:48
阅读次数:
189
标题:Merge Sorted Array通过率:31.1%难度:简单Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough s...
分类:
其他好文 时间:
2014-12-21 23:22:34
阅读次数:
249
题目:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place w...
分类:
其他好文 时间:
2014-12-21 22:08:30
阅读次数:
178
Merge Sorted ArrayGiven two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that i...
分类:
其他好文 时间:
2014-12-21 22:02:28
阅读次数:
189
题目Remove Duplicates from Sorted List通过率34.4%难度EasyGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.For example...
分类:
其他好文 时间:
2014-12-21 20:38:34
阅读次数:
165
Search in Rotated Sorted Array IIFollow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity...
分类:
其他好文 时间:
2014-12-20 23:26:15
阅读次数:
214