message: Update largest-number-after-digit-swaps-by-parity.py
diff: @@ -17,13 +17,13 @@ class Solution(object):
  cnt = count(num)
  result = 0
  - idx = [0, 1]
  + digit = [0, 1]
  base = 1
  while num:
  num, d = divmod(num, 10)
  - while not cnt[idx[d%2]]:
  - idx[d%2] += 2
  - cnt[idx[d%2]] -= 1
  - result += idx[d%2]*base
  + while not cnt[digit[d%2]]:
  + digit[d%2] += 2
  + cnt[digit[d%2]] -= 1
  + result += digit[d%2]*base
  base *= 10
  return result
  