wrong answer for second test case of sample input. may be some corner case is failing. Please help?
Wrong answer for second test case of sample input
Segmentation fault is coming. Please help
Hello @pd.pankajdahiya you are not even taking the ouput in the correct manner.
first you have to take inout for the number of test cases and then you have to take input for the number of boxes i.e n and then fir the number of snakes and ladders.
and then loop for both but you are not doing like this :
and then when you have to add edge then you are also doing wrong.
first correct that and here for reference i am attaching the code:
if you have any doubt you can ask here;
Happy Learning!!
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.