本文共 471 字,大约阅读时间需要 1 分钟。
??????????????????????????
???????
?????
static int tt = 0???????????????0?static int[] st = new int[N];?????????????push???
st[tt] = x???tt++?pop???
tt > 0?????????????tt--??????????empty???
tt > 0????????????NO??????YES?query???
st[tt]?????-1????????
empty?query??????????????????????????
???????????????????????????????????????????
转载地址:http://okre.baihongyu.com/