On running for sample test case my code is showing correct answer but on submission it shows wrong answer. Please help
Code is showing wrong answer
Hey Shubham, this is a basic strings problem, you have two inputs of equal length, and output for each bit is 1 if a[i]!=b[i] else 0.
See the length constraint (which is 100) so this problem can’t be done using even long long (64 bit)! Yes its a kind of XOR problem only done using strings
Ok, got it. Thank you