You are viewing a single comment's thread. Return to all comments →
Any performance gains by adding:
if(len(expression)%2)>0: return False
at the beginning of the function, just in case an input is uneven, so we don't bother doing any other thing.
Seems like cookies are disabled on this browser, please enable them to open this website
Stacks: Balanced Brackets
You are viewing a single comment's thread. Return to all comments →
Any performance gains by adding:
at the beginning of the function, just in case an input is uneven, so we don't bother doing any other thing.