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
2023-10-03 14:47:10 +05:30
2023-05-26 09:34:17 +02:00
2023-10-09 08:40:14 +13:00
2023-09-23 10:53:09 +02:00
2023-09-23 10:53:09 +02:00
2023-10-07 21:04:24 +02:00
2023-07-31 20:02:49 -07:00
2023-05-26 09:34:17 +02:00
2023-08-17 14:34:53 -07:00
2023-10-04 19:21:46 +02:00
2023-10-03 14:47:10 +05:30
2023-05-26 09:34:17 +02:00
2023-10-03 22:07:25 -04:00
2022-07-23 07:56:59 +05:30
2022-03-16 23:40:48 +08:00

The Algorithms - Python

Gitpod Ready-to-Code Contributions Welcome Discord chat Gitter chat
GitHub Workflow Status pre-commit code style: black

All algorithms implemented in Python - for education

Implementations are for learning purposes only. They may be less efficient than the implementations in the Python standard library. Use them at your discretion.

Getting Started

Read through our Contribution Guidelines before you contribute.

Community Channels

We are on Discord and Gitter! Community channels are a great way for you to ask questions and get help. Please join us!

List of Algorithms

See our directory for easier navigation and a better overview of the project.

Languages
Python 99.9%
Shell 0.1%