Skip to content

Conversation

@dzhav
Copy link
Owner

@dzhav dzhav commented Nov 28, 2021

new_buffer[cnt] = buffer[i]; cnt++;
}
}
QuickSelect(new_buffer, one_size, k);
Copy link
Collaborator

Choose a reason for hiding this comment

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

надо реализовать без рекурсии

}
if (k < one_size) {
//delete[] two_arr ;
int* new_buffer = new int[one_size]; int cnt = 0;
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