今際の国の呵呵君
Wednesday, August 22, 2018
[LeetCode]Expressive Words
双指针的做法,统计输入两个字符串每个group对应的字符和数量,看是否满足可以extend的要求即可。时间复杂度O(n),常数空间,代码入下:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment