Technical blog and complete tutorial on popular company interview questions with detailed solution and Java program on Data structure, Algorithms, Time and space complexity, Core Java, Advanced Java, Design pattern, Database, Recursion, Backtracking, Binary Tree, Linked list, Stack, Queue, String, Arrays etc asked in companies like Google, Amazon, Microsoft, Facebook, Apple etc. for beginners and professionals.
Monday, 20 May 2019
Friday, 17 May 2019
Thursday, 16 May 2019
Sort a Stack using Merge Sort
Sort a Stack using Merge Sort.
Lets see how to sort a stack using merge sort which uses divide and conquer recursive algorithm.
I recommend reading Merge sort first before proceeding.
I recommend reading Merge sort first before proceeding.
Also, check Merge sort article on linked list that will help in understanding Merge sort and this article better.