Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 548 Bytes

File metadata and controls

17 lines (14 loc) · 548 Bytes

Merge Sort

[16,21,11,8,12,22]

  1. Write the sorting steps
                                16,21,11,8,12,22
                16,21,11                                8,12,22
        16,21           11                      8,12            22
16      21      11                      8       12                      22

        16,21   11                              8,12            22
                11,16,21                                8,12,22
                                8,11,12,16,21,22
  1. Write the Big-O notation
    O(nlogn)