mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-06 17:38:02 +00:00
Update bst string representation method (#92)
__repr__ is also used by __str__, but not vice versa.
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
" self.right = None\n",
|
||||
" self.parent = None\n",
|
||||
"\n",
|
||||
" def __str__(self):\n",
|
||||
" def __repr__(self):\n",
|
||||
" return str(self.data)\n",
|
||||
"\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user