Description Submission
Modified Kaprekar Numbers
Description Submission (0, 100,000) => (0, 10,000,000,000): should use long type from float to integer The length of an integer: trunc(log10(s)) + 1
Bigger is Greater
Description Submission Front behind to front, find the first pair of decreasing letters Find the number that is just bigger in the second part and […]
Encryption – Algorithms(Implementation)
Submission Sample #2 is a case that should be carefully considered if(nRow * nCol < s.size()) nRow++;
Organizing Containers of Balls – Algorithms(Implementation)
Description Submission The size of each container should be unchanged The balls move until for each container, there is only one kind of ball inside