File tree Expand file tree Collapse file tree
source/code/projects/Tree/Tree Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ private string TraversePo(Node nodeP)
250250
251251 public override string ToString ( )
252252 {
253- string returned = "Height of the tree:" + Height ( ) + " (computed alternatively: " + HeightAlt ( ) + ")\n " ;
253+ string returned = "Height of the tree: " + Height ( ) + " (computed alternatively: " + HeightAlt ( ) + ")\n " ;
254254 if ( root != null )
255255 {
256256 returned += Stringify ( root , 0 ) ;
@@ -268,7 +268,7 @@ private string Stringify(Node nodeP, int padding)
268268 {
269269 returned += " " ;
270270 }
271- returned += nodeP + " Depth:" + padding + ", Height: " + nodeP . Height + "\n " ; // Calls Node's ToString method.
271+ returned += nodeP + " Depth: " + padding + ", Height: " + nodeP . Height + "\n " ; // Calls Node's ToString method.
272272 if ( nodeP . left != null )
273273 {
274274 returned += "L" + Stringify ( nodeP . left , padding + 1 ) ;
You can’t perform that action at this time.
0 commit comments