mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-04 22:28:40 +08:00
Update deque.cs
This commit is contained in:
@ -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>();
|
||||||
|
|
||||||
/* 元素入队 */
|
/* 元素入队 */
|
||||||
|
|||||||
Reference in New Issue
Block a user