Example #1
0
        public static void Main()
        {
            var q = new LinkedQueue <int>();

            q.Enqueue(1);
            Console.WriteLine(q.Peek());
        }
Example #2
0
        public static void Main()
        {
            var q = new LinkedQueue <int>();

            q.Enqueue(1);
            q.Enqueue(4);
            q.Enqueue(44);
            q.Enqueue(56);

            Console.WriteLine(string.Join(" ", q));

            Console.WriteLine(q.Peek());
        }