leetcode 434. Number of Segments in a String
摘要:
int countSegments(string s) { int ret = 0; bool flag = false; for (auto i : s) { if (!flag && i != ' ') { ret++; flag = true; ... 阅读全文
posted @ 2018-02-26 11:12 willaty 阅读(95) 评论(0) 推荐(0) 编辑