From 518cbfd09efe103afbfae3edfb41cd589ceef46d Mon Sep 17 00:00:00 2001 From: Aniruthan R <67466816+aneee004@users.noreply.github.com> Date: Fri, 14 Aug 2020 02:38:20 +0530 Subject: [PATCH] Edited comments --- range_queries/heavy_light_decomposition.cpp | 27 +++++++++------------ 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/range_queries/heavy_light_decomposition.cpp b/range_queries/heavy_light_decomposition.cpp index 36fda1d54..abf868e92 100644 --- a/range_queries/heavy_light_decomposition.cpp +++ b/range_queries/heavy_light_decomposition.cpp @@ -58,22 +58,19 @@ */ template class Tree { - /* - * Deleting the default constructor - * An instance can only be created with the number of nodes - */ + // Deleting the default constructor + // 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: std::vector> t_adj; const int t_nodes, t_maxlift;