How to approach this problem, im not able to think
Dividing Array Problem
We can use greedy approach for this question. Sort the given array and see what combination results in the min and max value. Just try to do it on a few sample testcases and you’ll know the logic.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.