Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added swap alternate elements algorithm for arrays #143

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KSHITIZ-RAJ-22
Copy link

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

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:

  • 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.

@KSHITIZ-RAJ-22 KSHITIZ-RAJ-22 marked this pull request as ready for review October 6, 2023 13:35
Copy link
Owner

@codewithdev codewithdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a quick introduction to the problem at line-1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants