mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 18:08:01 +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