User Profile

Collapse

Profile Sidebar

Collapse
jcolbert30
jcolbert30
Last Activity: May 13 '10, 09:38 PM
Joined: May 13 '10
Location: Fremont, CA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ok, let me restate my question:

    1. How do I write the results of a Binary Tree in C# to a tetx file. I found that part but I have not found how to link the C# code to my main code to get output to a text file.

    When you say put tags in my code can you give an example of what you mean, thanks.

    2. Here is my output code to a text file:

    By The Way, I am using Visual Studio 2008:

    ...
    See more | Go to post

    Leave a comment:


  • Write to a file all of the values of a Binary Tree Nodes at the specified depth from.

    1. Implement the following C# method to write to a file all the values of the binary tree nodes at the specified depth from the root. Root has depth 0. Start from the leftmost node. An iterative solution is preferred over a recursive one.

    class TreeNode
    {
    public int Value { get; set; }
    public TreeNode LeftChild { get; set; }
    public TreeNode RightChild { get; set; }
    public TreeNode Parent {...
    See more | Go to post
    Last edited by jcolbert30; May 13 '10, 04:26 PM. Reason: Changed code in my demo.
No activity results to display
Show More
Working...