Jul. 15th, 2004
Write a function:
int f(int a, int b, int c)
such that f(a, b, c) == (a ? b : c)
using only ~, ^, &, =, +, |, !, and return
(and no temporary variables)
My solution
int f(int a, int b, int c)
such that f(a, b, c) == (a ? b : c)
using only ~, ^, &, =, +, |, !, and return
(and no temporary variables)
My solution
Write a function:
int f(int a, int b, int c)
such that f(a, b, c) == (a ? b : c)
using only ~, ^, &, =, +, |, !, and return
(and no temporary variables)
My solution
int f(int a, int b, int c)
such that f(a, b, c) == (a ? b : c)
using only ~, ^, &, =, +, |, !, and return
(and no temporary variables)
My solution