程序员面试金典——17.4无判断max
class Max {
public:
int getMax(int a, int b) {
// write code here
return((a + b + abs(a - b)) / 2);
}
};
class Max {
public:
int getMax(int a, int b) {
// write code here
return((a + b + abs(a - b)) / 2);
}
};