Skip to content

Commit 20bb984

Browse files
authored
Update gray-code.py
1 parent 34bb0a1 commit 20bb984

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/gray-code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def grayCode(self, n):
3636

3737
# Proof of closed form formula could be found here:
3838
# 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):
39+
class Solution2(object):
40+
def grayCode(self, n):
4141
"""
4242
:type n: int
4343
:rtype: List[int]

0 commit comments

Comments
 (0)