Skip to content

Иванова Алина - задание 6.1 Сортированный список#8

Open
ialina07 wants to merge 2 commits intomainfrom
hm6.1
Open

Иванова Алина - задание 6.1 Сортированный список#8
ialina07 wants to merge 2 commits intomainfrom
hm6.1

Conversation

@ialina07
Copy link
Owner

No description provided.

@ialina07 ialina07 requested a review from chernishev October 27, 2025 15:14
int sortedList[MAX_SIZE];
int listSize = 0;

void addValue();
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. у Вас не списки, а массивы, это неправильно; должна быть динамическая структура данных
  2. плохие контракты: Вы работаете с конкретным "списком", а надо с любым (список должен быть параметром функции)

Copy link
Collaborator

@chernishev chernishev left a comment

Choose a reason for hiding this comment

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

1/6 замечания в коде

@ialina07 ialina07 requested a review from chernishev November 19, 2025 08:49

free(current);
list->size--;
printf("Удалено: %d\n", value);
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.

3 participants