remapping
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution(object):\n    def minMaxDifference(self, num):\n        """\n        :type num: int\n        :rtype: int\n        """\n        num1=str(num)\n        for i in range(len(num1)):\n            if (num1[i] != \'9\'):\n                maxi=num1.replace(num1[i],\'9\')\n                break\n            else:\n                maxi=num1\n        min1=num1.replace(str(num1[0]),\'0\')\n        c,d=int(maxi),int(min1)\n        return c-d\n#instagram\n#@_._s_y_a_m__\n```
['Python']