Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 706 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 706 Bytes

TreeParser

Description

TreeParser is a command line application that constructs a binary tree from a comma-separated list of positive integers and prints the in-order traversal of the tree to the console. The tree structure is also saved to disk in a text format.

Usage

TreeParser.exe "15,10,22,4,12,18,24"

Dependencies

  • .NET SDK
  • Xunit (for unit tests)

Build and Run

  1. Clone the repository.
  2. Open a terminal in the project directory.
  3. Build the project using the following command: dotnet build
  4. Run the application with the desired input. (dotnet run --project TreeParsing "15,10,22,4,12,18,24")

Running Tests

To run the unit tests, use the following command: dotnet test