
Queue
文章平均质量分 75
zshouyi
这个作者很懒,什么都没留下…
展开
-
346. Moving Average from Data Stream
Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example, MovingAverage m = new MovingAverage(3); m.next(1) = 1 m.next(10) =原创 2017-02-11 09:15:35 · 651 阅读 · 0 评论 -
353. 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 game. The snake is initially positioned at the top left cor原创 2017-06-16 16:41:06 · 662 阅读 · 0 评论 -
582. Kill Process
Given n processes, each process has a unique PID (process id) and its PPID (parent process id). Each process only has one parent process, but may have one or more children processes. This is just原创 2017-06-03 06:40:19 · 736 阅读 · 0 评论