Math, asked by beastverma3627, 11 months ago

Divide an array into 4 subarrays with equal sum with minimum difference between maximum and minimum

Answers

Answered by PriyanshuDhingra
0

Answer:

Input : Arr[] = { 1 , 2 , 3 , 4 , 5 , 5  }

Output :  { 1 2 3 4 }  

         { 5 , 5 }

Input : Arr[] = { 4, 1, 2, 3 }

Output : {4 1}

        {2 3}

Input : Arr[] = { 4, 3, 2, 1}

Output : Not Possible

Similar questions