where my code fails?what is the edge case my code does not take care
Fails for multiple test cases
@Shubham-Singh-1843190805727785 please share your code here after saving on cb.lk/ide it will generate a code url that url you have to post
@Shubham-Singh-1843190805727785 just do apply a check if(min(arr[i],sum-arr[i])!=max(sum-arr[i],arr[i])) on line 22 the reason of doing this for eg
the set of test cases like
6
1
2
3
4
5
6
6
1 and 5
2 and 4
3 and 3
but in this question the test cases are designed such a way that only distinct pair is valid
so after applying check the
output become 1 and 5
2 and 4