add algorithm to check binary search tree (#7947)
add algorithm to check binary search tree (#7947)

* add algorithm to check binary search tree

* add tests

* add leetcode link

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

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

* fix typehints

* typehints fixes

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

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

* Update data_structures/binary_tree/is_bst.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update data_structures/binary_tree/is_bst.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update data_structures/binary_tree/is_bst.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

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

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

* fix flake8

* fix typehint

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

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

* add TreeNode resolving

* Update data_structures/binary_tree/is_bst.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update data_structures/binary_tree/is_bst.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update data_structures/binary_tree/is_bst.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update data_structures/binary_tree/is_bst.py

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

* change func name

* Update data_structures/binary_tree/is_bst.py

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

* review notes fixes.

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

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

* fix flake8

* fix flake 8

* fix doctest

* Update data_structures/binary_tree/is_bst.py

Co-authored-by: pre-commit-ci[bot] <3ea08453efb076ca910552532a53973a6527df40@users.noreply.github.com>
Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>
Co-authored-by: Christian Clauss <585dd401264c1e46d17ebec1862e5d2a9b6a6c5d@me.com>
TheAlgorithms/Python