-
-
Notifications
You must be signed in to change notification settings - Fork 44.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated test cases of power_sum.py #9978
Updated test cases of power_sum.py #9978
Conversation
The issue remains unresolved. |
power_sum.py has been removed from that list :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also modify the code to use the **
operator instead of the pow
function from math
?
backtracking/power_sum.py
Outdated
@@ -90,4 +90,5 @@ def solve(needed_sum: int, power: int) -> int: | |||
if __name__ == "__main__": | |||
import doctest | |||
|
|||
# print(backtrack(80, 1, 1, 0, 0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you plan to keep this line of code?
Also, please put the issue number in your PR's description:
This way, GitHub can automatically link your PR to the original issue. However, don't use the word "fixes", because your PR doesn't completely fix the issue on its own. |
On your computer, please run: |
OLD CODE NEW CODE |
…rr/Python into update_power_sum.py
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Contributes to #9718 |
Describe your change:
I reduced the test cases, so it will run faster than before
Checklist: