Skip to content

feat: add merge sort algorithm#1

Merged
kelsonbrito50 merged 1 commit intomainfrom
feat/merge-sort
Feb 25, 2026
Merged

feat: add merge sort algorithm#1
kelsonbrito50 merged 1 commit intomainfrom
feat/merge-sort

Conversation

@kelsonbrito50
Copy link
Owner

Add merge sort with both functional and in-place variants. Includes tests.

- Implement merge_sort() returning new sorted list
- Implement merge_sort_inplace() for in-place sorting
- Add tests for empty, single, sorted, and general cases
- O(n log n) time, O(n) space, stable sort
@kelsonbrito50 kelsonbrito50 merged commit 03eb123 into main Feb 25, 2026
2 checks passed
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.

1 participant