网站首页 站内搜索

搜索结果

查询Tags标签: stacker,共有 2条记录
  • 力扣刷题-python-栈和队列(栈、队列)

    1.栈和队列在python里面,栈和列表都可以用列表来模拟,都可以用append和pop 栈 入是append() 出是pop() 列表入是append() 出是pop(0) 2.栈的经典题型 232. 用栈实现队列 - 力扣(LeetCode) (leetcode-cn.com) 这个题还蛮有意思,用两个栈来实现队列的功能。 class MyQu…

    2021/12/18 22:22:24 人评论 次浏览
  • 力扣刷题-python-栈和队列(栈、队列)

    1.栈和队列在python里面,栈和列表都可以用列表来模拟,都可以用append和pop 栈 入是append() 出是pop() 列表入是append() 出是pop(0) 2.栈的经典题型 232. 用栈实现队列 - 力扣(LeetCode) (leetcode-cn.com) 这个题还蛮有意思,用两个栈来实现队列的功能。 class MyQu…

    2021/12/18 22:22:24 人评论 次浏览
扫一扫关注最新编程教程