Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Smallfly committed Oct 9, 2018
1 parent 473ef5a commit 7044c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object-c/08_stack/stack_practice/BalancedParentheses.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ - (BOOL)checkForParenthessBlanced:(NSString *)express {
// 前半部分把与 ele 匹配的括号加入栈
[_stack push:parenthesesDict()[ele]];
} else {
// 后半部分依次于栈顶的括号匹配
// 后半部分检查栈顶的元素与当前元素是否相同
NSString *topEle = [_stack pop];
if (![topEle isEqualToString:ele]) {
return NO;
Expand Down

0 comments on commit 7044c15

Please sign in to comment.