Skip to content

Comments

Freature/parentheses balance checking algorithm#11

Open
Snaffys wants to merge 3 commits intomainfrom
feature/parenthesesBalance
Open

Freature/parentheses balance checking algorithm#11
Snaffys wants to merge 3 commits intomainfrom
feature/parenthesesBalance

Conversation

@Snaffys
Copy link
Owner

@Snaffys Snaffys commented Oct 19, 2025

No description provided.

@Snaffys Snaffys requested a review from AnthonyRulez October 19, 2025 18:18
@Snaffys Snaffys changed the title Add parentheses balance checking algorithm Freature/ parentheses balance checking algorithm Oct 19, 2025
@Snaffys Snaffys changed the title Freature/ parentheses balance checking algorithm Freature/parentheses balance checking algorithm Oct 19, 2025
@Snaffys Snaffys force-pushed the feature/parenthesesBalance branch from da2ff0d to a2edb75 Compare October 20, 2025 16:50
@Snaffys Snaffys force-pushed the feature/parenthesesBalance branch from a2edb75 to 9ed55a1 Compare October 20, 2025 16:53
return false;
}
} else
return false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А что со стеком будет?

(checkString[i] == ']' && lastParenthesis != '[') ||
(checkString[i] == '}' && lastParenthesis != '{')) {
freeStack(head);
return false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А тут же всё должно быть хорошо.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants