C# 为其实现AVLTree和Node
我需要实现一个AVLTree,其中每个节点都是参与者。任何关于如何实现这一点的建议都将非常有帮助,谢谢!我有一个AVLTree什么是工作,但与一个T项目,而不是与整个类。我应该如何修改该树C# 为其实现AVLTree和Node,c#,avl-tree,C#,Avl Tree,我需要实现一个AVLTree,其中每个节点都是参与者。任何关于如何实现这一点的建议都将非常有帮助,谢谢!我有一个AVLTree什么是工作,但与一个T项目,而不是与整个类。我应该如何修改该树 class Actor { string name, detail; LinkedList<Albume> albumes; //add each property that you want Actor( String name, String detail, Linke
class Actor
{
string name, detail;
LinkedList<Albume> albumes;
//add each property that you want
Actor( String name, String detail, LinkedList<Albume> albumes)
{
this.name = name;
this.detail = detail;
this.albumes = albumes;
}
}
class Albume {
string name { get; set; }
string detail { get; set; }
}
类参与者
{
字符串名称、详细信息;
LinkedList专辑;
//添加所需的每个属性
参与者(字符串名称、字符串详细信息、LinkedList相册)
{
this.name=名称;
this.detail=细节;
this.albumes=相册;
}
}
班级相册{
字符串名称{get;set;}
字符串详细信息{get;set;}
}