Skip to content

Hm4 "Оптимальная сортировка" Иванова Алина#6

Open
ialina07 wants to merge 2 commits intomainfrom
hm4
Open

Hm4 "Оптимальная сортировка" Иванова Алина#6
ialina07 wants to merge 2 commits intomainfrom
hm4

Conversation

@ialina07
Copy link
Owner

No description provided.

@ialina07 ialina07 requested a review from chernishev October 16, 2025 20:09
Copy link
Collaborator

Choose a reason for hiding this comment

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

instruction.md

}

// Считаем элементы, которые изменили позицию
int movedCount = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

подчет не должен быть здесь; это функция должна заниматься только сортировкой

for (int i = 0; i < count; i++) {
int currentElement = array[i];

// Ищем этот элемент в исходном массиве
Copy link
Collaborator

Choose a reason for hiding this comment

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

что-то не то с отступами


#include <stdio.h>

extern int optimizedSort(int* array, int count);
Copy link
Collaborator

Choose a reason for hiding this comment

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

не надо extern, просто заведите нормальный заголовчник

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.

Пока 3/5, комментарии в тексте

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