Skip to content

Fixing stable_marriage.c and convolutions.c #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 16, 2018

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.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants