mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-03-04 14:48:45 +00:00
Update bst string representation method (#92)
__repr__ is also used by __str__, but not vice versa.
This commit is contained in:
@@ -6,7 +6,7 @@ class Node(object):
|
||||
self.right = None
|
||||
self.parent = None
|
||||
|
||||
def __str__(self):
|
||||
def __repr__(self):
|
||||
return str(self.data)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user