leetcode670+交換數字一次,得到最大值,暴力

https://leetcode.com/problems/maximum-swap/description/code class Solution { public: int maximumSwap(int num) { string a = to_string(num); int res = num; for(int i=0; i<a.s
相關文章
相關標籤/搜索