Skip to content

Commit 7d759ee

Browse files
committed
Fix typo. Rename varaible from i to l
1 parent e4ce8d3 commit 7d759ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sparse Table/README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Overall time is: **O(NlgN + Q)** to build the table and answer all queries.
279279
The naive approach is to do a for loop for each query. The overall time for the naive approach is: **O(NQ)**.
280280
For very large **Q**, the naive approach will scale poorly. For example if `Q = O(N*N)`
281281
then the naive approach is `O(N*N*N)` where a Sparse Table takes time `O(N*N)`.
282-
- **Space**- The number of possible **w** is **lgN** and the number of possible **i** our table is **N**. So the table
282+
- **Space**- The number of possible **w** is **lgN** and the number of possible **l** our table is **N**. So the table
283283
has uses **O(NlgN)** additional space.
284284

285285
### Comparison with Segment Trees

0 commit comments

Comments
 (0)