---
title: "Discussion on \"Merge Sort:\" | Hashnode"
description: "Discussion on \"Merge Sort:\". package sort;\n\nimport java.util.Arrays;\n\npublic class L01_MergeSort {\n\n    public static void mergeSort(int[] arr) {\n        // Base case: if array has 1 element, it’s already sorted\n        if (arr.l"
url: "https://hashnode.com/posts/merge-sort/6a4b30c5642e2bd9296dcda1"
---

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

Discussion

# [Merge Sort:](https://dsa-3956.hashnode.dev/merge-sort?utm_source=hashnode&utm_medium=feed)

package sort; import java.util.Arrays; public class L01\_MergeSort { public static void mergeSort(int\[\] arr) { // Base case: if array has 1 element, it’s already sorted if (arr.l

Jul 6 · 6 min read · dsa-3956.hashnode.dev  
Read the article

-   [#sorting-algorithms](https://hashnode.com/tag/sorting-algorithms)
-   [#merge-sort](https://hashnode.com/tag/merge-sort)

## Written by

[Bikash Mainali](https://hashnode.com/@bikash8848)

@bikash8848

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

Software Engineer

Experienced Java/JavaScript full-stack developer over 6 years of extensive expertise serving key role on elite technical teams developing enterprise software for healthcare, apple ad-platform, banking, and e-commerce. Adaptable problem-solver with high levels of skill in Groovy, Java, Spring, Spring Boot, Hibernate, JavaScript, TypeScript, Angular, Node, Express, React, MongoDB, IBM DB2, Oracle, PL/SQL, Docker, Kubernetes, CI/CD pipelines, AWS, Micro-service and Agile/Scrum. Strong technical skills paired with business-savvy UI design expertise. Personable team player with experience collaborating with diverse cross-functional teams.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
