博客
关于我
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/

    你可能感兴趣的文章
    OTA测试
    查看>>
    Outlook 2010 Inside Out
    查看>>
    overlay(VLAN,VxLAN)、underlay网络、大二层概述
    查看>>
    OWASP漏洞原理<最基础的数据库 第二课>
    查看>>
    OWL本体语言
    查看>>
    P with Spacy:自定义文本分类管道
    查看>>
    P1364 医院设置
    查看>>
    P2260 [清华集训2012]模积和
    查看>>
    SpringBoot中集成influxdb-java实现连接并操作Windows上安装配置的influxDB(时序数据库)
    查看>>
    SpringBoot中集成eclipse.paho.client.mqttv3实现mqtt客户端并支持断线重连、线程池高并发改造、存储入库mqsql和redis示例业务流程,附资源下载
    查看>>
    Padding
    查看>>
    paddlehub安装及对口罩检测
    查看>>
    SpringBoot中集成Actuator实现监控系统运行状态
    查看>>
    paddle的两阶段基础算法基础
    查看>>
    Page Object模式:为什么它是Web自动化测试的必备工具
    查看>>
    SpringBoot中重写addCorsMapping解决跨域以及提示list them explicitly or consider using “allowedOriginPatterns“ in
    查看>>
    PageHelper 解析及实现原理
    查看>>
    pageHelper分页工具的使用
    查看>>
    pageHelper分页技术
    查看>>
    PageHelper分页查询遇到的小问题
    查看>>