diff options
| author | Noobie99 <noob999noob999@gmail.com> | 2024-01-30 21:12:57 +0100 |
|---|---|---|
| committer | Noobie99 <noob999noob999@gmail.com> | 2024-01-30 21:12:57 +0100 |
| commit | 78477666f0093e5f02732a4170f691ba929f017e (patch) | |
| tree | c5d0f74bf76aff36eb42328315bc0b4c131adeba /datastructures/sparseTable.cpp | |
| parent | 6adc67a45b665016b75b2a0958b1aa424daf2d10 (diff) | |
fix sparseTable
Diffstat (limited to 'datastructures/sparseTable.cpp')
| -rw-r--r-- | datastructures/sparseTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datastructures/sparseTable.cpp b/datastructures/sparseTable.cpp index 7578695..63cce48 100644 --- a/datastructures/sparseTable.cpp +++ b/datastructures/sparseTable.cpp @@ -1,6 +1,6 @@ struct SparseTable { vector<vector<int>> st; - vector<ll> *a; + ll *a; int better(int lidx, int ridx) { return a[lidx] <= a[ridx] ? lidx : ridx; |
