A C# program to add branches and calculate the depth of the branches.
- Visual Studio or other .NET development environment
- Clone or download the repository
- Open the solution file in Visual Studio
- Run the program and it will allow you to add branches and calculate their depth
- The program uses a class called
Branch
to define a branch object, which has a list of branches as its member variable. - Each time you add a new branch, the depth of the branches will increase by 1.
- The depth of the branches is calculated using a helper function
CalculateDepth
.
Feel free to contribute to this project by creating a pull request or reporting an issue.