标签:stack 时间 null title 数据 UNC describe fun scribe
var stack = [];
function push(node)
{
// write code here
stack.push(node);
}
function pop()
{
// write code here
return stack.pop();
}
function top()
{
// write code here
return stack.length == 0 ? null : stack[0];
}
function min()
{
// write code here
return Math.min.apply(null,stack);
}
标签:stack 时间 null title 数据 UNC describe fun scribe
原文地址:https://www.cnblogs.com/3yleaves/p/9601981.html