Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
counter += 1*(ch=='(') - 1*(ch==')');
It's cryptic because anything simple is the whole answer on a plate.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953