Swap Nodes Wo Data, is a Singly Linked List related problem and in this post we will see how we can solve this challenge in C++

To swap two nodes in a Linked List without swapping their data part,only the link part is to be swapped Also the data to be swapped is taken as per their occurrence in the List

Please check the main.cpp snippet for the solution.

This solution originally posted at: Github by @susantabiswas