如何判断字符串中括号都对应了,没有单个出现?
validBraces( "(){}[]" ) => returns true
validBraces( "(}" ) => returns false
validBraces( "[(])" ) => returns false
validBraces( "([{}])" ) => returns true
ac18999
10 years, 1 month ago