简介: Redis是一种高级key-value数据库。它跟memcached类似,不过数据可以持久化,而且支持的数据类型很丰富。有字符串,链表,集 合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis也可以被看成是一个数据结构服务器。 Re ...
分类:
其他好文 时间:
2018-02-25 15:56:48
阅读次数:
239
译者按: 惯用Haskell的我更爱map。 原文: JavaScript?—?Map vs. ForEach - What’s the difference between Map and ForEach in JavaScript? 译者: Fundebug 为了保证可读性,本文采用意译而非直译 ...
分类:
编程语言 时间:
2018-02-25 13:14:02
阅读次数:
253
```
a = set([1,2,3,4])
b = set([3,4,5,6]) print(a.intersection(b)) # 交集 {3, 4}
print(a.union(b)) # 并集 {1, 2, 3, 4, 5, 6}
print(a.difference(b)) # 差集 i... ...
分类:
编程语言 时间:
2018-02-21 12:21:35
阅读次数:
215
【链接】 "我是链接,点我呀:)" 【题意】 在这里输入题意 【题解】 尺取法。 考虑一个1..i的窗口。 里面在到达了i位置的时候恰好有1..k这些数字了。 为了更接近答案。 显然可以试着让左端点变成2.(如果还能有1..k这些数字的话。 所以有1..k这些数字之后。就让左端点尽可能往右。 然后尝 ...
分类:
其他好文 时间:
2018-02-20 20:21:00
阅读次数:
158
Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree.Exam... ...
分类:
其他好文 时间:
2018-02-12 23:41:33
阅读次数:
652
Given a list of 24-hour clock time points in "Hour:Minutes" format, find the minimum minutes difference between any two time points in the list.Exampl... ...
分类:
其他好文 时间:
2018-02-12 23:37:25
阅读次数:
214
Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa ...
分类:
其他好文 时间:
2018-02-12 21:00:58
阅读次数:
235
Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa ...
分类:
其他好文 时间:
2018-02-11 23:38:11
阅读次数:
162
Given a start IP address ip and a number of ips we need to cover n, return a representation of the range as a list (of smallest possible length) of CI ...
分类:
其他好文 时间:
2018-02-11 10:43:16
阅读次数:
257