Update heavy_light_decomposition.cpp

This commit is contained in:
Aniruthan R
2020-08-14 01:21:37 +05:30
committed by GitHub
parent f4504cac44
commit 331c52213d

View File

@@ -55,6 +55,7 @@
/**
* A Basic Tree, which supports binary lifting
* @template, the data type of the values stored in the tree nodes
*/
template<typename X>
class Tree {
@@ -226,6 +227,7 @@ public:
/**
* Segment Tree, to store heavy chains
* @template, the data type of the values stored in the tree nodes
*/
template<typename X>
class SG {
@@ -300,6 +302,7 @@ private:
/**
* The Heavy-Light Decomposition class
* @template, the data type of the values stored in the tree nodes
*/
template<typename X>
class HLD : public Tree<X>, public SG<X> {