Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have some array B ...
分类:
其他好文 时间:
2018-10-07 13:51:19
阅读次数:
143
四层、七层负载均衡的区别 https://jaminzhang.github.io/lb/L4-L7-Load-Balancer-Difference/ 回顾: lvs:l4 switch, l4 router vip, port, {tcp|udp} ...
分类:
其他好文 时间:
2018-10-06 21:38:41
阅读次数:
143
Given a set of points in the plane. the convex hull of the set is the smallest convex polygon that contains all the points of it. https://www.geeksfor ...
分类:
其他好文 时间:
2018-10-05 12:10:00
阅读次数:
126
Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains less than 2 el ...
分类:
其他好文 时间:
2018-10-04 11:24:37
阅读次数:
170
This is a follow up of Shortest Word Distance. The only difference is now word1 could be the same as word2. Given a list of words and two words word1 ...
分类:
其他好文 时间:
2018-10-02 14:13:49
阅读次数:
264
This is a follow up of Shortest Word Distance. The only difference is now you are given the list of words and your method will be called repeatedly ma ...
分类:
其他好文 时间:
2018-10-02 13:51:27
阅读次数:
197
set 的简介: python的set和其他语言类似, 是一个无序不重复元素集, 基本功能包括关系测试和消除重复元素. 集合对象还支持union(联 合), intersection(交), difference(差)和sysmmetric difference(对称差集)等数学运算. 创建集合: ...
分类:
编程语言 时间:
2018-10-01 19:57:14
阅读次数:
137
1、前言 Redis是一种高级key-value数据库。它跟memcached类似,不过数据可以持久化,而且支持的数据类型很丰富。有字符串,链表,集 合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis也可以被看成是一个数据结构服务 器。R ...
分类:
其他好文 时间:
2018-09-30 18:21:08
阅读次数:
193