public void BSTSequence() { TreeNode n = new TreeNode(20) { Left = new TreeNode(10) { Left = new TreeNode(5) }, Right = new TreeNode(30) { Left = new TreeNode(25), Right = new TreeNode(40) } }; var result = TreesAndGraphs.BSTSequence(n); foreach (var r in result) { Trace.WriteLine(""); foreach (var x in r) { Trace.Write(x + ", "); } } }