- 博客(8)
- 收藏
- 关注
原创 353. Design Snake Game
353.Design Snake GameDesign aSnake gamethat is played on a device with screen size =widthxheight.Play the game onlineif you are not familiar with the game.The snake is initially positioned...
2019-03-03 22:00:19 266
原创 622. Design Circular Queue
622.Design Circular QueueDesign your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) pri...
2019-03-03 07:28:27 191
原创 641. Design Circular Deque
641.Design Circular DequeDesign your implementation of the circular double-ended queue (deque).Your implementation should support following operations:MyCircularDeque(k): Constructor, set the s...
2019-03-03 05:59:07 167
原创 346. Moving Average from Data Stream
346.Moving Average from Data StreamGiven a stream of integers and a window size, calculate the moving average of all integers in the sliding window.Example:MovingAverage m = new MovingAverage(...
2019-03-02 18:27:59 287
转载 933. Number of Recent Calls
933.Number of Recent CallsWrite a classRecentCounterto count recent requests.It has only one method:ping(int t), where t represents some time in milliseconds.Return the number ofpings that ...
2019-03-02 05:45:04 163
原创 LeetCode 刷题
Design Questions:379. Design Phone DirectoryAlgorithms:Boyer-Moore MajorityVote Algorithm Kadane's algorithm
2019-02-28 18:28:51 123
原创 379. Design Phone Directory
379.Design Phone DirectoryDesign a Phone Directory which supports the following operations:get: Provide a number which is not assigned to anyone. check: Check if a number is available or not. r...
2019-02-28 16:02:02 177
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人