This repo contains my implementation of the merge sort algorithm in JavaScript. Merge sort is a classic divide and conquer sorting technique that recursively splits an array into halves, sorts each half, and then merges the sorted halves back together. The script includes a function that accepts an array and returns a new sorted array without mutating the original. I included comments to explain each step and optional console logs to trace the recursion. Feel free to run the code and experiment with sorting different datasets.
-
Notifications
You must be signed in to change notification settings - Fork 0
ryan2068/merge-sort-algorithm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published