Skip to content

Comments

Added first version of test 2.2#31

Open
AntonChern wants to merge 2 commits intomasterfrom
test2.2
Open

Added first version of test 2.2#31
AntonChern wants to merge 2 commits intomasterfrom
test2.2

Conversation

@AntonChern
Copy link
Owner

No description provided.

int main()
{
List *list = createList();
cout << "Enter number of elements: ";
Copy link
Collaborator

Choose a reason for hiding this comment

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

а на списке из 0 элементов оно падает :)

{
swap(element->value, element->next->value);
}
sort(element->next);
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.

2 participants