mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-07 15:01:58 +08:00
Add Go codes to docs, including
the chapter of stack and queue, the chapter of tree.
This commit is contained in:
@ -26,7 +26,7 @@ if __name__ == "__main__":
|
||||
duque.appendleft(1)
|
||||
print("双向队列 duque =", duque)
|
||||
|
||||
""" 访问队首元素 """
|
||||
""" 访问元素 """
|
||||
front = duque[0] # 队首元素
|
||||
print("队首元素 front =", front)
|
||||
rear = duque[-1] # 队尾元素
|
||||
|
Reference in New Issue
Block a user