message: Update largest-number-after-digit-swaps-by-parity.cpp
diff: @@ -15,12 +15,12 @@ public:
  auto cnt = count(num);
  int result = 0;
  - vector<int> idx = {0, 1};
  + vector<int> digit = {0, 1};
  for (int64_t base = 1; num; num /= 10, base *= 10) {
  const auto parity = (num % 10) % 2;
  - for (; !cnt[idx[parity]] ; idx[parity] += 2);
  - --cnt[idx[parity]];
  - result += idx[parity] * base;
  + for (; !cnt[digit[parity]] ; digit[parity] += 2);
  + --cnt[digit[parity]];
  + result += digit[parity] * base;
  }
  return result;
  }
  