We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ab5baa commit a551663Copy full SHA for a551663
1 file changed
src/alfred/data_structure/fenwick.hpp
@@ -23,7 +23,7 @@ struct Fenwick {
23
inline T query(size_t l, size_t r) {
24
return l == 0 ? query(r) : subtract(query(r), query(l - 1));
25
}
26
- inline int kth(const T k) {
+ inline int kth(T k) {
27
int ans = 0;
28
for (int i = 1 << std::__lg(c.size() - 1); i; i >>= 1) {
29
if (ans + i < (int)c.size() && c[ans + i] <= k) {
0 commit comments