size_t SAMNode::operator[](const charType &x) const
- Fixed some includes.
const std::vector<size_t> &HLD::adjacent(size_t u) const
HLD::HLD(size_t size = 0)
=>explicit HLD::HLD(size_t size = 0)
size_t &SAMNode::operator[](size_t x)
=>size_t &SAMNode::operator[](const charType &x)
size_t HLD::size(size_t u) const
size_t HLD::depth(size_t u) const
size_t HLD::heavyChild(size_t u) const
void HLD::reset(size_t size)
=>void HLD::init(size_t size)
- Now when
HLD::build(size_t root)
is called, it will be rebuilt if the root is changed.
- SparseTable
- Use
size_t
instead ofstd::size_t
.
- HLD
- Default constructor of ModInt
- Fixed
ModInt::operator~
andConstantModInt<mod>::operator~
when the modulo number is not prime.
operator==
andoperator<
for ModInt and ConstantModInt.
- ModInt and ConstantModInt
- Split the declaration and the implementation.
- Minified version
- SegmentTree
- SAM
- BIT
- MonotonousQueue