forked from simongog/sdsl-lite
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpl-26.cpp
More file actions
Latest commit
15 lines (13 loc) · 373 Bytes
/
Copy pathexpl-26.cpp
File metadata and controls
15 lines (13 loc) · 373 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<sdsl/rmq_support.hpp>
#include<iostream>
usingnamespacestd;
usingnamespacesdsl;
intmain()
{
// 0 1 2 3 4 5 6 7 8 9 0
int_vector<> v = {5,3,8,9,1,2,5,3,9,0,7};
rmq_succinct_sct<> rmq(&v); // <- pointer to b
util::clear(v);
cout << "v.size() = " << v.size() << endl;
cout << rmq(0, 10) << ", " << rmq(2, 7) << endl;
}