Python/data_structures
hollowcrust 5be5d21bed
Add tests for infix_2_postfix() in infix_to_prefix_conversion.py (#10095)
* Add doctests, exceptions, type hints and fix bug for infix_to_prefix_conversion.py

Add doctests
Add exceptions for expressions with invalid bracket positions
Add type hints for functions
Fix a bug on line 53 (57 in PR)

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

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

* Change type hints in infix_to_prefix_conversion.py

* Remove printing trailing whitespace in the output table

* Fix type hint errors

* Fix doctests

* Adjust table convention in output and doctests

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

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

* Add doctests for infix_2_postfix()

* Update print_width

* Update print_width

* Fix the doctests

---------

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-10-10 18:52:53 +02:00
..
arrays equilibrium index in an array (#9856) 2023-10-09 08:44:49 +13:00
binary_tree Symmetric tree (#9871) 2023-10-06 02:00:58 +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 Remove backslashes from is_palindrome.py (#10169) 2023-10-10 06:42:07 +13:00
queue [bug fixing] Edge case of the double ended queue (#9823) 2023-10-05 10:00:48 -04:00
stacks Add tests for infix_2_postfix() in infix_to_prefix_conversion.py (#10095) 2023-10-10 18:52:53 +02:00
trie Fix radix_tree.py insertion fail in ["*X", "*XX"] cases (#8870) 2023-07-24 11:29:05 +02:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00