mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 00:56:29 +08:00
Update deque.cs
This commit is contained in:
parent
0cf37e3f8e
commit
c67363a78e
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ namespace hello_algo.chapter_stack_and_queue
|
||||||
public void Test()
|
public void Test()
|
||||||
{
|
{
|
||||||
/* 初始化双向队列 */
|
/* 初始化双向队列 */
|
||||||
|
// 在 C# 中,将链表 LinkedList 看作双向队列来使用
|
||||||
LinkedList<int> deque = new LinkedList<int>();
|
LinkedList<int> deque = new LinkedList<int>();
|
||||||
|
|
||||||
/* 元素入队 */
|
/* 元素入队 */
|
||||||
|
|
Loading…
Reference in a new issue