Skip to content

Update main.cpp#10

Open
kindofman wants to merge 2 commits into
kindofman-patch-8from
kindofman-patch-10
Open

Update main.cpp#10
kindofman wants to merge 2 commits into
kindofman-patch-8from
kindofman-patch-10

Conversation

@kindofman
Copy link
Copy Markdown
Owner

No description provided.

@kindofman kindofman requested a review from ylyubimov November 19, 2019 04:50
Comment thread 6-1/main.cpp Outdated
Node* current = root;
while ( current ) {
cout << current->key << ' ';
current = current->pre_order_step();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Нет имелось в виду не так(
а так:
pre_order([](int key){ cout << key << ' '; });
И давай все-таки научимся коммитить в те же ПР, а не заводить новые)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Готово:) Сделал функтор

Сделал функтор для передачи в pre_order
@kindofman kindofman requested a review from ylyubimov November 23, 2019 19:21
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