mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 21:24:53 +08:00
Add Go codes to docs, including
the chapter of stack and queue, the chapter of tree.
This commit is contained in:
@ -21,7 +21,7 @@ public class deque {
|
||||
deque.offerFirst(1);
|
||||
System.out.println("双向队列 deque = " + deque);
|
||||
|
||||
/* 访问队首元素 */
|
||||
/* 访问元素 */
|
||||
int peekFirst = deque.peekFirst();
|
||||
System.out.println("队首元素 peekFirst = " + peekFirst);
|
||||
int peekLast = deque.peekLast();
|
||||
|
||||
Reference in New Issue
Block a user