---
title: "Anindya Roy (@onevirus) | Hashnode"
description: "Anindya Roy (@onevirus) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@onevirus"
---

@onevirus

# Anindya Roy

@onevirus · Joined May 2024

### [Difference between vector<> and array() in C++](https://viruscage.hashnode.dev/difference-between-vector-and-array-in-c?utm_source=hashnode&utm_medium=feed)

In C++, both vectors and arrays are used to store collections of elements, but they have significant differences in terms of flexibility, functionality, and usage. Here's a comparison of the two: Arrays Static Size: The size of an array must be kno...

3 min read · [viruscage.hashnode.dev](https://viruscage.hashnode.dev/difference-between-vector-and-array-in-c?utm_source=hashnode&utm_medium=feed)

[May 26, 2024](https://hashnode.com/posts/difference-between-vector-and-array-in-c/6652e742ed72e98428166b36)

### [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...

1 min read · [viruscage.hashnode.dev](https://viruscage.hashnode.dev/merge-sort-dsa?utm_source=hashnode&utm_medium=feed)

[May 10, 2024](https://hashnode.com/posts/merge-sort-dsa/663de81355f39e7860c047a7)
