Skip to content

Conversation

lamnguyen2187
Copy link
Contributor

The current implementation has space complexity of O(NLogN) because it creates temp storage at each recursion level. This can be avoided by creating a temporary working area with a size as large as the array to be sorted and then passing it down to each recursion level. The complexity will be reduced to O(N).

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 96.602% when pulling 3274b4b on lamnguyen2187:mergesort into 2084c96 on felipernb:master.

@Jamin2025
Copy link

why doesn't merge that

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.

3 participants