|
Algorithms_in_C++
1.0.0
Set of algorithms implemented in C++.
|
Public Member Functions | |
| Bit (vector< int > &arr) | |
| Bit (int x) | |
| void | update (int id, int val) |
| int | sum (int id) |
| int | sum_range (int l, int r) |
Private Member Functions | |
| int | offset (int x) |
Private Attributes | |
| int | n |
| vector< int > | bit |