class Solution(object): def countSegments(self, s): """ :type s: str :rtype: int """ return len(s.split())
Leetcode 434. Number of Segments in a String
猜你喜欢
转载自www.cnblogs.com/zywscq/p/10569276.html
今日推荐
周排行