摘要: 链接 1.截断句子 直接遍历统计空格数量 class Solution { public: string truncateSentence(string s, int k) { int cnt = 0; string res = ""; for(int i = 0;i < s.size(); i++ 阅读全文
posted @ 2021-04-07 00:33 Whisperbb 阅读(33) 评论(0) 推荐(0) 编辑