Open Yorxika opened 4 years ago
https://yorxika.github.io/2019/11/22/%E6%A0%BC%E9%9B%B7%E7%BC%96%E7%A0%81/
来源Leetcode第89题格雷编码 格雷编码是一个二进制数字系统,在该系统中,两个连续的数值仅有一个位数的差异。 给定一个代表编码总位数的非负整数 n,打印其格雷编码序列。格雷编码序列必须以 0 开头。
https://yorxika.github.io/2019/11/22/%E6%A0%BC%E9%9B%B7%E7%BC%96%E7%A0%81/
来源Leetcode第89题格雷编码 格雷编码是一个二进制数字系统,在该系统中,两个连续的数值仅有一个位数的差异。 给定一个代表编码总位数的非负整数 n,打印其格雷编码序列。格雷编码序列必须以 0 开头。