Skip to content

Homework 2 completed#175

Open
Borisko130 wants to merge 2 commits into
mate-academy:masterfrom
Borisko130:homework2
Open

Homework 2 completed#175
Borisko130 wants to merge 2 commits into
mate-academy:masterfrom
Borisko130:homework2

Conversation

@Borisko130

Copy link
Copy Markdown

No description provided.

Comment on lines +17 to +18
return (!a & !b & c & d)
|| (!a & b & !c & d)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why have you decided to use & instead of &&, what’s the difference?

|| (!a & b & c & !d)
|| (a & !b & !c & d)
|| (a & !b & c & !d)
|| (a & b & !c & !d);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

try to make this shorter with ^ (XOR) operator

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