mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-03 21:58:48 +08:00
Update deque.md
This commit is contained in:
@ -168,7 +168,7 @@ comments: true
|
|||||||
|
|
||||||
```csharp title="deque.cs"
|
```csharp title="deque.cs"
|
||||||
/* 初始化双向队列 */
|
/* 初始化双向队列 */
|
||||||
/* LinkedList 是 C# 中使用双向链表实现的双向队列 */
|
// 在 C# 中,将链表 LinkedList 看作双向队列来使用
|
||||||
LinkedList<int> deque = new LinkedList<int>();
|
LinkedList<int> deque = new LinkedList<int>();
|
||||||
|
|
||||||
/* 元素入队 */
|
/* 元素入队 */
|
||||||
|
|||||||
Reference in New Issue
Block a user