Skip to content

Commit a551663

Browse files
committed
fix fenwick
1 parent 9ab5baa commit a551663

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/alfred/data_structure/fenwick.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct Fenwick {
2323
inline T query(size_t l, size_t r) {
2424
return l == 0 ? query(r) : subtract(query(r), query(l - 1));
2525
}
26-
inline int kth(const T k) {
26+
inline int kth(T k) {
2727
int ans = 0;
2828
for (int i = 1 << std::__lg(c.size() - 1); i; i >>= 1) {
2929
if (ans + i < (int)c.size() && c[ans + i] <= k) {

0 commit comments

Comments
 (0)