find min operation in amortized O(1) time on two stack version of FIFO Queue?

后端 未结 0 1285
無奈伤痛
無奈伤痛 2020-12-04 16:48

I search lots of SO question and answer and seen we can implement Add and Remove from queue in O(1) amortized time, with two stack implementation of FIFO Queue. never seen i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题