Skip to content

Improved readability and efficiency - #266

Open
Y-Srivaishnavi wants to merge 10 commits into
msc-liet:mainfrom
Y-Srivaishnavi:main
Open

Improved readability and efficiency#266
Y-Srivaishnavi wants to merge 10 commits into
msc-liet:mainfrom
Y-Srivaishnavi:main

Conversation

@Y-Srivaishnavi

Copy link
Copy Markdown

This PR aims to improve readability and efficiency in the following ways:

  1. Added type hints, return types, and docstrings for all programs except calculator.py.

  2. Improved time complexity for vowel lookup in count_vowels.py by using a set data structure for vowels. Sets in Python are implemented using hash tables which allow for efficient lookups in O(1) average time complexity.

Would appreciate your feedback, thanks. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant