Tree Printing with '.' character instead of whole path

How to print tree without printing path in the first line. MY code prints the right tree but it has path written in first line instead of ‘.’
I’m working for 2 hours on this.Please help

Please go through the TODO’s and understand what has to be done, the particular solution should be solved by understanding how the PATH can be represented.

1 Like