摘要: 设计单调栈 class Solution { class MyQueue{ Deque<Integer> deque = new LinkedList<>(); // 弹出元素时,比较当前要弹出的数值是否等于队列出口的数值,如果相等则弹出 public void poll(int val){ if( 阅读全文
posted @ 2023-04-17 21:32 Chenyi_li 阅读(19) 评论(0) 推荐(0)