Ad
  • Default User Avatar

    The max value an int can be 2^32. There is a possibility that an given int might result in a number after digit sorting that does not fit int range.
    The return value of the function could be changed to long to cater to such cases. Thoughts??