Welcome! Log In Create A New Profile

Advanced

Linked List and Stack Implementation

Posted by Anonymous User 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Anonymous User
Linked List and Stack Implementation
September 27, 2006 11:44AM
How do I push a Node from a linked list onto the stack - do we just have to push the data element, or the node - I think I confused myself a bit. Any light that can be shed on this matter will be of great help thanks. An Example will be great.
Anonymous User
Re: Linked List and Stack Implementation
September 27, 2006 11:50AM
The same with queue's - Implement a stack using a linked list / implement a queue using a linked list ??
Re: Linked List and Stack Implementation
October 03, 2006 08:35AM
Just the data element.

The node in its entirety is designed to keep track of its position in the list. You wont need the linked lists's position info in a stack so just keep the data element.
Anonymous User
Re: Linked List and Stack Implementation
October 03, 2006 11:29AM
Thanks - that helps allot!!
Sorry, only registered users may post in this forum.

Click here to login