File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
solution/1800-1899/1863.Sum of All Subset XOR Totals Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ public:
286286 int subsetXORSum(vector<int >& nums) {
287287 int n = nums.size();
288288 int ans = 0;
289- function<void(int, int)> dfs = [ &] (int i, int s) {
289+ auto dfs = [ &] (this auto&& dfs, int i, int s) {
290290 if (i >= n) {
291291 ans += s;
292292 return;
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ public:
287287 int subsetXORSum(vector<int >& nums) {
288288 int n = nums.size();
289289 int ans = 0;
290- function<void(int, int)> dfs = [ &] (int i, int s) {
290+ auto dfs = [ &] (this auto&& dfs, int i, int s) {
291291 if (i >= n) {
292292 ans += s;
293293 return;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ class Solution {
33 int subsetXORSum (vector<int >& nums) {
44 int n = nums.size ();
55 int ans = 0 ;
6- function< void ( int , int )> dfs = [&](int i, int s) {
6+ auto dfs = [&](this auto && dfs, int i, int s) {
77 if (i >= n) {
88 ans += s;
99 return ;
You can’t perform that action at this time.
0 commit comments