lordofcheese Posted July 23, 2008 Share Posted July 23, 2008 I want a function in my linked list to swap two nodes. That is, I want the first node to move to where the second node is while retaining the next and prev references in the first node somehow in order to assign these references to the second node. I am having a lot of trouble. Anyone know how this can be done? Link to comment https://forums.phpfreaks.com/topic/116257-php-linked-list-swap-nodes/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.