mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 12:58:42 +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 @@ int main() {
|
||||
cout << "双向队列 deque = ";
|
||||
PrintUtil::printDeque(deque);
|
||||
|
||||
/* 访问队首元素 */
|
||||
/* 访问元素 */
|
||||
int front = deque.front();
|
||||
cout << "队首元素 front = " << front << endl;
|
||||
int back = deque.back();
|
||||
|
||||
Reference in New Issue
Block a user