Skip to content

Comments

ДЗ № 5.2 Сортировочная станция, Шестаков Николай#10

Merged
NicholayShestakov merged 21 commits intomainfrom
sorting_station
Dec 15, 2025
Merged

ДЗ № 5.2 Сортировочная станция, Шестаков Николай#10
NicholayShestakov merged 21 commits intomainfrom
sorting_station

Conversation

@NicholayShestakov
Copy link
Owner

@NicholayShestakov NicholayShestakov commented Oct 22, 2025

Add

  • Realization of sorting station
  • Compile instruction
  • Incorrect infix forms processing

Copy link
Collaborator

@WoWaster WoWaster left a comment

Choose a reason for hiding this comment

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

Тут тоже всё довольно круто!

Remove pop and peek -1 return if stack is empty.
Add asserts for memory allocation.
Add asserts for not empty stack in pop and peek.
Add error messages for incorrect infix forms.
Copy link
Collaborator

@WoWaster WoWaster left a comment

Choose a reason for hiding this comment

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

Мне, честно, уже просто лень придумывать контр-пример, так что зачтено.

@NicholayShestakov NicholayShestakov merged commit 999e401 into main Dec 15, 2025
1 check passed
@NicholayShestakov NicholayShestakov deleted the sorting_station branch December 15, 2025 13:42
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