Skip to content

Commit 3329dd5

Browse files
authored
Update 03 Parenthesis Balance in C++.cpp
1 parent cb2918d commit 3329dd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Stack/03 Parenthesis Balance in C++.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ char Stack::peek(int index) { // function for taking the element at an particula
102102

103103

104104
int isBalanced(char* exp) {
105-
Stack stk; // creating a local varible of stack type
105+
Stack stk; // creating a local varible of stack type // charater type stack
106106

107107
for (int i = 0; i < strlen(exp); i++) { // iterating throuhout the stack
108108
if (exp[i] == '(') { // if there is starting parenthisis is there then

0 commit comments

Comments
 (0)