But i think i am doing something wrong in the main function- can you please explain why it is not taking multiple test cases and also why it isnt working?https://ide.codingblocks.com/s/610246
Hello, ive written the function correctly
hi… ur code seems to be working fine… what issue are u facing???
When i submit it, it shows “run error”
Can you tell me what was wrong in my code? I need to learn what mistakes i am doing to rectify them
any answer? i am still waiting for one
yes … let me check ur code…
ok… so here was the mistake
u were missing the case if a->data == b->data
so instead of else if just write else
ur code will pass all test cases…
Thank you so much!! i got it now, it was such a minute mistake i completely missed it
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.