leetcode刷题整理-用java作的题

JAVA一些语法整理: Queue:java Queue<String> queue = new LinkedList<String>(); queue.offer("a"); // 添加一个元素并返回true queue.poll(); // get and pop the first element queue.peek(); // 返回队列头部的元素 Stack:node Stac
相关文章
相关标签/搜索