Skip to content

Conversation

Gathros
Copy link
Contributor

@Gathros Gathros commented Jun 6, 2018

No description provided.

@Gathros Gathros added Implementation Edit This provides an edit to an algorithm implementation. (Code and maybe md files are edited.) Chapter Edit This changes the archive's chapters. (md files are edited.) labels Jun 6, 2018
struct person *man = bachelors[bachelors_size - 1];
struct person *woman = &women[man->prefers[man->index]];

if (woman->partner == NULL) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a more conventional way to check for this would be if (!woman->partner)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer your version but what is better?

Copy link
Contributor

@zsparal zsparal left a comment

Choose a reason for hiding this comment

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

This looks good to me but I'll leave a little time if anyone else wants to review it

@june128 june128 removed the Chapter Edit This changes the archive's chapters. (md files are edited.) label Jun 11, 2018
@Gathros Gathros merged commit 7998183 into algorithm-archivists:master Jun 16, 2018
@Gathros Gathros deleted the C_fixes branch June 16, 2018 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Implementation Edit This provides an edit to an algorithm implementation. (Code and maybe md files are edited.)

3 participants