We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30b9a8b commit fca121dCopy full SHA for fca121d
solution/1800-1899/1863.Sum of All Subset XOR Totals/README.md
@@ -286,7 +286,7 @@ public:
286
int subsetXORSum(vector<int>& nums) {
287
int n = nums.size();
288
int ans = 0;
289
- function<void(int, int)> dfs = [&](int i, int s) {
+ auto dfs = [&](this auto&& dfs, int i, int s) {
290
if (i >= n) {
291
ans += s;
292
return;
0 commit comments