Skip to content

bohrium2b/mergesort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Merge Sort

Usage

from mergesort import sort

sort([1,3,2,4])

The sort function

Arguments:

  • List/array of ints
    • [1,3,2,6,4]

Return value:

  • Sorted array
    • [1,2,3,4,6]

What is merge sort?

  1. Sort left half
  2. Sort right half
  3. Merge halves together

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages