Python/data_structures
Sherman Hui 629848e372
[mypy] Fix type annotations in data_structures/binary_tree (#5518)
* fix: fix mypy errors

Update binary_search_tree `arr` argument to be typed as a list
within `find_kth_smallest` function

Update return type of `merge_two_binary_trees` as both inputs can
be None which means that a None type value can be returned from
this function

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-10-22 16:07:05 +02:00
..
binary_tree [mypy] Fix type annotations in data_structures/binary_tree (#5518) 2021-10-22 16:07:05 +02:00
disjoint_set Add type annotations (#4814) 2021-10-12 00:34:30 +08:00
hashing Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
heap Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
linked_list [mypy] fix: fix mypy error in singly_linked_list.py (#5517) 2021-10-22 11:39:18 +08:00
queue Replace double_ended_queue.py (#5429) 2021-10-21 11:38:04 +08:00
stacks Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
trie [mypy] fix: fix mypy error in trie.py(#5516) 2021-10-22 11:40:17 +08:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00