2020年11月22日

单调队列 Monotonic Queue应用:leetcode(未完待续)

摘要: 239. Sliding Window Maximum 581: https://leetcode.com/problems/shortest-unsorted-continuous-subarray/ 862: https://leetcode.com/problems/shortest-suba 阅读全文

posted @ 2020-11-22 15:32 wsw_seu 阅读(149) 评论(0) 推荐(0) 编辑

240. Search a 2D Matrix II

摘要: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted i 阅读全文

posted @ 2020-11-22 10:23 wsw_seu 阅读(171) 评论(0) 推荐(0) 编辑

一致性Hash算法(原创发布于慕课网)

摘要: 一致性哈希算法在1997年由麻省理工学院的Karger等人在解决分布式Cache中提出的,设计目标是为了解决因特网中的热点(Hot spot)问题,初衷和CARP十分类似。一致性哈希修正了CARP使用的简单哈希算法带来的问题,使得DHT可以在P2P环境中真正得到应用。 但现在一致性hash算法在分布 阅读全文

posted @ 2020-11-22 10:03 wsw_seu 阅读(89) 评论(0) 推荐(0) 编辑

导航