Skip to content

Ismaels day5#23

Open
VarelaIT wants to merge 4 commits intoorodriguez:mainfrom
VarelaIT:IsmaelsDay5
Open

Ismaels day5#23
VarelaIT wants to merge 4 commits intoorodriguez:mainfrom
VarelaIT:IsmaelsDay5

Conversation

@VarelaIT
Copy link

La ciruela, pasa...

    public IEnumerable<char> Print()
    {
        var result = "";

        TraversePreOrder(node =>{
            if(node.Level > 0)
                result += "\n|";

            for(int i = node.Level; i > 0; i --)
                result += "_";
            
            result += node.Value;
        });
        
        return result;

    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants