using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CourseWork_EredavkinRA { public enum Operation { pushBack, pushFront, popBack, popFront, None = -1 } public class ArrayDequeState { public Operation operation; public int[] Array { get; } public int Top; public int Size; public ArrayDequeState(int[] array, int top, Operation oper = Operation.None) { operation = oper; Array = array; Top = top; Size = array.Length; } } }