PREV INDEX NEXT

Author: Unknown
Subject: can pushD() cause an overflow?
Date: Tuesday, 24 Mar 2020, 14:33:53

the spec indicates that pushD() should push values onto the head of the deque. Since we are implementing the deque using two stacks, should we worry about the case where a pushD() onto the H stack would cause an overflow?
PREV INDEX NEXT