• + 0 comments

    How is this the answer? The whole code was rewrote. The problem says to finish the swapNodes function. This answer rewrites the solution class as well.