Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0829a91

Browse files
authoredFeb 3, 2020
Update maximum-product-of-splitted-binary-tree.cpp
1 parent 2a4c556 commit 0829a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎C++/maximum-product-of-splitted-binary-tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class Solution {
1414
public:
1515
int maxProduct(TreeNode* root) {
16-
static int MOD = 1e9 + 7;
16+
static const int MOD = 1e9 + 7;
1717
int64_t result = 0;
1818
dfs(root, dfs(root, 0, &result), &result);
1919
return result % MOD;

0 commit comments

Comments
 (0)
Please sign in to comment.