Closed
Description
I have implemented the MergeSort algorithm, in which I have created a void sort(arr)
method, that takes the array and sort it, I am repeating code for the method to pass the array parameter of Integers or Doubles. What about String
, ... etc
This implementation works so far, but is there any way to implement this generically this algorithm?
Helpful links: