28 lines
802 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
namespace AiSD_Lab1;
public class Program
{
public static void Main(String[] args)
{
Console.WriteLine("Сортировка слиянием");
Sort sort = new Sort();
sort.RandomArr();
sort.PrintArr();
sort.MergeSort(sort.arr, 0, sort.arr.Length - 1);
sort.PrintArr();
Deque deque = new Deque("Статуя свободы");
Console.WriteLine(deque.GetAll());
deque.AddFirst("Успенский собор");
Console.WriteLine(deque.GetAll());
deque.AddLast("Эйфелева башня");
Console.WriteLine(deque.GetAll());
deque.RemoveLast();
Console.WriteLine(deque.GetAll());
deque.RemoveFirst();
Console.WriteLine(deque.GetAll());
}
}