26 lines
565 B
C++
26 lines
565 B
C++
#include <vector>
|
|
|
|
class MaxRotate
|
|
{
|
|
public:
|
|
static long long maxRot(long long n);
|
|
static void getNums(long long input);
|
|
static long long getValueFromDigits(std::vector<int> &digits);
|
|
|
|
static void getNums(std::vector<int> &digits, long long input){
|
|
if (input > 9) {
|
|
getNums(digits, input / 10);
|
|
}
|
|
digits.push_back(input % 10);
|
|
}
|
|
|
|
static long long getValueFromDigits(std::vector<int> &digits){
|
|
for(auto &i : digits){
|
|
|
|
}
|
|
}
|
|
|
|
static long long maxRot(long long n){
|
|
|
|
}
|
|
}; |