You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out that only one inversion of push and pop works with this. To invert pop we would have to move the "tail" pointer backwards, but because our list is singly-linked, we can't do that efficiently. If we instead invert push we only have to move the "head" pointer forward, which is easy.
I believe the last sentence should say move the "tail" pointer forward. Moving the head pointer forward would not make sense as part of a push operation. The code that follows moves the tail pointer forward, not the head pointer.
The text was updated successfully, but these errors were encountered:
Chapter 6.1 says:
I believe the last sentence should say move the "tail" pointer forward. Moving the head pointer forward would not make sense as part of a push operation. The code that follows moves the tail pointer forward, not the head pointer.
The text was updated successfully, but these errors were encountered: