一、原题
原题链接:Descending Order
Your task is to make a function that can take any non-negative integer as an argument and return it with its digits in descending order. Essentially, rearrange the digits to create the highest possible number.
Examples:
Input: 42145
Output: 54421
Input: 145263
Output: 654321
Input: 123456789
Output: 987654321
二、解题
1、关键字 uint64_t
1)这些数据类型中都带有_t, _t 表示这些数据类型是通过typedef定义的,而不是新的数据类型。也就是说,它们其实是我们已知的类型的别名。
2)在涉及到跨平台时,不同的平台会有不同的字长,所以利用预编译和typedef可以方便的维护代码。比如,在C中没有bool型,于是在一个软件中,一个程序员使用int,一个程