Sir 3 out of 4 test cases are passing after submitting the code, but I am not able to see which tase case is failing.
Please look into it, thank you.
code link:-
Sir 3 out of 4 test cases are passing after submitting the code, but I am not able to see which tase case is failing.
Please look into it, thank you.
code link:-
your code fail for this input
4
1 0 2 9
5
3 4 5 6 7
if size of both array is different then your code fails
consider this case also
Sir I just tried in online compiler named “OnlineGBD” and the code is giving proper output for your test cases. But I run the same code in “VS Code” with the same test cases, it is giving wrong output. I am not understanding why this is happening and what to do.
i don’t think this should happen
in coding blocks ide it also giving wrong ans
if so then don’t use OnlineGBD
either use local machine compiler or a good online compiler
like ide.codingblocks.com or you can also use ideone or codechef ide
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.