---
title: "Discussion on \"Basics Sorting Algorithm: MergeSort (Python)\" | Hashnode"
description: "Discussion on \"Basics Sorting Algorithm: MergeSort (Python)\". MergeSort splits an array into halves which takes log(n) time and then takes n operations to sort the entire list when we are merging it back after breaking the halves down. Therefore, it has a complexity of O(n log(n))\nHow it works:\nTake array, arr ..."
url: "https://hashnode.com/posts/basics-sorting-algorithm-mergesort-python/600d99b03fdbb7412625fb2a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Basics Sorting Algorithm: MergeSort (Python)](https://codingbasics.hashnode.dev/basics-sorting-algorithm-mergesort-python?utm_source=hashnode&utm_medium=feed)

MergeSort splits an array into halves which takes log(n) time and then takes n operations to sort the entire list when we are merging it back after breaking the halves down. Therefore, it has a complexity of O(n log(n)) How it works: Take array, arr ...

Jan 24, 2021 · 3 min read · codingbasics.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#sorting](https://hashnode.com/tag/sorting)
-   [#interview](https://hashnode.com/tag/interview)

## Written by

[Sid](https://hashnode.com/@skidhs)

@skidhs

  
[View profile](https://hashnode.com/@skidhs)

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
