Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
Arrays
6.5K+ articles
C++
4.3K+ articles
Sorting
1.8K+ articles
Heap
280+ articles
Divide and Conquer
278+ articles
Merge Sort
109+ articles
union-intersection
10+ articles
array-merge
415+ posts
Recent Articles
Popular Articles
Count of larger elements on right side of each element in an array
Last Updated: 08 September 2023
Given an array arr[] consisting of N integers, the task is to count the number of greater elements on the right side of each array element.Examples:Input: arr[] = {3, 7, 1...
read more
Divide and Conquer
Sorting
DSA
Arrays
Merge Sort
array-merge
Check if two sorted arrays can be merged to form a sorted array with no adjacent pair from the same array
Last Updated: 21 September 2023
Given two sorted arrays A[] and B[] of size N, the task is to check if it is possible to merge two given sorted arrays into a new sorted array such that no two consecutive...
read more
Greedy
Sorting
DSA
Arrays
array-merge
Shuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra space | Set 2
Last Updated: 13 April 2023
Given an array arr[] consisting of 2* N elements in the form of { a1, a2, …, aN, b1, b2, ..., bN }, the task is to shuffle the array to {a1, b1, a2, b2, ..., an, b1} witho...
read more
Divide and Conquer
Sorting
Recursion
DSA
Arrays
array-rearrange
subarray
array-merge
In-Place Merge Sort | Set 2
Last Updated: 27 December 2023
Given an array A[] of size N, the task is to sort the array in increasing order using In-Place Merge Sort.Examples:Input: A = {5, 6, 3, 2, 1, 6, 7}Output: {1, 2, 3, 5, 6, ...
read more
Sorting
Recursion
DSA
Arrays
Merge Sort
array-merge
Count swaps required to sort an array using Insertion Sort
Last Updated: 03 September 2024
Given an array A[] of size N (1 ≤ N ≤ 105), the task is to calculate the number of swaps required to sort the array using insertion sort algorithm.Examples:Input: A[] = {2...
read more
Sorting
Technical Scripter
Competitive Programming
Recursion
Technical Scripter 2020
DSA
Arrays
subarray
array-merge
Maximum Prefix Sum possible by merging two given arrays
Last Updated: 04 January 2023
Given two arrays A[] and B[] consisting of N and M integers respectively, the task is to calculate the maximum prefix sum that can be obtained by merging the two arrays.Ex...
read more
Mathematical
DSA
Arrays
prefix-sum
array-merge
Merge transactions in bank sheets in the order of their occurrence such that their sum remains positive
Last Updated: 21 February 2023
Given an array arr[][] consisting of N lists representing N transactions, the task is to merge the given lists of transactions in the order of their occurrences, such that...
read more
Linked List
Sorting
Heap
DSA
Google
interview-preparation
priority-queue
array-merge
Sort an array having first N elements sorted and last M elements are unsorted
Last Updated: 25 April 2023
Given two positive integers, N and M, and an array arr[ ] consisting of (N + M) integers such that the first N elements are sorted in ascending order and the last M elemen...
read more
Sorting
DSA
Arrays
Merge Sort
array-merge
C++ Program to Merge 3 Sorted Arrays
Last Updated: 18 August 2023
Given 3 arrays (A, B, C) which are sorted in ascending order, we are required to merge them together in ascending order and output the array D.Examples:Input : A = [1, 2, ...
read more
Sorting
C++ Programs
C++
DSA
Arrays
array-merge
Java Program for Merge 3 Sorted Arrays
Last Updated: 27 April 2023
Given 3 arrays (A, B, C) which are sorted in ascending order, we are required to merge them together in ascending order and output the array D.Examples:Input : A = [1, 2, ...
read more
Java
Sorting
Java Programs
DSA
Arrays
array-merge
Python3 Program for Merge 3 Sorted Arrays
Last Updated: 05 September 2024
Given 3 arrays (A, B, C) which are sorted in ascending order, we are required to merge them together in ascending order and output the array D.Examples:Input : A = [1, 2, ...
read more
Sorting
Python
Python Programs
DSA
Arrays
array-merge
Javascript Program to Merge 3 Sorted Arrays
Last Updated: 17 September 2024
Given 3 arrays (A, B, C) which are sorted in ascending order, we are required to merge them together in ascending order and output the array D.Examples:Input : A = [1, 2, ...
read more
Sorting
JavaScript
Web Technologies
DSA
Arrays
array-merge
Intersection of Two Sorted Arrays
Last Updated: 11 October 2024
Given two sorted arrays a[] and b[], the task is to return intersection. Intersection of two arrays is said to be elements that are common in both arrays. The intersection...
read more
Searching
DSA
Arrays
Merge Sort
array-merge
union-intersection
Common Elements in Two Sorted Arrays
Last Updated: 17 October 2024
Given two sorted arrays a[] and b[]. The task is to return the common elements of both arrays. If an element appears more than once in both array, we need to pick minimum ...
read more
Searching
DSA
Arrays
Merge Sort
array-merge
union-intersection
Merge Sort Based Practice Problems
Last Updated: 15 November 2024
Problems Based on Merge of Merge SortMerge Two Sorted ArraysMerge Two Sorted Arrays with O(1) SpaceUnion of Two Sorted ArraysIntersection of Two Sorted ArraysMerge Two Sor...
read more
Sorting
DSA
Arrays
Merge Sort
array-merge
1
2
3
4
...
28
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !