Can you please tell me where am i wrong, and is this the optimal approach or is there a better approach then please tell that also
i have found the mistake, but i dont know how to overcome it
There was some indexing allocation problem in any test case.
so i have used vector for it .
if you have any doubt you can ask here:
Happy Learning !!
in this case for eg - 1111 and 2222, it is printing 0 3 3 3 3, extra 0 is being printed
okay, thanks i got it, i just wanted to ask if this approach is correct ?
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.