概述 redis是一种nosql数据库,他的数据是保存在内存中,同时redis可以定时把内存数据同步到磁盘,即可以将数据持久化,并且他比memcached支持更多的数据结构(string,list列表[队列和栈],set[集合],sorted set[有序集合],hash(hash表))。相关参考文 ...
分类:
其他好文 时间:
2020-04-08 13:36:59
阅读次数:
65
本文解读内容是IBN Net, 笔者最初是在很多行人重识别的库中频繁遇到比如ResNet ibn这样的模型,所以产生了阅读并研究这篇文章的兴趣,文章全称是: 《Two at Once: Enhancing Learning and Generalization Capacities via IBN ...
分类:
Web程序 时间:
2020-04-08 09:20:24
阅读次数:
302
有了私服当然就得备份数据了,手机照片,工作目录,经典电影之类的,DT时代数据无价。 syncthing Syncthing is a continuous file synchronization program. It synchronizes files between two or more ...
分类:
其他好文 时间:
2020-04-07 22:42:29
阅读次数:
332
Problem : Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the m ...
分类:
其他好文 时间:
2020-04-07 22:40:21
阅读次数:
74
63.数据流中的中位数 题目描述 如何得到一个数据流中的中位数?如果从数据流中读出奇数个数值,那么中位数就是所有数值排序之后位于中间的数值。如果从数据流中读出偶数个数值,那么中位数就是所有数值排序之后中间两个数的平均值。我们使用Insert()方法读取数据流,使用GetMedian()方法获取当前读 ...
分类:
其他好文 时间:
2020-04-06 23:56:10
阅读次数:
117
题目描述: 给定两个大小为 m 和 n 的有序数组 nums1 和 nums2。 请你找出这两个有序数组的中位数,并且要求算法的时间复杂度为 O(log(m + n))。 你可以假设 nums1 和 nums2 不会同时为空。 示例 1: nums1 = [1, 3]nums2 = [2] 则中位数 ...
分类:
其他好文 时间:
2020-04-06 17:09:52
阅读次数:
87
redis 是一个基于内存的高性能 key-value数据库,支持丰富的数据类型(String,List , Set ,Sorted Set,Hash )redis中的单个value的存储限制是1G,比 Memcached的1MB要强大太多。 问题一: 如何保证 redis 的高并发和高可用?red ...
分类:
其他好文 时间:
2020-04-06 11:38:36
阅读次数:
69
1 class Solution: 2 def hIndex(self, citations: 'List[int]') -> int: 3 n = len(citations) 4 if n == 0: 5 return 0 6 citations = sorted(citations,rever ...
分类:
其他好文 时间:
2020-04-06 10:06:40
阅读次数:
61
Given a list of positive integers nums and an int target, return indices of the two numbers such that they add up to a target - 30. Conditions: You wi ...
分类:
其他好文 时间:
2020-04-06 09:49:05
阅读次数:
76
We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Euclid ...
分类:
其他好文 时间:
2020-04-06 09:25:29
阅读次数:
73