摘要: 两道环形队列设计的题。 LeetCode 622. Design Circular Queue LeetCode 641. Design Circular Deque 题目描述 一道题是环形 queue 的设计,circular queue is also called "Ring Buffer"; 阅读全文
posted @ 2021-03-14 21:28 与MPI做斗争 阅读(77) 评论(0) 推荐(0) 编辑
摘要: LeetCode 上两道相似的 hash 数据结构设计题。 LeetCode 705. Design HashSet LeetCode 706. Design HashMap 题目描述 两道题题干相似,都是给出接口要求实现数据结构。两道题都做出了一些简化以降低设计难度: key / value 都用 阅读全文
posted @ 2021-03-14 20:26 与MPI做斗争 阅读(79) 评论(0) 推荐(0) 编辑