Skip to content

code for swap nodes in pair#75

Open
gaurav-312 wants to merge 1 commit intoDemohack2022:mainfrom
gaurav-312:main
Open

code for swap nodes in pair#75
gaurav-312 wants to merge 1 commit intoDemohack2022:mainfrom
gaurav-312:main

Conversation

@gaurav-312
Copy link

Example 1:

Input: head = [1,2,3,4]
Output: [2,1,4,3]

Example 2:

Input: head = []
Output: []

Example 3:

Input: head = [1]
Output: [1]


Example 1:

Input: head = [1,2,3,4]
Output: [2,1,4,3]

Example 2:

Input: head = []
Output: []

Example 3:

Input: head = [1]
Output: [1]
@Demohack2022 Demohack2022 added the invalid This doesn't seem right label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants