C language to find the greatest common factor recursive shortest code (strange techniques and tricks)

C language to find the greatest common factor recursive shortest code (strange techniques and tricks)

int max_common_factor(int x, int y) {
    return y ? max_common_factor(y, x % y) : x;
}

Comments

Popular posts from this blog

Python Receiving and parse JSON Data via UDP protocol

ubus lua client method and event registration code demo/example