-
-
Notifications
You must be signed in to change notification settings - Fork 46.5k
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 |
* Updated test cases of power_sum.py * updated * updated. * remove extra comment and used ** instead of pow * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update backtracking/power_sum.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
Describe your change:
I reduced the test cases, so it will run faster than before
Checklist: