Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Implement Merge Sort Algorithm #491

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

astro-ravi
Copy link

Here, the elements of the array are sorted in ascending order. If we want to sort the elements in descending order, then inside the first while loop of the merge() method, we can change the code as:

Here, the elements of the array are sorted in ascending order. If we want to sort the elements in descending order, then inside the first while loop of the merge() method, we can change the code as:
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant