Skip to content

Commit 930bce0

Browse files
committed
Update house-robber-iii.cpp
1 parent af574fd commit 930bce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/house-robber-iii.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 rob(TreeNode* root) {
16-
pair<int, int> res = robHelper(root);
16+
auto res = robHelper(root);
1717
return max(res.first, res.second);
1818
}
1919

0 commit comments

Comments
 (0)