Skip to content

tuanhle94/DataStructure_GeneralTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataStructure_GeneralTree

Data Structure - Implementation of a general tree in C#

Description:

  1. Create a node class. The constructor should accept an argument that gets assigned to the data property and initialize an empty array for storing children. The node class should have methods 'add' and 'remove'.
  2. Create a tree class. The tree constructor should initialize a 'root' property to null.
  3. Implement 'traverseBF' and 'traverseDF'on the tree class. Each method should accept a function that gets called with each element in the tree.

About

Data Structure - Implementation of a general tree in C#

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages