LeetCode真题_026_Remove Duplicates from Sorted Array ...
分类:
其他好文 时间:
2019-01-04 20:24:18
阅读次数:
155
Given an array that is initially stored in one stack, sort it with one additional stacks (total 2 stacks). After sorting the original stack should con ...
分类:
其他好文 时间:
2019-01-04 14:33:09
阅读次数:
154
LeetCode真题_021_Merge Two Sorted Lists ...
分类:
其他好文 时间:
2019-01-04 12:45:54
阅读次数:
182
Given one stack with integers, sort it with two additional stacks (total 3 stacks). After sorting the original stack should contain the sorted integer ...
分类:
其他好文 时间:
2019-01-03 19:42:10
阅读次数:
177
Redis redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型)。这些数据类型都支持push/pop、add/rem ...
分类:
系统相关 时间:
2019-01-01 15:24:37
阅读次数:
186
Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can be for ...
分类:
其他好文 时间:
2019-01-01 11:44:48
阅读次数:
194
redis Q:redis有哪些优势? (1) 速度快,因为数据存在内存中 (2) 支持丰富数据类型,支持string,list,set,sorted set,hash (3) 支持事务,操作都是原子性,所谓的原子性就是对数据的更改要么全部执行,要么全部不执行 (4) 丰富的特性:可用于缓存,消息, ...
分类:
编程语言 时间:
2018-12-30 23:18:33
阅读次数:
150
listA = [3,4,5,3,2,1,] print(sorted(listA)) # [1, 2, 3, 3, 4, 5] listB =["a","z","b","e","l","qq"] print(sorted(listB)) print(sorted(listB ,key=lambda ...
分类:
编程语言 时间:
2018-12-29 15:14:56
阅读次数:
160
Sort a linked list using insertion sort. A graphical example of insertion sort. The partial sorted list (black) initially contains only the first elem ...
分类:
其他好文 时间:
2018-12-27 18:50:35
阅读次数:
105
redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型)。这些数据类型都支持push/pop、add/remove及取交... ...
分类:
其他好文 时间:
2018-12-27 18:42:26
阅读次数:
157