leetcode
默默努力的小白鼠
这个作者很懒,什么都没留下…
展开
-
641. Design Circular Deque [LeetCode]
英文网址中文网址我的解答20190412class MyCircularDeque(object): def __init__(self, k): """ Initialize your data structure here. Set the size of the deque to be k. :type k: int ...原创 2019-04-12 17:25:34 · 103 阅读 · 0 评论 -
牛客网python刷题遇到问题
1.输入输出:1.输入读取示例和说明2.论坛关于多行输入的讨论可行方案2.本地调试正确而在线提交错误的可能原因博文原址原创 2019-04-13 17:14:50 · 662 阅读 · 0 评论 -
队列 计算机打印任务模拟
import osimport randomfrom collections import dequeclass Printer: def __init__(self, ppm): self.pagerate = ppm#每分钟打印多少页 self.currentTask = None self.timeRemaining = 0...原创 2019-04-14 17:47:16 · 711 阅读 · 0 评论