two pointer approach, here test case 3 is incorrect why?
Target sum pairs of arrays
@rajukumarbhui hey raju let consider this case
6
-3
1
4
3
6
8
9
your code is printing is
2 and 6
3 and 5
but it should be printing
1 and 8
3 and 6
two pointer approach, here test case 3 is incorrect why?
@rajukumarbhui hey raju let consider this case
6
-3
1
4
3
6
8
9
your code is printing is
2 and 6
3 and 5
but it should be printing
1 and 8
3 and 6