We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15ca42c commit 85722a6Copy full SHA for 85722a6
MultipleParenthesisMatching.cpp
@@ -81,7 +81,7 @@ int parenthesisMatching(const char *expression)
81
return 0;
82
}
83
84
-
+
85
if (isEmpty(sp))
86
return 1;
87
else
@@ -90,7 +90,7 @@ int parenthesisMatching(const char *expression)
90
91
int main()
92
{ // it is necessary to have const char pointer else code will not work as per as c++
93
- const char *expression = "((8)(*--$$9))";
+ const char *expression = "((8)[{*--$$9}])";
94
if (parenthesisMatching(expression))
95
cout << "The parenthesis is matching";
96
0 commit comments