Exemplo n.º 1
0
        //Pop
        public T Pop()
        {
            T value = dynamicStack.Get(dynamicStack.logicalSize - 1);

            dynamicStack.Remove(dynamicStack.logicalSize - 1);
            return(value);
        }
Exemplo n.º 2
0
        //Dequeue
        public T Dequeue()
        {
            T value = dynamicQueue.Get(head);

            dynamicQueue.Remove(head);
            return(value);
        }