PREV INDEX NEXT

Author: Unknown
Subject: remD and headD
Date: Friday, 13 Mar 2020, 11:52:45

Hello Professor Eisenstat!
I had a question regarding the difference between remD and headD. Based on my understanding, remD completely "deletes" the node while setting a pointer to that string so we have the value of it; while headD does no altering to the deque, but simply pulls the value (the string) stored at the first node. If this is correct, for headD how would the value of *d change? (if we're not altering the deque)
Thank you!
PREV INDEX NEXT