Testcase Not clear

Hello TA,
The testcase mentioned here isn’t clear to me, please explain the testcase. Thank you

@hargovind,
For max, A={12,10} , B={-3,0}, max= (12-(-3))+(10-0)=25
For min, A={12,-3}, B={10,0} min=(12-10)+|(-3-0)|=5

I got CA on 1 estcase but other test case is giving TLE, an you look into my code, the Collaborate mode is on!

@hargovind,
Please share Coding Blocks IDE link of your code here.

@hargovind,
Use this instead sort(arr, arr + n, greater<ll>());

I am still getting TLE

@hargovind,
Try submitting here.

Both cases passed, thanks a lot :slight_smile: