0和1最少反转
摘要:class Solution{ private: int n; public: int getLesser(string &str){ n=str.size(); //如果字符串为空,或者本身是纯色,直接返回0 if(n==0||str.find('r') 1||str.find('b') 1) r
阅读全文
posted @ 2022-07-29 17:10
posted @ 2022-07-29 17:10
posted @ 2022-03-07 10:17
posted @ 2022-01-18 15:13
posted @ 2022-01-14 15:46