Python | Solution For an Integer of Indefinite Length
\nclass Solution:\n    def minimumSum(self, num: int) -> int:\n        sorted_num = sorted(list(str(num)))\n        \n        num1 = num2 = ""\n        for i in
```\nclass Solution:\n    def minimumSum(self, num: int) -> int:\n        sorted_num = sorted(list(str(num)))\n        \n        num1 = num2 = ""\n        for i in range(len(sorted_num)):\n            if i % 2 == 0:\n                num1 += sorted_num[i]\n            else:\n                num2 += sorted_num[i]\n        \n        return int(num1) + int(num2)\n```
['Python']