摘要: 1. 格雷编码(89) 给你一个整数 n ,返回任一有效的 n 位格雷码序列 。 class Solution { public List<Integer> grayCode(int n) { List<Integer> res = new ArrayList<>(){{add(0);}}; int 阅读全文
posted @ 2023-11-20 10:24 forever_fate 阅读(10) 评论(0) 推荐(0)