Author: Stan Eisenstat
Subject: Re: [Cs223] Pop and Adding from Deque
Date: Thursday, 19 Mar 2020, 15:18:39
> Message Posted By: Unknown > > Are we allowed to pop from the top of a deque and add to the bottom of the > same deque or do we need to first store the value on another stack? Yes, you can remD() a pointer from the head of a Deque and then addD() it to the tail, thereby using it as a queue. --Stan-PREV INDEX NEXT