* fixed wrong algo name to radix sort
* added wiki url
* Added "source" in docstring
* Update radix_sort.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* adding the dna algorithm
* following bot recommendations
following bot recommendations for the indentation
* following bot recommendations
following bot recommendations regarding indentation [ again ]
* following bot recommendations
following bot recommendations regarding indentation [ again. ]
* following bot recommendations
following bot recommendations.
* Enhance fenwick_tree.py
* Change update to add in fenwick_tree.py
* Some changes
* Fix bug
* Add O(N) initializer to FenwickTree
* Add get method to Fenwick Tree
* Change tree in Fenwick Tree
* Add rank query to FenwickTree
* Add get_array method to FenwickTree
* Add some tests
* Update data_structures/binary_tree/fenwick_tree.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update data_structures/binary_tree/fenwick_tree.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update data_structures/binary_tree/fenwick_tree.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* change `List` to `list`
Co-authored-by: Christian Clauss <cclauss@me.com>
As described in CONTRIBUTING.md
> Expand acronyms because gcd() is hard to understand but greatest_common_divisor() is not.
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
* Added algorithm for creating Hamming numbers series in Python
* Changed to f-string format.
* Added modifications
* Update and rename hamming.py to hamming_numbers.py
* Update hamming_numbers.py
* Update hamming_numbers.py
* Rename maths/series/hamming_numbers.py to maths/hamming_numbers.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* renames prime functions and occurances in comments
* changes implementation of primality testing to be uniform
* adds static typing as per conventions
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* Get rid of the Union
* updating DIRECTORY.md
* Get rid of the Union
* Remove the redundant pre-commit runs.
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* initial commit
* first implementation of hard margin
* remove debugging print
* many commits squashed because pre-commit was buggy
* more kernels and improved kernel management
* remove unnecessary code + fix names + formatting + doctests
* rename to fit initial naming
* better naming and documentation
* better naming and documentation
* MAINT: Used f-string method
Updated the code with f-string methods wherever required for a better and cleaner understanding of the code.
* Updated files with f-string method
* Update rsa_key_generator.py
* Update rsa_key_generator.py
* Update elgamal_key_generator.py
* Update lru_cache.py
I don't think this change is efficient but it might tackle the error as the error was due to using long character lines.
* Update lru_cache.py
* Update lru_cache.py
Co-authored-by: cyai <seriesscar@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
* Added censor function
* Added censor code
* Added comments to the code
* modified censor function
* added decrypt function
* added cypher and decypher functions, deleted censor and decrypt functions
* Deleted decrypt.py
* Deleted censor.py
* edited the crypt and decrypt files
* Update cypher_txt.py
* Remove the endline in cypher.py
* Removed the print at the end of decypher.py
* added 4 new algorithms
* added tests to the four files
* added type hints for the function variables
* Deleted decode message
* Deleted code message
* Welford average algorithm
* added average welford algorithm
* is_narcissistic added
* added a descriptive name
* added max_sectors algorithm
* added find_unique
* added wave algorithm
* deleting average_welford [ in the wrong pr ]
* deleting is_narcissistic [ is in the wrong pr ]
* deleting max_sectors [ is in the wrong pr ]
* deleting find_unique [ is in the wrong pr ]
* deleting censor [ is in the wrong pr ]
* deleting decrypt [ is in the wrong pr ]
* fixed wave.py
fixed indentation and followed the bots reccomendations
* fixed wave.py again
* fixing wave.py for the third time.
* fixing wave.py
* merging strings/wave.py
merging the suggestion
Co-authored-by: John Law <johnlaw.po@gmail.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Create non_preemptive_shortest_job_first.py
* 파일 위치 변경
* Delete non_preemptive_shortest_job_first.py
* delete Korean comments
* change comments, & to and, type annotation
* type annotation
* delete unnecessary comment
* 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>