Added + Completed Queue Datastructure
This commit is contained in:
@ -21,6 +21,13 @@ Console.WriteLine("Hello, World!");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// DoublyLinkedList<int> list = new DoublyLinkedList<int>();
|
||||
|
||||
// list.Append(1);
|
||||
@ -40,10 +47,60 @@ Console.WriteLine("Hello, World!");
|
||||
// Console.Write($"{list[6]} \n");
|
||||
|
||||
|
||||
Stack<int> test = Stack<int>.Create();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//Stack<int> stack = Stack<int>.Create();
|
||||
|
||||
//stack.Push(1);
|
||||
//stack.Push(2);
|
||||
//stack.Push(3);
|
||||
//stack.Push(4);
|
||||
//stack.Push(5);
|
||||
//stack.Push(6);
|
||||
|
||||
//Console.WriteLine(stack.Peek());
|
||||
|
||||
//stack.Pop();
|
||||
//stack.Push(7);
|
||||
|
||||
//stack.Pop();
|
||||
//stack.Pop();
|
||||
//stack.Pop();
|
||||
//stack.Pop();
|
||||
//stack.Pop();
|
||||
//stack.Pop();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//Queue<int> queue = Queue<int>.Create();
|
||||
|
||||
//queue.Push(1);
|
||||
//queue.Push(2);
|
||||
//queue.Push(3);
|
||||
//queue.Push(4);
|
||||
//queue.Push(5);
|
||||
//queue.Push(6);
|
||||
|
||||
//Console.WriteLine(queue.Peek());
|
||||
|
||||
//queue.Pop();
|
||||
//queue.Push(7);
|
||||
|
||||
//queue.Pop();
|
||||
//queue.Pop();
|
||||
//queue.Pop();
|
||||
//queue.Pop();
|
||||
//queue.Pop();
|
||||
//queue.Pop();
|
||||
|
||||
|
||||
Console.ReadLine();
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user