We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34bb0a1 commit 20bb984Copy full SHA for 20bb984
1 file changed
Python/gray-code.py
@@ -36,8 +36,8 @@ def grayCode(self, n):
36
37
# Proof of closed form formula could be found here:
38
# http://math.stackexchange.com/questions/425894/proof-of-closed-form-formula-to-convert-a-binary-number-to-its-gray-code
39
-class Solution(object):
40
- def grayCode2(self, n):
+class Solution2(object):
+ def grayCode(self, n):
41
"""
42
:type n: int
43
:rtype: List[int]
0 commit comments