C-plus-plus-Algorithms icon indicating copy to clipboard operation
C-plus-plus-Algorithms copied to clipboard

Added swap alternate elements algorithm for arrays

Open KSHITIZ-RAJ-22 opened this issue 1 year ago • 0 comments

What's being changed:

I have added a swap alternate algorithm for arrays. For example, if the given array is: [1, 2, 3, 4, 5]. Then the output array will be: [2, 1, 3, 4, 5]. Another example, is if the given array is: [1, 2, 3, 4, 5,6 ]. Then the output array will be: [2, 1, 3, 4, 5, 6].

Checkoff the following:

  • [x] Read Contribution.md
  • [x] Created a new branch before committing.
  • [x] My File doesn't contain any duplicacy or misinformation (isn't available in the library).
  • [x] Added to the right category.
  • [x] Added "add code" label.
  • [x] Described what's being changed.

KSHITIZ-RAJ-22 avatar Oct 06 '23 13:10 KSHITIZ-RAJ-22