首页 > TAG信息列表 > Offer09
【剑指 Offer09】用两个栈实现队列
/** * 剑指 Offer 09. 用两个栈实现队列 * https://leetcode.cn/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof/ * */ public class CQueue { private Deque<Integer> stack1; private Deque<Integer> stack2; public CQueue() { stack1 = ne