mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-08 13:06:57 +08:00
Update data_structures/sparse_table.cpp
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@ namespace sparse_table {
|
|||||||
* function, for the given array `A`. The answer to queries are stored in the
|
* function, for the given array `A`. The answer to queries are stored in the
|
||||||
* array ST.
|
* array ST.
|
||||||
*/
|
*/
|
||||||
const static uint32_t N = 12345; ///< the maximum size of the array.
|
constexpr uint32_t N = 12345; ///< the maximum size of the array.
|
||||||
const static uint8_t M = 14; ///< ceil(log2(N)).
|
const static uint8_t M = 14; ///< ceil(log2(N)).
|
||||||
|
|
||||||
struct Sparse_table {
|
struct Sparse_table {
|
||||||
|
|||||||
Reference in New Issue
Block a user