
Can you swap?
code-golf
Today's problem is easy. You're given two strings A and B of equal length consisting of only the characters ( and ). Check whether after a few operations you can make both strings balanced or not. The only operation allowed is swapping A[i] and B[i], where i is an arbitrar...