
Lintcode
文章平均质量分 79
心海夜航
这个作者很懒,什么都没留下…
展开
-
LRU Cache -- Lintcode 134
原题连接: http://www.lintcode.com/en/problem/lru-cache/ Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key)原创 2017-02-04 07:49:50 · 329 阅读 · 0 评论 -
Strobogrammatic Number -- Leetcode 246
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a number is strobogrammatic. The number is represented as a原创 2017-02-07 06:33:11 · 300 阅读 · 0 评论