mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-04 02:56:40 +08:00
Update data_structures/sparse_table.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ namespace sparse_table {
|
||||
struct Sparse_table {
|
||||
const static int N = 12345; ///< the maximum size of the array.
|
||||
const static int M = 14; ///< ceil(log2(N)).
|
||||
int n; ///< size of input array.
|
||||
int n = 0; ///< size of input array.
|
||||
|
||||
/** @warning check if `N` is not less than `n`. if so, manually increase the
|
||||
* value of N */
|
||||
|
||||
Reference in New Issue
Block a user