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

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