1 parent a58dddf commit 18d0086Copy full SHA for 18d0086
1 file changed
gray_code.py
@@ -1,4 +1,4 @@
1
-# -*- coding: utf-8 -*-
+# coding: utf-8
2
3
class Solution:
4
# @param {int} n a number
@@ -8,4 +8,6 @@ def grayCode(self, n):
8
ret = []
9
for i in xrange(1 << n):
10
ret.append((i >> 1) ^ i)
11
- return ret
+ return ret
12
+
13
+# medium: http://lintcode.com/zh-cn/problem/gray-code/
0 commit comments