C# Class TreeTraversal.Program

Datei anzeigen Open project: nzhul/TelerikAcademy

Public Methods

Method Description
DFS ( Node node, Func action ) : void

Private Methods

Method Description
BFS ( Node node, Func action ) : void
FindAllLeafs ( Node nodes ) : List>
FindAllMiddleNodes ( Node nodes ) : List>
FindAllPathsWithSum ( Node nodes, int searchedSum ) : HashSet
FindAllSubtrees ( Node nodes, int searchedSum ) : HashSet
FindLongestPath ( Node root ) : int
FindRoot ( Node nodes ) : Node
Main ( string args ) : void

Method Details

DFS() public static method

public static DFS ( Node node, Func action ) : void
node Node
action Func
return void