Python/data_structures
1227haran cfd6d095f1
Added max_sum_bst.py (#11832)
* Added new algorithm

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

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

* Updated changes

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

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

* Updated filename

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

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

* Updated code

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

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

* Updated the code

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

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

* Updated code

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

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

* Updated the code

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

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

* Updated code

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

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

* Updated the code

* Updated code

* Updated code

* Updated code

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

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

* Updated the code

* Updated code

* Updated code

* Updated code

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

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

* Updated code

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

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

* Updated code

* updated

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

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

* Updated code

* Updated code

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

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

* Updated code

* Updated code

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

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

* Updated code

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

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

* Updated code

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

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

* Apply suggestions from code review

* Update maximum_sum_bst.py

* def max_sum_bst(root: TreeNode | None) -> int:

* def solver(node: TreeNode | None) -> tuple[bool, int, int, int]:

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2024-10-07 10:36:15 +02:00
..
arrays Enable ruff UP031 rule (#11388) 2024-04-30 06:40:26 +02:00
binary_tree Added max_sum_bst.py (#11832) 2024-10-07 10:36:15 +02:00
disjoint_set [pre-commit.ci] pre-commit autoupdate (#11322) 2024-03-13 07:52:41 +01:00
hashing Fix some ARG002 per file ignores (#11382) 2024-05-01 21:27:59 +02:00
heap Upgrade to Python 3.13 (#11588) 2024-09-30 23:01:15 +02:00
kd_tree Implemented Suffix Tree Data Structure (#11554) 2024-09-28 15:37:00 +02:00
linked_list Optimized O(n) to O(1) (#11669) 2024-10-02 11:07:07 -07:00
queue Added documentations (#11352) 2024-04-08 13:35:22 +02:00
stacks Added new algorithm to generate numbers in lexicographical order (#11674) 2024-10-05 10:19:58 -07:00
suffix_tree Implemented Suffix Tree Data Structure (#11554) 2024-09-28 15:37:00 +02:00
trie Enable ruff PLR5501 rule (#11332) 2024-03-28 18:25:41 +01:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00