![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
design
文章平均质量分 83
小榕流光
这个作者很懒,什么都没留下…
展开
-
[leetcode] 353. Design Snake Game 解题报告
题目链接: https://leetcode.com/problems/design-snake-game/Design a Snake game that is played on a device with screen size = width x height. Play the game online if you are not familiar with the ga原创 2016-06-25 04:53:44 · 3879 阅读 · 0 评论 -
[leetcode] 146. LRU Cache 解题报告
题目链接: https://leetcode.com/problems/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) - Ge原创 2016-03-28 04:48:38 · 5958 阅读 · 0 评论 -
[leetcode] 281. Zigzag Iterator 解题报告
题目链接:https://leetcode.com/problems/zigzag-iterator/Given two 1d vectors, implement an iterator to return their elements alternately.For example, given two 1d vectors:v1 = [1, 2]v2 = [3, 4原创 2016-03-13 23:12:33 · 1692 阅读 · 0 评论 -
[leetcode] 251. Flatten 2D Vector 解题报告
题目链接: https://leetcode.com/problems/flatten-2d-vector/Implement an iterator to flatten a 2d vector.For example,Given 2d vector =[ [1,2], [3], [4,5,6]]By calling next repe原创 2016-03-17 13:55:04 · 3174 阅读 · 0 评论 -
[leetcode] 284. Peeking Iterator 解题报告
题目链接: https://leetcode.com/problems/peeking-iterator/Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek()operati原创 2016-05-01 14:46:09 · 1196 阅读 · 0 评论 -
[leetcode] 362. Design Hit Counter 解题报告
题目链接: https://leetcode.com/problems/design-hit-counter/Design a hit counter which counts the number of hits received in the past 5 minutes.Each function accepts a timestamp parameter (in sec原创 2016-06-24 14:40:31 · 3308 阅读 · 0 评论 -
[leetcode] 348. Design Tic-Tac-Toe 解题报告
题目链接: https://leetcode.com/problems/design-tic-tac-toe/Design a Tic-tac-toe game that is played between two players on a n x n grid.You may assume the following rules:A move is guarantee原创 2016-06-25 02:50:37 · 4040 阅读 · 0 评论 -
[leetcode] 355. Design Twitter 解题报告
题目链接:https://leetcode.com/problems/design-twitter/Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see the 10 most recent tweets in原创 2016-06-15 08:13:51 · 2499 阅读 · 0 评论