• + 0 comments

    Yes. Using an OOP ways can make the solution more simpler swap operation. But, yet again, the problem is not just about swaping but doing the node swap with such inconvienient input.