Algorithms_in_C++  1.0.0
Set of algorithms implemented in C++.
Bit Class Reference
Collaboration diagram for Bit:
[legend]

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
 

The documentation for this class was generated from the following file: