leetcode738+構造不大於n的單調遞增數字,貪心

https://leetcode.com/problems/monotone-increasing-digits/description/ class Solution { public: int monotoneIncreasingDigits(int N) { string str = to_string(N); int n = str.size(),
相關文章
相關標籤/搜索