Skip to content

Add 'Swap Nodes in Pairs' through recursive approach in JS #300

@Shuklax

Description

@Shuklax

Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list’s nodes (i.e., only nodes themselves may be changed.) - through the recursive approach

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions