Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ambrop7
on Feb 12, 2017
|
parent
|
context
|
favorite
| on:
The Three Ways of XOR
Obviously no, the first (for M==1) means exactly one is true, the latter at least one is true. But a1||...||aN is equivalent to bool(a1)+...+bool(aN)>0 (assuming no integer overflow :).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: