Skip to content

Commit ef729c1

Browse files
authored
Update 416.Partition-Equal-Subset-Sum_dfs_v2.cpp
1 parent efa9557 commit ef729c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dynamic_Programming/416.Partition-Equal-Subset-Sum/416.Partition-Equal-Subset-Sum_dfs_v2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Solution {
1010

1111
bool dfs(vector<int>& nums, int targetSum, int i, int sum)
1212
{
13-
int hash = sum * 20005 + i;
13+
int hash = sum * 1000 + i;
1414
if (visited.find(hash)!=visited.end())
1515
return false;
1616

0 commit comments

Comments
 (0)