I have tested it passing almost all the test cases but it is failing on one test case, can you kindly, let me know why is it failing.
Thanks
Again i fail to understand why my one test case fails
Actually your approach is not correct. You just have to do the XOR operation bit by bit and form the result
0 xor 0 gives 0
0 xor 1 gives 1
1 xor 0 gives 1
1 xor 1 gives 0
How is it different whatever you wrote is same as what i am applying aswell whenever difference is 0 the ans is 0 whenever difference is 1 the ans is 1
Your code is giving wrong answer for multiple test cases
check with this
2
1110 1101
1111 1111
Yeah got it the problem was in the manner in which i was inputting
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.