2022年7月29日

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 4小旧 阅读(24) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示