Python/data_structures
Himanshu Tomar 331585f3f8
Algorithm: Calculating Product Sum from a Special Array with Nested Structures (#8761)
* Added minimum waiting time problem solution using greedy algorithm

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

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

* ruff --fix

* Add type hints

* Added two more doc test

* Removed unnecessary comments

* updated type hints

* Updated the code as per the code review

* Added recursive algo to calculate product sum from an array

* Added recursive algo to calculate product sum from an array

* Update doc string

* Added doctest for product_sum function

* Updated the code and added more doctests

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

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

* Added more test coverage for product_sum method

* Update product_sum.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-06-23 10:26:05 +02:00
..
arrays Algorithm: Calculating Product Sum from a Special Array with Nested Structures (#8761) 2023-06-23 10:26:05 +02:00
binary_tree Fix removing the root node in binary_search_tree.py removes the whole tree (#8752) 2023-06-18 18:30:06 +02:00
disjoint_set Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
hashing Bloom Filter (#8615) 2023-04-08 19:39:24 +02:00
heap Solving the Top k most frequent words problem using a max-heap (#8685) 2023-04-27 23:02:07 +05:30
linked_list Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
queue Dijkstra algorithm with binary grid (#8802) 2023-06-22 13:49:09 +02:00
stacks Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
trie Added Radix Tree in data structures (#6616) 2022-10-31 14:14:33 +01:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00