0
点赞
收藏
分享

微信扫一扫

344. 反转字符串

探头的新芽 2022-07-04 阅读 163

344. 反转字符串_字符串
害,直接过了,其实这个题要用双指针

class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
return s.reverse()


举报

相关推荐

0 条评论