---
title: "Discussion on \"Merge Sort DSA\" | Hashnode"
description: "Discussion on \"Merge Sort DSA\". #include <iostream>\nusing namespace std;\n\nvoid merge(int arr[], int left, int mid, int right) {\n    int n1 = mid - left + 1;\n    int n2 = right - mid;\n\n    int L[n1], R[n2];\n\n    for (int i = 0; i < n1; i++)\n        L[i] = arr[left + i];\n    for (int..."
url: "https://hashnode.com/posts/merge-sort-dsa/663de81355f39e7860c047a7"
---

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

Discussion

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

#include <iostream> using namespace std; void merge(int arr\[\], int left, int mid, int right) { int n1 = mid - left + 1; int n2 = right - mid; int L\[n1\], R\[n2\]; for (int i = 0; i < n1; i++) L\[i\] = arr\[left + i\]; for (int...

May 10, 2024 · 1 min read · viruscage.hashnode.dev  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#merge-sort](https://hashnode.com/tag/merge-sort)

## Written by

[Anindya Roy](https://hashnode.com/@onevirus)

@onevirus

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
