Search results

  1. N

    A compact and efficient iterative segment tree optimized for competitive programming.

    #include <bit> #include <functional> #include <vector> template <typename T> class SegmentTree { public: int n; T idt; std::vector<T> seg; std::function<T(T, T)> f;
Back
Top