涛子201807291100103
涛子201807291100103
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
涛子201807291100103的博客
全部文章
(共3篇)
题解 | #设计LRU缓存结构#
# # lru design # @param operators int整型二维数组 the ops # @param k int整型 the k # @return int整型一维数组 # import collections class Solution: def LRU(self ...
Python3
2021-10-08
1
406
题解 | #用两个栈实现队列#
# -*- coding:utf-8 -*- class Solution: def __init__(self): self.stack1 = [] self.stack2 = [] def push(self, node): # w...
Python3
2021-10-08
0
272
题解 | #统计每个月兔子的总数#
while True: try: month = int(input()) lis = [0] * month for i in range(month): if i < 2: li...
Python3
2021-10-07
5
507