Merge pull request #750 from Jerry-306/patch-5

Update 0494.目标和.md
This commit is contained in:
程序员Carl 2021-09-16 08:39:34 +08:00 committed by GitHub
commit 9fc2c9c6a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ const findTargetSumWays = (nums, target) => {
const sum = nums.reduce((a, b) => a+b);
if(target > sum) {
if(Math.abs(target) > sum) {
return 0;
}