Recent content by brainTuner
-
B
Printing a Binary Tree: Solving the Space Issue
Actually I think it doesn't need to restrict the width of the line to 80 or any number. it maybe looks something like this 4 --> to go to 4, needs 15 spaces 5 2 --> to go to 5, needs 7 spaces (15 mod 2), then go to 2, needs 15...- brainTuner
- Post #5
- Forum: Programming and Computer Science
-
B
Printing a Binary Tree: Solving the Space Issue
actually the "/" space is not really compulsory, the problem is to print spaces my current program can only output without appropriate spacing so if input is : 4 7 8 9 2 0 3 1 5 the output will become 4 7 8 9 2 0 3 1 5 What the expected output is 4 7...- brainTuner
- Post #3
- Forum: Programming and Computer Science
-
B
Printing a Binary Tree: Solving the Space Issue
Hi, would you mind helping me in solving this problem? Because I stuck now. The problem is to print a space in a binary tree (not binary search tree) my current program can only output without appropriate spacing so if input is : 4 7 8 9 2 0 3 1 5 the output will become 4 7 8 9 2 0 3 1...- brainTuner
- Thread
- Binary Printing Space Tree
- Replies: 8
- Forum: Programming and Computer Science