Python/data_structures/binary_tree
Caeden Perelli-Harris daa1c7529a
Raise error not string (#7945)
* ci: Add `B023` to `.flake8` ignores

* refactor: Return `bool`/raise Exception

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

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

* revert: Remove previous branch commit

* Update data_structures/binary_tree/segment_tree_other.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* feat: Apply `__repr__` changes

* chore: Fix failing tests

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

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

* Update data_structures/binary_tree/segment_tree_other.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* test: Fix doctests

* random.choice(population_score[:N_SELECTED])[0]

* Update basic_string.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>
2022-11-06 15:54:44 +01:00
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
avl_tree.py Add flake8-builtins to pre-commit and fix errors (#7105) 2022-10-13 19:53:59 +05:30
basic_binary_tree.py Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
binary_search_tree_recursive.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
binary_search_tree.py refactor: Indent ... for visual purposes (#7744) 2022-10-27 19:42:30 +02:00
binary_tree_mirror.py refactor: Indent ... for visual purposes (#7744) 2022-10-27 19:42:30 +02:00
binary_tree_node_sum.py feat: Binary tree node sum (#7020) (#7162) 2022-10-15 14:58:09 +02:00
binary_tree_path_sum.py Binary tree path sum (#7748) 2022-10-27 23:03:01 +02:00
binary_tree_traversals.md docs: Fix quicksort & binary tree traversal doc (#4878) 2022-04-29 01:05:21 +08:00
binary_tree_traversals.py refactor: Make code more understandable (#7196) 2022-10-15 00:25:15 +02:00
diff_views_of_binary_tree.py [Binary Tree] Different views of binary tree added (#6965) 2022-10-17 22:30:01 +02:00
fenwick_tree.py Flake8: Drop ignore of issue A003 (#7949) 2022-11-02 19:20:45 +01:00
inorder_tree_traversal_2022.py Binary Search Tree Inorder Traversal Algorithm (#6840) 2022-10-13 14:09:01 +02:00
is_bst.py add algorithm to check binary search tree (#7947) 2022-11-03 21:03:37 +01:00
lazy_segment_tree.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
lowest_common_ancestor.py [mypy] Fix type annotations in data_structures/binary_tree/lowest_common_ancestor.py (#5757) 2021-11-03 21:34:08 +01:00
maximum_fenwick_tree.py Fix Max Fenwick Tree (#6328) 2022-09-14 09:24:55 +01:00
merge_two_binary_trees.py Add pyupgrade to pre-commit (#5638) 2021-10-28 16:45:59 +02:00
non_recursive_segment_tree.py Fix yesqa hook (#7843) 2022-10-29 15:07:02 +02:00
number_of_possible_binary_trees.py refactor: Indent ... for visual purposes (#7744) 2022-10-27 19:42:30 +02:00
red_black_tree.py pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0 (#6245) 2022-07-11 10:19:52 +02:00
segment_tree_other.py Raise error not string (#7945) 2022-11-06 15:54:44 +01:00
segment_tree.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
treap.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
wavelet_tree.py Raise error not string (#7945) 2022-11-06 15:54:44 +01:00