Skip to content

Commit

Permalink
Update Pair_wise_swap.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
STREIN-11 authored Dec 13, 2024
1 parent fe0a795 commit 9844e99
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Daily/Pair_wise_swap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Given a singly linked list of size N. The task is to swap elements in the linked
For example, if the input list is 1 2 3 4, the resulting list after swaps will be 2 1 4 3.
Note: You need to swap the nodes, not only the data. If only data is swapped then driver will print -1.
Example 1:
Input:
LinkedList: 1->2->2->4->5->6->7->8
Expand Down

0 comments on commit 9844e99

Please sign in to comment.