the nth gray code计算第n个格雷码的公式为:[cc](n-1) XOR (floor((n-1)/2)) (Source: wikipedia)[/cc]我将其编码为:[cc]int gray(int n){ n--; ...
確定! 回上一頁