Edited comments

This commit is contained in:
Aniruthan R
2020-08-14 02:38:20 +05:30
committed by GitHub
parent 5a504459fe
commit 518cbfd09e

View File

@@ -58,22 +58,19 @@
*/ */
template<typename X> template<typename X>
class Tree { class Tree {
/* // Deleting the default constructor
* Deleting the default constructor // An instance can only be created with the number of nodes
* An instance can only be created with the number of nodes //
*/ // Defaults:
// t_node indexing are zero based
// t_root is 0
// depth of root_node is 0
//
// Supports:
// lift :- lift a node k units up the tree
// kth_ancestor :- returns the kth ancestor
// lca :- returns the least common ancestor
/* Defaults:
* t_node indexing are zero based
* t_root is 0
* depth of root_node is 0
*/
/* Supports:
* lift :- lift a node k units up the tree
* kth_ancestor :- returns the kth ancestor
* lca :- returns the least common ancestor
*/
private: private:
std::vector<std::list<int>> t_adj; std::vector<std::list<int>> t_adj;
const int t_nodes, t_maxlift; const int t_nodes, t_maxlift;