Data Structures, Algorithms, Leetcode, Segment Tree, Programming.
value range of array elements is [1, 100], which can be used as a breakthrough point. The node of the segment tree can maintain the information of the element value range of the interval it governs, which can be implemented using C++ bitset. When querying, simply return the corresponding bitset of