You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Converts this tree into the string representation.
*
* Time - O(n)
* Space - O(log n)
*/
override def toString: String =
if (isEmpty) "."
else "{" + left + value + right + "}"
hi, I learned a lot from your code. thanks.
IN the Tree data structure, the toString method is not visual friendly. why not just paint a tree use diagram.
The text was updated successfully, but these errors were encountered:
hi, I learned a lot from your code. thanks.
IN the
Tree
data structure, thetoString
method is not visual friendly. why not just paint a tree use diagram.The text was updated successfully, but these errors were encountered: