leetcode+ 空格隔出多少segmentation

点击打开链接
class Solution {
public:
    int countSegments(string s) {
        int ans=0, flag=0;
        for(int i=0; i

你可能感兴趣的:(Leetcode)