C language Hannota recursive implementation

C language Hannota recursive implementation

void hanoi(int n, char a, char b, char c){
    if (n > 1) {
        hanoi(n - 1, a, c, b);
        move(a, c);
        hanoi(n - 1, b, a, c);
    }
}

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