| 12 | }; |
| 13 | |
| 14 | void test() { |
| 15 | rep(n,0,257) { |
| 16 | vi arr(n); |
| 17 | rep(i,0,n) arr[i] = rng() % 1000000000; |
| 18 | |
| 19 | sparse_table_slow A(arr); |
| 20 | sparse_table B(arr); |
| 21 | rep(l,0,n) { |
| 22 | rep(r,l+1,n) { |
| 23 | assert_equal(A.query(l,r), B.query(l,r), true); |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | } |
nothing calls this directly
no test coverage detected