which tell me what is wrong in my code
It does not give write answer
Doubt in "ultra -fast-mathematicians"
Please ,can you me how to omit the leading zero and the test case 1.
3
10101010 11111111
10000000 00000001
1010101 0101010
In this case it shows wrong answer.
It resolve, thank you sir…
hey @76rahul257, now as it is resolved with your approach, I would like to suggest you some changes. If you find them useful, please consider them in future.
- there is no need to maximum length out of 2 because it is already stated that both strings are of equal length.
- Start iterating both string from beginning instead of end as it more simpler than iterating from end.
- No need to maintain an array for, storing result. Just simply print them.
Above changes will save space in you code.
You can observe all these changes in this code
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.