Skip to content

Commit b554366

Browse files
committed
add docs now
1 parent 4dabe33 commit b554366

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • library/data_structures_[l,r)/bit_uncommon

library/data_structures_[l,r)/bit_uncommon/kd_bit.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
#pragma once
2+
//! https://github.com/ucf-programming-team/hackpack-cpp/blob/master/content/data-structures/KDBIT.h
3+
//! @code
4+
//! KD_BIT<2> bit(n, m);
5+
//! bit.update(i, j, 5);
6+
//! bit.query(i1, i2, j1, j2));
7+
//! @endcode
8+
//! @time O(n^k + q * log^k n)
9+
//! @space O(n^k)
10+
// NOLINTNEXTLINE(readability-identifier-naming)
111
template<int K> struct KD_BIT;
212
template<> struct KD_BIT<0> {
313
ll s = 0;

0 commit comments

Comments
 (0)