Skip to content

push homework 7#8

Merged
nedav347 merged 1 commit into
mainfrom
lesson_7
May 24, 2021
Merged

push homework 7#8
nedav347 merged 1 commit into
mainfrom
lesson_7

Conversation

@nedav347

Copy link
Copy Markdown
Owner

homework 7

Comment thread lesson7/lesson7.c
int idx = 0; //вспомогательный индех
for (int i = 0; i < b; ++i) { //проходим по всем корзинам
for (int j = 0; j < buckets[i][max]; ++j) { //проходим по всем элементам в корзине
while (arr[idx] % 2 > 0) idx++; //ищем в массиве индексы четных элементов, нечетные не трогаем

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

не дороговато кайлом бегать там, где ифа достаточно?

@nedav347 nedav347 merged commit 0dbe815 into main May 24, 2021
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