首页
Java
登录
6mi
u
盘
搜
搜 索
Java
leetcode 89 GRADCODE
leetcode 89 GRADCODE
xiaoxiao
2021-02-28
85
class Solution(object): def grayCode(self, n): """ :type n: int :rtype: List[int] """ res=[0] for i in range(n): res+=[x+pow(2,i) for x in reversed(res)] return res
转载请注明原文地址: https://www.6miu.com/read-23954.html
技术
最新回复
(
0
)