* Add Multi-Level-Feedback-Queue scheduling algorithm
* fix type hint annotation for pre-commit
* Update scheduling/multi_level_feedback_queue.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update scheduling/multi_level_feedback_queue.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update scheduling/multi_level_feedback_queue.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update scheduling/multi_level_feedback_queue.py
* Update scheduling/multi_level_feedback_queue.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Added excel column title to number algorithm as part of conversions
* Renamed file to better reflect algorithm function
* Removed duplicate file
* Update excel_title_to_column.py
* Update excel_title_to_column.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Fixed bug where array length 2 can't be sorted
* Add MCC and DU path test
Add test to conversions/octal_to_decimal.py and sorts\iterative_merge_sort.py
* ""
* Update octal_to_decimal.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Add files via upload
* Changed print to f-string
Also printed out results in a math notation
* Add files via upload
* Fixes: #4710 provided return type
* File exists in another pull request
* imported radians from math
* Updated file according to pre-commit test
* Updated file
* Updated gamma
* Deleted duplicate file
* removed pi
* reversed tests
* Fixed angle condition
* Modified prints to f-string
* Update horizontal_projectile_motion.py
* Update horizontal_projectile_motion.py
* Fixes#4710 added exceptions and tests
* Added float tests
* Fixed type annotations
* Fixed last annotation
* Fixed annotations
* fixed format
* Revert "fixed format"
This reverts commit 5b0249ac0a.
Undo changes
@wq
* Revert "Fixed annotations"
This reverts commit c37bb95408.
* Revert "Fixed last annotation"
This reverts commit e3678fdead.
* Revert "Fixed type annotations"
This reverts commit 3f2b238c34.
* Revert to 4e2fcaf6fb
* Fixing errors found during pre-commit
* Added gauss law
* Implemented Lorenz tranformation with four vector
* pre-commit fixes
* flake8 fixes
* More flake8 fixes
* Added blank space for flake8
* Added reference
* Trailing whitespace fix
* Replaced argument u with velocity (descriptive name fix)
* Added tests for functions + moved velocity check to beta function
* Modified condition to 'not symbolic' in the transform function
* trainling whitespace fix
* Added type hint for 'smybolic' argument in transform function
* Changed reference to avoid pre-commit fails because of spelling issue related to the URL
* Added tests for gamma and transformation_matrix functions
* Fixed transformation_matrix tests
* Fixed tests on beta and gamma functions
* First commit for add_prefix_conversion
* Class names in CamelCase, str.format() to f-string
* Fixed following pre-commit guidelines
* solved issues with mypy and enum.Enum
* Rename add_prefix_conversion.py to prefix_conversions_string.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Add files via upload
* Changed print to f-string
Also printed out results in a math notation
* Add files via upload
* Fixes: #4710 provided return type
* File exists in another pull request
* imported radians from math
* Updated file according to pre-commit test
* Updated file
* Updated gamma
* Deleted duplicate file
* removed pi
* reversed tests
* Fixed angle condition
* Modified prints to f-string
* Update horizontal_projectile_motion.py
* Update horizontal_projectile_motion.py
* Fixes#4710 added exceptions and tests
* Added float tests
* Fixed type annotations
* Fixed last annotation
* Fixed annotations
* fixed format
* Revert "fixed format"
This reverts commit 5b0249ac0a.
Undo changes
@wq
* Revert "Fixed annotations"
This reverts commit c37bb95408.
* Revert "Fixed last annotation"
This reverts commit e3678fdead.
* Revert "Fixed type annotations"
This reverts commit 3f2b238c34.
* Revert to 4e2fcaf6fb
* Fixing errors found during pre-commit
* feat: added ngram algorithm
* fix(test): use `math.isclose` to match floating point numbers approximately
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
* Added average absolute deviation
* Formats program with black
* reruns updated pre commit
* Update average_absolute_deviation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Add points are collinear in 3d algorithm to /maths
* Apply suggestions from code review in points_are_collinear_3d.py
Thanks to cclauss.
Co-authored-by: Christian Clauss <cclauss@me.com>
* Rename some variables to be more self-documenting.
* Update points_are_collinear_3d.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* The black formatter is no longer beta
* pre-commit autoupdate
* pre-commit autoupdate
* Remove project_euler/problem_145 which is killing our CI tests
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* Syntax improvements (I hope) to boolean algebra
* Reverted certain index variables to i
* remove extra line on decimal_to_binary
* Update quine_mc_cluskey.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* makes LRUCache constructor concrete
* fixes bug in dq_removal in other/least_recently_used
+ deque.remove() operates by value not index
* [mypy] Annotates other/least_recently_used over generic type
+ clean-up: rename key_reference to match type.
* [mypy] updates example to demonstrate LRUCache with complex type
* Adds doctest to other/least_recently_used
* mypy.ini: Remove exclude = (other/least_recently_used.py)
* Various mypy configs
* Delete mypy.ini
* Add mypy to .pre-commit-config.yaml
* mypy --ignore-missing-imports --install-types --non-interactive .
* mypy v0.910
* Pillow=8.3.7
* Pillow==8.3.7
* Pillow==8.3.2
* Update .pre-commit-config.yaml
* Update requirements.txt
* Update pre-commit.yml
* --install-types # See mirrors-mypy README.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* add 5 README files
* empty commit to (hopefully) get rid of the `test-are-failling` label
* Update ciphers/README.md
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update conversions/README.md
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update cellular_automata/README.md
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update computer_vision/README.md
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update conversions/README.md
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update compression/README.md
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Adds repr and doctest of current behavior linkedlist in other/lru_cache
* Blocks removal of head or tail of double linked list
* clarifies add() logic for double linked list in other/lru_cache
* expands doctests to compare cache and lru cache
* [mypy] annotates vars for other/lru_cache
* [mypy] Annotates lru_cache decorator for other/lru_cache
* Higher order functions require a verbose Callable annotation
* [mypy] Makes LRU_Cache generic over key and value types for other/lru_cache
+ no reason to force int -> int
* [mypy] makes decorator a classmethod for access to class generic types
* breaks two long lines in doctest for other/lru_cache
* simplifies boundary test remove() for other/lru_cache
* [mypy] Annotates, adds doctests, and makes Generic other/lfu_cache
See also commits to other/lru_cache which guided these
* [mypy] annotates cls var in other/lfu_cache
* cleans up items from code review for lfu_cache and lru_cache
* [mypy] runs mypy on lfu_cache and lru_cache