From 529371edaea7493f3fb1df07a109309f0a3d45af Mon Sep 17 00:00:00 2001 From: Sukanya Bharati <64637631+BharatiSukanya@users.noreply.github.com> Date: Sun, 6 Sep 2020 20:56:50 +0530 Subject: [PATCH] Update Check paranthesis expression.cpp I guess it meant closing instead of closic written before. --- Check paranthesis expression.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Check paranthesis expression.cpp b/Check paranthesis expression.cpp index f333c4b..3802973 100644 --- a/Check paranthesis expression.cpp +++ b/Check paranthesis expression.cpp @@ -25,7 +25,7 @@ bool verify (char input[]) { if (input[i] == ')') { // if the stack is empty, or the last parenthesis is different - // than the one we are closic, then the input is wrong + // than the one we are closing, then the input is wrong if (isEmpty() || Stack[ind] != 1) return false; else { Stack[ind] = 0; @@ -34,7 +34,7 @@ bool verify (char input[]) { } if (input[i] == ']') { // if the stack is empty, or the last parenthesis is different - // than the one we are closic, then the input is wrong + // than the one we are closing, then the input is wrong if (isEmpty() || Stack[ind] != 2) return false; else { Stack[ind] = 0; @@ -43,7 +43,7 @@ bool verify (char input[]) { } if (input[i] == '}') { // if the stack is empty, or the last parenthesis is different - // than the one we are closic, then the input is wrong + // than the one we are closing, then the input is wrong if (isEmpty() || Stack[ind] != 3) return false; else { Stack[ind] = 0;