搞生物的这么悲催啊。。。# Biology - 生物学
t*e
1 楼
how to design a queue, in addition to insert(), delete(), also has a
function min() which returns the minumum element? Can you do all functions
in O(1) time?
careercup上有一道关于stack的类似的题,很容易就做到O(1)了,但是这个queue的比
较难想……
请大虾赐教……
function min() which returns the minumum element? Can you do all functions
in O(1) time?
careercup上有一道关于stack的类似的题,很容易就做到O(1)了,但是这个queue的比
较难想……
请大虾赐教……