Skip to content

Conversation

@KSHITIZ-RAJ-22
Copy link

@KSHITIZ-RAJ-22 KSHITIZ-RAJ-22 commented Oct 6, 2023

What's being changed:

I have made an algorithm for arrays in which we can swap alternate elements in the whole array.
For example, the given array is: [1, 2, 3, 4, 5]. Then the output array will be: [2, 1, 4, 3, 5].
Another example, of the given array is: [1, 2, 3, 4, 5, 6]. Then the output array will be: [2, 1, 4, 3, 6, 5].

Checkoff the following:

  • Read Contribution.md
  • Created a new branch before committing.
  • My File doesn't contain any duplicacy or misinformation (isn't available in the library).
  • Added to the right category.
  • Added "add code" label.
  • Described what's being changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant