Beispiel #1
0
        public string PostOrderTraverse()
        {
            BSTTraversalEngine.PostOrderEngine(Root);
            var resultList   = BSTTraversalEngine.Postfix;
            var resultString = string.Join(" ", resultList);;

            BSTTraversalEngine.Postfix.Clear();
            return(string.Join(" ", resultList));;
        }
Beispiel #2
0
        public string PostOrderTraverse(INode node)
        {
            BSTTraversalEngine.PostOrderEngine(node);
            var resultList   = BSTTraversalEngine.Postfix;
            var resultString = string.Join(" ", resultList);

            BSTTraversalEngine.Postfix.Clear();
            return(resultString);
        }