Python/data_structures/arrays
hollowcrust 3d6f3c4188
Added data_structures/arrays/sparse_table.py (#10437)
* Create sparse_table.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Descriptive names for variables

* Fix ruff check error

* Update sparse_table.py

* Add comments, change variable names

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix typo

* Update sparse_table.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-10-15 22:13:27 +02:00
..
equilibrium_index_in_array.py equilibrium index in an array (#9856) 2023-10-09 08:44:49 +13:00
find_triplets_with_0_sum.py add find triplets with 0 sum (3sum) (#10040) 2023-10-12 21:51:53 +02:00
median_two_array.py add median of two sorted array (#9386) 2023-10-04 20:18:59 +02:00
pairs_with_given_sum.py Count pairs with given sum (#10282) 2023-10-12 11:08:55 +02:00
permutations.py Fixed permute_recursive() by passing nums.copy(). Fixes #9014 (#9161) 2023-10-01 00:06:15 -04:00
prefix_sum.py add prefix sum (#7959) 2022-11-04 20:30:32 +13:00
product_sum.py Algorithm: Calculating Product Sum from a Special Array with Nested Structures (#8761) 2023-06-23 10:26:05 +02:00
sparse_table.py Added data_structures/arrays/sparse_table.py (#10437) 2023-10-15 22:13:27 +02:00