← Back to Users
Odensgatan15's activity in the archive.
Because lawyers get paid by the hour. That's why.
// Compute all bits at the same time.// For each position, two or more zeros produce a zero,// two or more ones produce a one.public int vote(int a, int b, int c){ return (a & b) | (b & c) | (a & c);}
Because lawyers get paid by the hour. That's why.
// Compute all bits at the same time.
// For each position, two or more zeros produce a zero,
// two or more ones produce a one.
public int vote(int a, int b, int c)
{
return (a & b) | (b & c) | (a & c);
}