Merge Sort Java Array Example

Sort Array using Merge Sort.


Given a unsorted array, Sort it using Merge Sort Algorithm.

Merge sort linked list java

Lets understand what is the input and the expected output.


Reverse linked list using recursion in Java

Reverse linked list using recursion OR Reverse linked list recursively .


Let's see, how to Reverse a linked list recursively in Java

There are 2 ways to Reverse a Linked list using,

1. Recursive Algorithm.
2. Iterative Algorithm.

 Lets understand what is the input and the expected output.