My code to the problem Arrays-Target Sum pairs fails one test case,
my code is this https://ide.codingblocks.com/s/121930
Can you please point out the mistake?
What's the problem here?
@ayushg1214 hey ayush
the test case for this question is designed in a such a way that the similar value can’t make a pair so for eg
5
5
2
3
4
1
6
1 and 5
2 and 4
3 and 3
so do apply a check
Thanks, It now passes all test cases, this equality condition should be mentioned in the Problem Statement