C# LINQ one line 🤪
\npublic int MinimumSum(int num) {\n\treturn num.ToString().ToCharArray().OrderBy(x => x).Select( (x, i) => (i < 2 ? 10 : 1) * (x - \'0\')).Sum();\n}\n
```\npublic int MinimumSum(int num) {\n\treturn num.ToString().ToCharArray().OrderBy(x => x).Select( (x, i) => (i < 2 ? 10 : 1) * (x - \'0\')).Sum();\n}\n```
[]