LeetCode344反转字符串

LeetCode344反转字符串

未经博主同意,禁止瞎JB转载。

https://leetcode-cn.com/problems/reverse-string/description/

我的解答:

这道题用python做没有意义

1 class Solution(object):
2     def reverseString(self, s):
3         """
4         :type s: str
5         :rtype: str
6         """
7         return s[::-1]
8         

猜你喜欢

转载自www.cnblogs.com/kianqunki/p/9852980.html
今日推荐