摘要: 题目: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the 阅读全文
posted @ 2020-01-06 15:10 silentteller 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 题目: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get 阅读全文
posted @ 2020-01-06 00:24 silentteller 阅读(709) 评论(0) 推荐(0) 编辑