both recursive and iterative codes are O(nlogn) algos.. but memory will be more in recursion.. so we will prefer iteration
--
both recursive and iterative codes are O(nlogn) algos.. but memory will be more in recursion.. so we will prefer iteration
--