CodingEasy to Medium
Modified Swap Nodes in Pairs in Linked List
Filed under Quinbay
The question
Given a list of nodes, consider sets of 3 or 4 nodes and swap them in a specific pattern (e.g., [a->b->c->d] to [a->c->b->d]) using O(N) time and O(1) space.
No write-up yet. Related questions below have one.
Related Quinbay questions
Collected from public candidate posts and coding forums. Updated Nov 2026.