Skip to content

Commit 85722a6

Browse files
committed
Input Expression Updated
1 parent 15ca42c commit 85722a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MultipleParenthesisMatching.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int parenthesisMatching(const char *expression)
8181
return 0;
8282
}
8383
}
84-
84+
8585
if (isEmpty(sp))
8686
return 1;
8787
else
@@ -90,7 +90,7 @@ int parenthesisMatching(const char *expression)
9090

9191
int main()
9292
{ // it is necessary to have const char pointer else code will not work as per as c++
93-
const char *expression = "((8)(*--$$9))";
93+
const char *expression = "((8)[{*--$$9}])";
9494
if (parenthesisMatching(expression))
9595
cout << "The parenthesis is matching";
9696
else

0 commit comments

Comments
 (0)