博客
关于我
AcWing 828. 模拟栈
阅读量:348 次
发布时间:2019-03-04

本文共 471 字,大约阅读时间需要 1 分钟。

??????????????????????????

  • ???????

    • ???????????????????1000000??????100000????
  • ?????

    • static int tt = 0???????????????0?
    • static int[] st = new int[N];?????????????
  • push???

    • ????x????????st[tt] = x???tt++?
  • pop???

    • ??tt > 0?????????????tt--??????????
  • empty???

    • ??tt > 0????????????NO??????YES?
  • query???

    • ???????????????st[tt]?????-1?
  • ???????

    • ??M????????????
    • ??empty?query????????????????????
  • ??????

    • ???????????????
    • ????????????????????
  • ???????????????????????????????????????????

    转载地址:http://okre.baihongyu.com/

    你可能感兴趣的文章
    OSS直传与UXCore-Uploader实践
    查看>>
    Spring详解Bean的生命周期
    查看>>
    OS模块
    查看>>
    OS第1章
    查看>>
    OS第2章 —— 进程
    查看>>
    OS第3章 —— 进程调度和死锁
    查看>>
    OS第5章
    查看>>
    OS第6章 —— 设备管理
    查看>>
    OTA测试
    查看>>
    Other User's Bloh Links
    查看>>
    others
    查看>>
    Oulipo
    查看>>
    Outlook 2010 Inside Out
    查看>>
    outlook 2016 接收发送无法及时收下邮件,如何更改接收时间?
    查看>>
    Outlook Express could not be started
    查看>>
    outlook express 故障
    查看>>
    outlook gmail setting
    查看>>
    spring自定义线程池 逻辑 配置 ThreadPoolTaskExecutor corePoolSize maxPoolSize queueCapacity rejectedExecutionHa
    查看>>
    Outlookbar-style menu interface
    查看>>
    outlook中XXX.xls附件无法打开解决办法
    查看>>