Tutorials
Courses
Go Premium
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
32.1K+ articles
DSA
20.0K+ articles
Arrays
4.2K+ articles
Amazon
1.9K+ articles
Sorting
1.1K+ articles
Microsoft
811+ articles
Linked List
666+ articles
Adobe
280+ articles
Linked-List-Sorting
63+ articles
Insertion Sort
39+ articles
Merge Sort
109+ posts
Recent Articles
Popular Articles
Merge Sort Based Practice Problems
Last Updated: 23 July 2025
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
Common Elements in Two Sorted Arrays
Last Updated: 23 July 2025
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
Intersection of Two Sorted Arrays
Last Updated: 23 July 2025
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
Searching and Sorting Algorithm Notes for GATE Exam [2024]
Last Updated: 23 July 2025
As you gear up for the GATE Exam 2024, it's time to dive into the world of searching and sorting algorithms. Think of these algorithms as the super-smart tools that help c...
read more
Searching
Sorting
DSA
Binary Search
Merge Sort
Quick Sort
Insertion Sort
Algorithms-BubbleSort
selection-sort
counting-sort
Heap Sort
Linear Search
GATE 2024
GATE-CS 2024
DSA-GATE
Find the count of Reverse pairs
Last Updated: 16 July 2025
Given an array arr[], find the number of reverse pairs. A pair of indices (i, j) is said to form a reverse pair if both of the following conditions are met:0 = i j narr[...
read more
Sorting
DSA
Arrays
Merge Sort
Merge Sort Interview Questions and Answers
Last Updated: 23 July 2025
Merge sortis defined as asorting algorithmthat works by dividing an array into smaller subarrays, sorting each subarray, and then merging the sorted subarrays back togethe...
read more
Sorting
DSA
Merge Sort
Interview-Questions
Time and Space Complexity Analysis of Merge Sort
Last Updated: 14 March 2024
The Time Complexity of Merge Sort is O(n log n) in both the average and worst cases. The space complexity of Merge sort is O(n).AspectComplexityTime ComplexityO(n log n)Sp...
read more
Analysis of Algorithms
Sorting
DSA
Merge Sort
Complexity-analysis
Sorting a Singly Linked List
Last Updated: 23 July 2025
Given a singly Linked List, the task is to sort this Linked List in non-decreasing order.Examples:Input: 10-30-20-5Output: 5-10-20-30Explanation: The above linked list is ...
read more
Linked List
Sorting
DSA
Merge Sort
Quick Sort
Insertion Sort
BubbleSort
Linked-List-Sorting
Introduction to Block Sort
Last Updated: 03 December 2024
Block sort is a sorting algorithm that sorts an array by dividing it into blocks of fixed size, sorting each block individually, and then merging the sorted blocks back in...
read more
DSA
Merge Sort
Data Structures
min-heap
C++ Program For In-Place Merge Two Linked Lists Without Changing Links Of First List
Last Updated: 23 July 2025
Given two sorted singly linked lists having n and m elements each, merge them using constant space. First, n smallest elements in both the lists should become part of the ...
read more
Linked List
C++ Programs
DSA
Merge Sort
Python Program For In-Place Merge Two Linked Lists Without Changing Links Of First List
Last Updated: 23 July 2025
Given two sorted singly linked lists having n and m elements each, merge them using constant space. First, n smallest elements in both the lists should become part of the ...
read more
Linked List
Python Programs
DSA
Merge Sort
Python-DSA
C++ Program For Removing Duplicates From An Unsorted Linked List
Last Updated: 23 July 2025
Write a removeDuplicates() function that takes a list and deletes any duplicate nodes from the list. The list is not sorted.For example if the linked list is 12-11-12-21-4...
read more
C++
Linked Lists
Amazon
Merge Sort
Java Program For Removing Duplicates From An Unsorted Linked List
Last Updated: 23 July 2025
Given an unsorted Linked List, the task is to remove duplicates from the list.Examples:Input: linked_list = 12 - 11 - 12 - 21 - 41 - 43 - 21Output: 12 - 11 - 21 - 41 - 43E...
read more
Java
Linked Lists
Amazon
Merge Sort
Python Program For Removing Duplicates From An Unsorted Linked List
Last Updated: 23 July 2025
Write a removeDuplicates() function that takes a list and deletes any duplicate nodes from the list. The list is not sorted.For example if the linked list is 12-11-12-21-4...
read more
Python
Linked Lists
Amazon
Merge Sort
C# Program For Removing Duplicates From An Unsorted Linked List
Last Updated: 23 July 2025
Write a removeDuplicates() function that takes a list and deletes any duplicate nodes from the list. The list is not sorted.For example if the linked list is 12-11-12-21-4...
read more
C#
Linked Lists
Amazon
Merge Sort
1
2
3
4
5
6
7
8
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 !