Changing Name of file and adding doctests in file.#9504
Closed
AasheeshLikePanner wants to merge 2 commits intoTheAlgorithms:masterfrom
AasheeshLikePanner:master
Closed
Changing Name of file and adding doctests in file.#9504AasheeshLikePanner wants to merge 2 commits intoTheAlgorithms:masterfrom AasheeshLikePanner:master
AasheeshLikePanner wants to merge 2 commits intoTheAlgorithms:masterfrom
AasheeshLikePanner:master
Conversation
for more information, see https://pre-commit.ci
tianyizheng02
requested changes
Oct 2, 2023
| * [Binary Exp Mod](maths/binary_exp_mod.py) | ||
| * [Binary Exponentiation](maths/binary_exponentiation.py) | ||
| * [Binary Exponentiation 2](maths/binary_exponentiation_2.py) | ||
| * [Binary Exponentiation 2](maths/binary_multiplication.py) |
Contributor
There was a problem hiding this comment.
Please don't modify DIRECTORY.md. This file is auto-generated with a script.
Comment on lines
+49
to
+52
| if __name__ == "__main__": | ||
| import doctest | ||
|
|
||
| doctest.testmod() |
Contributor
There was a problem hiding this comment.
The main block should be placed at the bottom of the file.
| doctest.testmod() | ||
|
|
||
|
|
||
| def b_expo_mod(a: int, b: int, c: int) -> int: |
Contributor
There was a problem hiding this comment.
This function also needs doctests
Contributor
|
??? Ok then |
Contributor
Author
|
Can you please check this one Pr. I am new to git i am not able to change things in this PR so I made this new repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your change:
Change the File and Added doctests in maths/binary_exponentiation_2.py
Fixes Issue #9478
Checklist:
maths/binary_exponentiation_2.pyneeds to be renamed #9478