Describe the algorithm to swap two adjacent elements by adjusting only the links (and not the data) using

algorithm-to-swap

#1

Describe the algorithm to swap two adjacent elements by adjusting only the
links (and not the data) using

Answer:

Assign the value of one of the variable in a new variable (temporary variable) .
The value of the copied variable can be changed to the adjacent value.
The adjacent value can be changed to the value of the temporary variable.