I am not getting all the pairs in the output please tell whats wrong in the code.
Arrays-Target triple sums
@ujj1804_1156aee80205d0bf
https://ide.codingblocks.com/s/645613
just check ur code again i resolve it u do mistake in your conditions
Ok sir thank you very much.
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.
Sir all test cases are not passing its showing run time error please tell the reason.Only one test cases has passed.
show me the test cases
@ujj1804_1156aee80205d0bf
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.
Can u explain what was wrong in earlier code which u corrected here ?
@ujj1804_1156aee80205d0bf
u basically take an array size of 50 a[50] but according to constraints it will be 10^4
so size of range can be upto 10^4 thats why it give runtime error.
That means I took a small sized array but according to constraints I can take array upto 10^4 elements right ??
@ujj1804_1156aee80205d0bf
yeah first always see the constraints according to that handle things like array sie because u take size 50 but there can be possibility that in any test case the size is 10000 then it give runtime error
OK sir thanks , its clear now.
@ujj1804_1156aee80205d0bf
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.