im using my own code......lets say i have my function: swap(Node n1, Node n2);
since i want to swap nodes, how do i pass the nodes that i want to swap? if i want to pass node with content 5 and node...
Type: Posts; User: ueg1990
im using my own code......lets say i have my function: swap(Node n1, Node n2);
since i want to swap nodes, how do i pass the nodes that i want to swap? if i want to pass node with content 5 and node...
i have a question regarding swapping nodes in a linked list. Suppose we have a linked list : 2->5->7->4->6
Suppose we want to swap node with value 5 and node with value 4. What do we pass as...